| Top | Description |  |  |  |  | 
gboolean cd_device_connect_sync (CdDevice *device,GCancellable *cancellable,GError **error); gboolean cd_device_set_property_sync (CdDevice *device,const gchar *key,const gchar *value,GCancellable *cancellable,GError **error); gboolean cd_device_add_profile_sync (CdDevice *device,CdDeviceRelation relation,CdProfile *profile,GCancellable *cancellable,GError **error); gboolean cd_device_remove_profile_sync (CdDevice *device,CdProfile *profile,GCancellable *cancellable,GError **error); CdProfile * cd_device_get_profile_for_qualifiers_sync (CdDevice *device,const gchar **qualifiers,GCancellable *cancellable,GError **error); gboolean cd_device_make_profile_default_sync (CdDevice *device,CdProfile *profile,GCancellable *cancellable,GError **error); gboolean cd_device_profiling_inhibit_sync (CdDevice *device,GCancellable *cancellable,GError **error); gboolean cd_device_profiling_uninhibit_sync (CdDevice *device,GCancellable *cancellable,GError **error); CdDeviceRelation cd_device_get_profile_relation_sync (CdDevice *device,CdProfile *profile,GCancellable *cancellable,GError **error); gboolean cd_device_set_enabled_sync (CdDevice *device,gboolean enabled,GCancellable *cancellable,GError **error); gboolean cd_device_set_model_sync (CdDevice *device,const gchar *value,GCancellable *cancellable,GError **error); gboolean cd_device_set_serial_sync (CdDevice *device,const gchar *value,GCancellable *cancellable,GError **error); gboolean cd_device_set_vendor_sync (CdDevice *device,const gchar *value,GCancellable *cancellable,GError **error); gboolean cd_device_set_kind_sync (CdDevice *device,CdDeviceKind kind,GCancellable *cancellable,GError **error); gboolean cd_device_set_colorspace_sync (CdDevice *device,CdColorspace colorspace,GCancellable *cancellable,GError **error); gboolean cd_device_set_mode_sync (CdDevice *device,CdDeviceMode mode,GCancellable *cancellable,GError **error);
These helper functions provide a simple way to use the async functions in command line tools.
See also: CdDevice
gboolean cd_device_connect_sync (CdDevice *device,GCancellable *cancellable,GError **error);
Connects to the object and fills up initial properties.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
| 
 | a CdDevice instance. | 
| 
 | a GCancellable or NULL | 
| 
 | a GError, or NULL. | 
| Returns : | TRUEfor success, elseFALSE. | 
Since 0.1.8
gboolean cd_device_set_property_sync (CdDevice *device,const gchar *key,const gchar *value,GCancellable *cancellable,GError **error);
Sets an object property.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
| 
 | a CdDevice instance. | 
| 
 | The property key | 
| 
 | The property value | 
| 
 | a GCancellable or NULL | 
| 
 | a GError, or NULL. | 
| Returns : | TRUEfor success, elseFALSE. | 
Since 0.1.8
gboolean cd_device_add_profile_sync (CdDevice *device,CdDeviceRelation relation,CdProfile *profile,GCancellable *cancellable,GError **error);
Adds a profile to a device.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
| 
 | a CdDevice instance. | 
| 
 | a CdDeviceRelation, e.g. CD_DEVICE_RELATION_HARD | 
| 
 | a CdProfile instance | 
| 
 | a GCancellable or NULL | 
| 
 | a GError, or NULL. | 
| Returns : | TRUEfor success, elseFALSE. | 
Since 0.1.3
gboolean cd_device_remove_profile_sync (CdDevice *device,CdProfile *profile,GCancellable *cancellable,GError **error);
Removes a profile from a device.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
| 
 | a CdDevice instance. | 
| 
 | a CdProfile instance | 
| 
 | a GCancellable or NULL | 
| 
 | a GError, or NULL. | 
| Returns : | TRUEfor success, elseFALSE. | 
Since 0.1.2
CdProfile * cd_device_get_profile_for_qualifiers_sync (CdDevice *device,const gchar **qualifiers,GCancellable *cancellable,GError **error);
Gets the prefered profile for some qualifiers.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
| 
 | a CdDevice instance. | 
| 
 | a set of qualifiers that can included wildcards | 
| 
 | a GCancellable or NULL | 
| 
 | a GError, or NULL. | 
| Returns : | a CdProfile or NULL. [transfer full] | 
Since 0.1.8
gboolean cd_device_make_profile_default_sync (CdDevice *device,CdProfile *profile,GCancellable *cancellable,GError **error);
Makes an already added profile default for a device.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
| 
 | a CdDevice instance. | 
| 
 | a CdProfile instance | 
| 
 | a GCancellable or NULL | 
| 
 | a GError, or NULL. | 
| Returns : | TRUEfor success, elseFALSE. | 
Since 0.1.8
gboolean cd_device_profiling_inhibit_sync (CdDevice *device,GCancellable *cancellable,GError **error);
Sets up the device for profiling and causes no profiles to be
returned if cd_device_get_profile_for_qualifiers_sync() is used.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
| 
 | a CdDevice instance. | 
| 
 | a GCancellable or NULL | 
| 
 | a GError, or NULL. | 
| Returns : | TRUEfor success, elseFALSE. | 
Since 0.1.1
gboolean cd_device_profiling_uninhibit_sync (CdDevice *device,GCancellable *cancellable,GError **error);
Sets up the device for profiling and causes no profiles to be
returned if cd_device_get_profile_for_qualifiers_sync() is used.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
| 
 | a CdDevice instance. | 
| 
 | a GCancellable or NULL | 
| 
 | a GError, or NULL. | 
| Returns : | TRUEfor success, elseFALSE. | 
Since 0.1.1
CdDeviceRelation cd_device_get_profile_relation_sync (CdDevice *device,CdProfile *profile,GCancellable *cancellable,GError **error);
Gets the property relationship to the device.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
| 
 | a CdDevice instance. | 
| 
 | a CdProfile instance. | 
| 
 | a GCancellable or NULL | 
| 
 | a GError, or NULL. | 
| Returns : | TRUEfor success, elseFALSE. | 
Since 0.1.8
gboolean cd_device_set_enabled_sync (CdDevice *device,gboolean enabled,GCancellable *cancellable,GError **error);
Enables or disables a device.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
| 
 | a CdDevice instance. | 
| 
 | the enabled state | 
| 
 | a GCancellable or NULL | 
| 
 | a GError, or NULL. | 
| Returns : | TRUEfor success, elseFALSE. | 
Since 0.1.26
gboolean cd_device_set_model_sync (CdDevice *device,const gchar *value,GCancellable *cancellable,GError **error);
Sets the device model.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
| 
 | a CdDevice instance. | 
| 
 | The model. | 
| 
 | a GCancellable or NULL | 
| 
 | a GError, or NULL. | 
| Returns : | TRUE for success, else FALSE and erroris used | 
Since 0.1.0
gboolean cd_device_set_serial_sync (CdDevice *device,const gchar *value,GCancellable *cancellable,GError **error);
Sets the device serial number.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
| 
 | a CdDevice instance. | 
| 
 | The string value. | 
| 
 | a GCancellable or NULL | 
| 
 | a GError, or NULL. | 
| Returns : | TRUE for success, else FALSE and erroris used | 
Since 0.1.1
gboolean cd_device_set_vendor_sync (CdDevice *device,const gchar *value,GCancellable *cancellable,GError **error);
Sets the device vendor.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
| 
 | a CdDevice instance. | 
| 
 | The string value. | 
| 
 | a GCancellable or NULL | 
| 
 | a GError, or NULL. | 
| Returns : | TRUE for success, else FALSE and erroris used | 
Since 0.1.1
gboolean cd_device_set_kind_sync (CdDevice *device,CdDeviceKind kind,GCancellable *cancellable,GError **error);
Sets the device kind.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
| 
 | a CdDevice instance. | 
| 
 | The device kind, e.g. CD_DEVICE_KIND_DISPLAY | 
| 
 | a GCancellable or NULL | 
| 
 | a GError, or NULL. | 
| Returns : | TRUE for success, else FALSE and erroris used | 
Since 0.1.0
gboolean cd_device_set_colorspace_sync (CdDevice *device,CdColorspace colorspace,GCancellable *cancellable,GError **error);
Sets the device kind.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
| 
 | a CdDevice instance. | 
| 
 | The device colorspace, e.g. CD_COLORSPACE_RGB | 
| 
 | a GCancellable or NULL | 
| 
 | a GError, or NULL. | 
| Returns : | TRUE for success, else FALSE and erroris used | 
Since 0.1.1
gboolean cd_device_set_mode_sync (CdDevice *device,CdDeviceMode mode,GCancellable *cancellable,GError **error);
Sets the device mode.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
| 
 | a CdDevice instance. | 
| 
 | The device kind, e.g. CD_DEVICE_MODE_VIRTUAL | 
| 
 | a GCancellable or NULL | 
| 
 | a GError, or NULL. | 
| Returns : | TRUE for success, else FALSE and erroris used | 
Since 0.1.2