| Top | Description |
gboolean cd_profile_connect_sync (CdProfile *profile,GCancellable *cancellable,GError **error); gboolean cd_profile_set_property_sync (CdProfile *profile,const gchar *key,const gchar *value,GCancellable *cancellable,GError **error); gboolean cd_profile_install_system_wide_sync (CdProfile *profile,GCancellable *cancellable,GError **error);
These helper functions provide a simple way to use the async functions in command line tools.
See also: CdProfile
gboolean cd_profile_connect_sync (CdProfile *profile,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 CdProfile instance. |
|
a GCancellable or NULL
|
|
a GError, or NULL. |
Returns : |
TRUE for success, else FALSE. |
Since 0.1.8
gboolean cd_profile_set_property_sync (CdProfile *profile,const gchar *key,const gchar *value,GCancellable *cancellable,GError **error);
Sets properties on an object
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
|
a CdProfile instance. |
|
The key |
|
The value |
|
a GCancellable or NULL
|
|
a GError, or NULL. |
Returns : |
TRUE for success, else FALSE. |
Since 0.1.8
gboolean cd_profile_install_system_wide_sync (CdProfile *profile,GCancellable *cancellable,GError **error);
Sets the profile system wide.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
|
a CdProfile instance. |
|
a GCancellable or NULL
|
|
a GError, or NULL. |
Returns : |
TRUE for success, else FALSE. |
Since 0.1.8