Top |
cd-client-synccd-client-sync — Sync helpers for CdClient |
These helper functions provide a simple way to use the async functions in command line tools.
See also: CdClient
gboolean cd_client_connect_sync (CdClient *client
,GCancellable *cancellable
,GError **error
);
Connects to the colord daemon.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since: 0.1.0
gboolean cd_client_delete_profile_sync (CdClient *client
,CdProfile *profile
,GCancellable *cancellable
,GError **error
);
Deletes a color profile.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since: 0.1.8
gboolean cd_client_delete_device_sync (CdClient *client
,CdDevice *device
,GCancellable *cancellable
,GError **error
);
Deletes a color device.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since: 0.1.8
CdProfile * cd_client_find_profile_sync (CdClient *client
,const gchar *id
,GCancellable *cancellable
,GError **error
);
Finds a color profile from its id.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
client |
a CdClient instance. |
|
id |
id for the profile |
|
cancellable |
a GCancellable, or |
|
error |
Since: 0.1.0
CdProfile * cd_client_find_profile_by_filename_sync (CdClient *client
,const gchar *filename
,GCancellable *cancellable
,GError **error
);
Finds a color profile from its filename.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
client |
a CdClient instance. |
|
filename |
filename for the profile |
|
cancellable |
a GCancellable, or |
|
error |
Since: 0.1.3
CdProfile * cd_client_create_profile_sync (CdClient *client
,const gchar *id
,CdObjectScope scope
,GHashTable *properties
,GCancellable *cancellable
,GError **error
);
Creates a color profile.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since: 0.1.2
CdProfile * cd_client_create_profile_for_icc_sync (CdClient *client
,CdIcc *icc
,CdObjectScope scope
,GCancellable *cancellable
,GError **error
);
Creates a color profile from a CdIcc object.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since: 1.1.1
CdProfile * cd_client_import_profile_sync (CdClient *client
,GFile *file
,GCancellable *cancellable
,GError **error
);
Imports a color profile into the users home directory.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since: 0.1.12
CdDevice * cd_client_create_device_sync (CdClient *client
,const gchar *id
,CdObjectScope scope
,GHashTable *properties
,GCancellable *cancellable
,GError **error
);
Creates a color device.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since: 0.1.2
GPtrArray * cd_client_get_devices_sync (CdClient *client
,GCancellable *cancellable
,GError **error
);
Get an array of the device objects.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since: 0.1.0
GPtrArray * cd_client_get_profiles_sync (CdClient *client
,GCancellable *cancellable
,GError **error
);
Get an array of the profile objects.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since: 0.1.0
GPtrArray * cd_client_get_sensors_sync (CdClient *client
,GCancellable *cancellable
,GError **error
);
Get an array of the sensor objects.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since: 0.1.0
CdDevice * cd_client_find_device_sync (CdClient *client
,const gchar *id
,GCancellable *cancellable
,GError **error
);
Finds a color device.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since: 0.1.0
CdDevice * cd_client_find_device_by_property_sync (CdClient *client
,const gchar *key
,const gchar *value
,GCancellable *cancellable
,GError **error
);
Finds a color device that has a property value.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
client |
a CdClient instance. |
|
key |
The device property key. |
|
value |
The device property value. |
|
cancellable |
a GCancellable or |
|
error |
Since: 0.1.8
CdProfile * cd_client_get_standard_space_sync (CdClient *client
,CdStandardSpace standard_space
,GCancellable *cancellable
,GError **error
);
Finds a standard colorspace.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
client |
a CdClient instance. |
|
standard_space |
standard colorspace value |
|
cancellable |
a GCancellable, or |
|
error |
Since: 0.1.2
GPtrArray * cd_client_get_devices_by_kind_sync (CdClient *client
,CdDeviceKind kind
,GCancellable *cancellable
,GError **error
);
Get an array of the device objects of a specified kind.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
client |
a CdClient instance. |
|
kind |
a CdDeviceKind, e.g. |
|
cancellable |
a GCancellable or |
|
error |
Since: 0.1.0
CdProfile * cd_client_find_profile_by_property_sync (CdClient *client
,const gchar *key
,const gchar *value
,GCancellable *cancellable
,GError **error
);
Finds a color profile that has a property value.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
client |
a CdClient instance. |
|
key |
The profile property key. |
|
value |
The profile property value. |
|
cancellable |
a GCancellable or |
|
error |
Since: 0.1.24
CdSensor * cd_client_find_sensor_sync (CdClient *client
,const gchar *id
,GCancellable *cancellable
,GError **error
);
Finds a color sensor.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since: 0.1.26