1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>cd-device-sync</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7
<link rel="home" href="index.html" title="colord Reference Manual">
8
<link rel="up" href="libcolord-glib-helpers.html" title="libcolord-glib helpers">
9
<link rel="prev" href="colord-cd-client-sync.html" title="cd-client-sync">
10
<link rel="next" href="colord-cd-profile-sync.html" title="cd-profile-sync">
11
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17
<td><a accesskey="p" href="colord-cd-client-sync.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
<td><a accesskey="u" href="libcolord-glib-helpers.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
<th width="100%" align="center">colord Reference Manual</th>
21
<td><a accesskey="n" href="colord-cd-profile-sync.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23
<tr><td colspan="5" class="shortcuts">
24
<a href="#colord-cd-device-sync.synopsis" class="shortcut">Top</a>
26
<a href="#colord-cd-device-sync.description" class="shortcut">Description</a>
29
<div class="refentry">
30
<a name="colord-cd-device-sync"></a><div class="titlepage"></div>
31
<div class="refnamediv"><table width="100%"><tr>
33
<h2><span class="refentrytitle"><a name="colord-cd-device-sync.top_of_page"></a>cd-device-sync</span></h2>
34
<p>cd-device-sync — Sync helpers for <span class="type">CdDevice</span></p>
36
<td valign="top" align="right"></td>
38
<div class="refsynopsisdiv">
39
<a name="colord-cd-device-sync.synopsis"></a><h2>Synopsis</h2>
40
<pre class="synopsis"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="colord-cd-device-sync.html#cd-device-add-profile-sync" title="cd_device_add_profile_sync ()">cd_device_add_profile_sync</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
41
<em class="parameter"><code><span class="type">CdDeviceRelation</span> relation</code></em>,
42
<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>,
43
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
44
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
45
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="colord-cd-device-sync.html#cd-device-connect-sync" title="cd_device_connect_sync ()">cd_device_connect_sync</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
46
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
47
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
48
<span class="returnvalue">CdProfile</span> * <a class="link" href="colord-cd-device-sync.html#cd-device-get-profile-for-qualifiers-sync" title="cd_device_get_profile_for_qualifiers_sync ()">cd_device_get_profile_for_qualifiers_sync</a>
49
(<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
50
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **qualifiers</code></em>,
51
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
52
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
53
<span class="returnvalue">CdDeviceRelation</span> <a class="link" href="colord-cd-device-sync.html#cd-device-get-profile-relation-sync" title="cd_device_get_profile_relation_sync ()">cd_device_get_profile_relation_sync</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
54
<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>,
55
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
56
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
57
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="colord-cd-device-sync.html#cd-device-make-profile-default-sync" title="cd_device_make_profile_default_sync ()">cd_device_make_profile_default_sync</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
58
<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>,
59
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
60
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
61
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="colord-cd-device-sync.html#cd-device-profiling-inhibit-sync" title="cd_device_profiling_inhibit_sync ()">cd_device_profiling_inhibit_sync</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
62
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
63
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
64
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="colord-cd-device-sync.html#cd-device-profiling-uninhibit-sync" title="cd_device_profiling_uninhibit_sync ()">cd_device_profiling_uninhibit_sync</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
65
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
66
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
67
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="colord-cd-device-sync.html#cd-device-remove-profile-sync" title="cd_device_remove_profile_sync ()">cd_device_remove_profile_sync</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
68
<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>,
69
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
70
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
71
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="colord-cd-device-sync.html#cd-device-set-colorspace-sync" title="cd_device_set_colorspace_sync ()">cd_device_set_colorspace_sync</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
72
<em class="parameter"><code><span class="type">CdColorspace</span> colorspace</code></em>,
73
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
74
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
75
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="colord-cd-device-sync.html#cd-device-set-kind-sync" title="cd_device_set_kind_sync ()">cd_device_set_kind_sync</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
76
<em class="parameter"><code><span class="type">CdDeviceKind</span> kind</code></em>,
77
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
78
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
79
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="colord-cd-device-sync.html#cd-device-set-mode-sync" title="cd_device_set_mode_sync ()">cd_device_set_mode_sync</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
80
<em class="parameter"><code><span class="type">CdDeviceMode</span> mode</code></em>,
81
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
82
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
83
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="colord-cd-device-sync.html#cd-device-set-model-sync" title="cd_device_set_model_sync ()">cd_device_set_model_sync</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
84
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>,
85
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
86
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
87
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="colord-cd-device-sync.html#cd-device-set-property-sync" title="cd_device_set_property_sync ()">cd_device_set_property_sync</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
88
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key</code></em>,
89
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>,
90
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
91
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
92
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="colord-cd-device-sync.html#cd-device-set-serial-sync" title="cd_device_set_serial_sync ()">cd_device_set_serial_sync</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
93
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>,
94
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
95
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
96
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="colord-cd-device-sync.html#cd-device-set-vendor-sync" title="cd_device_set_vendor_sync ()">cd_device_set_vendor_sync</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
97
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>,
98
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
99
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
102
<div class="refsect1">
103
<a name="colord-cd-device-sync.description"></a><h2>Description</h2>
105
These helper functions provide a simple way to use the async functions
106
in command line tools.
109
See also: <span class="type">CdDevice</span>
112
<div class="refsect1">
113
<a name="colord-cd-device-sync.details"></a><h2>Details</h2>
114
<div class="refsect2">
115
<a name="cd-device-add-profile-sync"></a><h3>cd_device_add_profile_sync ()</h3>
116
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cd_device_add_profile_sync (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
117
<em class="parameter"><code><span class="type">CdDeviceRelation</span> relation</code></em>,
118
<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>,
119
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
120
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
122
Adds a profile to a device.
125
WARNING: This function is synchronous, and may block.
126
Do not use it in GUI applications.
128
<div class="variablelist"><table border="0">
129
<col align="left" valign="top">
132
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
133
<td>a <span class="type">CdDevice</span> instance.</td>
136
<td><p><span class="term"><em class="parameter"><code>relation</code></em> :</span></p></td>
137
<td>a <span class="type">CdDeviceRelation</span>, e.g. <span class="type">CD_DEVICE_RELATION_HARD</span>
141
<td><p><span class="term"><em class="parameter"><code>profile</code></em> :</span></p></td>
142
<td>a <span class="type">CdProfile</span> instance</td>
145
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
146
<td>a <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
150
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
151
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
154
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
156
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> for success, else <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.</td>
160
<p class="since">Since 0.1.3</p>
163
<div class="refsect2">
164
<a name="cd-device-connect-sync"></a><h3>cd_device_connect_sync ()</h3>
165
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cd_device_connect_sync (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
166
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
167
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
169
Connects to the object and fills up initial properties.
172
WARNING: This function is synchronous, and may block.
173
Do not use it in GUI applications.
175
<div class="variablelist"><table border="0">
176
<col align="left" valign="top">
179
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
180
<td>a <span class="type">CdDevice</span> instance.</td>
183
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
184
<td>a <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
188
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
189
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
192
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
194
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> for success, else <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.</td>
198
<p class="since">Since 0.1.8</p>
201
<div class="refsect2">
202
<a name="cd-device-get-profile-for-qualifiers-sync"></a><h3>cd_device_get_profile_for_qualifiers_sync ()</h3>
203
<pre class="programlisting"><span class="returnvalue">CdProfile</span> * cd_device_get_profile_for_qualifiers_sync
204
(<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
205
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **qualifiers</code></em>,
206
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
207
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
209
Gets the prefered profile for some qualifiers.
212
WARNING: This function is synchronous, and may block.
213
Do not use it in GUI applications.
215
<div class="variablelist"><table border="0">
216
<col align="left" valign="top">
219
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
220
<td>a <span class="type">CdDevice</span> instance.</td>
223
<td><p><span class="term"><em class="parameter"><code>qualifiers</code></em> :</span></p></td>
224
<td>a set of qualifiers that can included wildcards</td>
227
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
228
<td>a <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
232
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
233
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
236
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
237
<td>a <span class="type">CdProfile</span> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
242
<p class="since">Since 0.1.8</p>
245
<div class="refsect2">
246
<a name="cd-device-get-profile-relation-sync"></a><h3>cd_device_get_profile_relation_sync ()</h3>
247
<pre class="programlisting"><span class="returnvalue">CdDeviceRelation</span> cd_device_get_profile_relation_sync (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
248
<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>,
249
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
250
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
252
Gets the property relationship to the device.
255
WARNING: This function is synchronous, and may block.
256
Do not use it in GUI applications.
258
<div class="variablelist"><table border="0">
259
<col align="left" valign="top">
262
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
263
<td>a <span class="type">CdDevice</span> instance.</td>
266
<td><p><span class="term"><em class="parameter"><code>profile</code></em> :</span></p></td>
267
<td>a <span class="type">CdProfile</span> instance.</td>
270
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
271
<td>a <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
275
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
276
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
279
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
281
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> for success, else <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.</td>
285
<p class="since">Since 0.1.8</p>
288
<div class="refsect2">
289
<a name="cd-device-make-profile-default-sync"></a><h3>cd_device_make_profile_default_sync ()</h3>
290
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cd_device_make_profile_default_sync (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
291
<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>,
292
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
293
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
295
Makes an already added profile default for a device.
298
WARNING: This function is synchronous, and may block.
299
Do not use it in GUI applications.
301
<div class="variablelist"><table border="0">
302
<col align="left" valign="top">
305
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
306
<td>a <span class="type">CdDevice</span> instance.</td>
309
<td><p><span class="term"><em class="parameter"><code>profile</code></em> :</span></p></td>
310
<td>a <span class="type">CdProfile</span> instance</td>
313
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
314
<td>a <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
318
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
319
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
322
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
324
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> for success, else <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.</td>
328
<p class="since">Since 0.1.8</p>
331
<div class="refsect2">
332
<a name="cd-device-profiling-inhibit-sync"></a><h3>cd_device_profiling_inhibit_sync ()</h3>
333
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cd_device_profiling_inhibit_sync (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
334
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
335
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
337
Sets up the device for profiling and causes no profiles to be
338
returned if <a class="link" href="colord-cd-device-sync.html#cd-device-get-profile-for-qualifiers-sync" title="cd_device_get_profile_for_qualifiers_sync ()"><code class="function">cd_device_get_profile_for_qualifiers_sync()</code></a> is used.
341
WARNING: This function is synchronous, and may block.
342
Do not use it in GUI applications.
344
<div class="variablelist"><table border="0">
345
<col align="left" valign="top">
348
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
349
<td>a <span class="type">CdDevice</span> instance.</td>
352
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
353
<td>a <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
357
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
358
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
361
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
363
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> for success, else <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.</td>
367
<p class="since">Since 0.1.1</p>
370
<div class="refsect2">
371
<a name="cd-device-profiling-uninhibit-sync"></a><h3>cd_device_profiling_uninhibit_sync ()</h3>
372
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cd_device_profiling_uninhibit_sync (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
373
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
374
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
376
Sets up the device for profiling and causes no profiles to be
377
returned if <a class="link" href="colord-cd-device-sync.html#cd-device-get-profile-for-qualifiers-sync" title="cd_device_get_profile_for_qualifiers_sync ()"><code class="function">cd_device_get_profile_for_qualifiers_sync()</code></a> is used.
380
WARNING: This function is synchronous, and may block.
381
Do not use it in GUI applications.
383
<div class="variablelist"><table border="0">
384
<col align="left" valign="top">
387
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
388
<td>a <span class="type">CdDevice</span> instance.</td>
391
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
392
<td>a <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
396
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
397
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
400
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
402
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> for success, else <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.</td>
406
<p class="since">Since 0.1.1</p>
409
<div class="refsect2">
410
<a name="cd-device-remove-profile-sync"></a><h3>cd_device_remove_profile_sync ()</h3>
411
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cd_device_remove_profile_sync (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
412
<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>,
413
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
414
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
416
Removes a profile from a device.
419
WARNING: This function is synchronous, and may block.
420
Do not use it in GUI applications.
422
<div class="variablelist"><table border="0">
423
<col align="left" valign="top">
426
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
427
<td>a <span class="type">CdDevice</span> instance.</td>
430
<td><p><span class="term"><em class="parameter"><code>profile</code></em> :</span></p></td>
431
<td>a <span class="type">CdProfile</span> instance</td>
434
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
435
<td>a <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
439
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
440
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
443
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
445
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> for success, else <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.</td>
449
<p class="since">Since 0.1.2</p>
452
<div class="refsect2">
453
<a name="cd-device-set-colorspace-sync"></a><h3>cd_device_set_colorspace_sync ()</h3>
454
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cd_device_set_colorspace_sync (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
455
<em class="parameter"><code><span class="type">CdColorspace</span> colorspace</code></em>,
456
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
457
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
459
Sets the device kind.
462
WARNING: This function is synchronous, and may block.
463
Do not use it in GUI applications.
465
<div class="variablelist"><table border="0">
466
<col align="left" valign="top">
469
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
470
<td>a <span class="type">CdDevice</span> instance.</td>
473
<td><p><span class="term"><em class="parameter"><code>colorspace</code></em> :</span></p></td>
474
<td>The device colorspace, e.g. <span class="type">CD_DEVICE_COLORSPACE_RGB</span>
478
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
479
<td>a <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
483
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
484
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
487
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
489
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> for success, else <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><span class="type">FALSE</span></a> and <em class="parameter"><code>error</code></em> is used</td>
493
<p class="since">Since 0.1.1</p>
496
<div class="refsect2">
497
<a name="cd-device-set-kind-sync"></a><h3>cd_device_set_kind_sync ()</h3>
498
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cd_device_set_kind_sync (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
499
<em class="parameter"><code><span class="type">CdDeviceKind</span> kind</code></em>,
500
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
501
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
503
Sets the device kind.
506
WARNING: This function is synchronous, and may block.
507
Do not use it in GUI applications.
509
<div class="variablelist"><table border="0">
510
<col align="left" valign="top">
513
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
514
<td>a <span class="type">CdDevice</span> instance.</td>
517
<td><p><span class="term"><em class="parameter"><code>kind</code></em> :</span></p></td>
518
<td>The device kind, e.g. <span class="type">CD_DEVICE_KIND_DISPLAY</span>
522
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
523
<td>a <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
527
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
528
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
531
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
533
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> for success, else <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><span class="type">FALSE</span></a> and <em class="parameter"><code>error</code></em> is used</td>
537
<p class="since">Since 0.1.0</p>
540
<div class="refsect2">
541
<a name="cd-device-set-mode-sync"></a><h3>cd_device_set_mode_sync ()</h3>
542
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cd_device_set_mode_sync (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
543
<em class="parameter"><code><span class="type">CdDeviceMode</span> mode</code></em>,
544
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
545
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
547
Sets the device mode.
550
WARNING: This function is synchronous, and may block.
551
Do not use it in GUI applications.
553
<div class="variablelist"><table border="0">
554
<col align="left" valign="top">
557
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
558
<td>a <span class="type">CdDevice</span> instance.</td>
561
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
562
<td>The device kind, e.g. <span class="type">CD_DEVICE_MODE_VIRTUAL</span>
566
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
567
<td>a <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
571
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
572
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
575
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
577
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> for success, else <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><span class="type">FALSE</span></a> and <em class="parameter"><code>error</code></em> is used</td>
581
<p class="since">Since 0.1.2</p>
584
<div class="refsect2">
585
<a name="cd-device-set-model-sync"></a><h3>cd_device_set_model_sync ()</h3>
586
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cd_device_set_model_sync (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
587
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>,
588
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
589
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
591
Sets the device model.
594
WARNING: This function is synchronous, and may block.
595
Do not use it in GUI applications.
597
<div class="variablelist"><table border="0">
598
<col align="left" valign="top">
601
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
602
<td>a <span class="type">CdDevice</span> instance.</td>
605
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
609
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
610
<td>a <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
614
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
615
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
618
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
620
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> for success, else <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><span class="type">FALSE</span></a> and <em class="parameter"><code>error</code></em> is used</td>
624
<p class="since">Since 0.1.0</p>
627
<div class="refsect2">
628
<a name="cd-device-set-property-sync"></a><h3>cd_device_set_property_sync ()</h3>
629
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cd_device_set_property_sync (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
630
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key</code></em>,
631
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>,
632
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
633
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
635
Sets an object property.
638
WARNING: This function is synchronous, and may block.
639
Do not use it in GUI applications.
641
<div class="variablelist"><table border="0">
642
<col align="left" valign="top">
645
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
646
<td>a <span class="type">CdDevice</span> instance.</td>
649
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
650
<td>The property key</td>
653
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
654
<td>The property value</td>
657
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
658
<td>a <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
662
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
663
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
666
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
668
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> for success, else <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.</td>
672
<p class="since">Since 0.1.8</p>
675
<div class="refsect2">
676
<a name="cd-device-set-serial-sync"></a><h3>cd_device_set_serial_sync ()</h3>
677
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cd_device_set_serial_sync (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
678
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>,
679
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
680
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
682
Sets the device serial number.
685
WARNING: This function is synchronous, and may block.
686
Do not use it in GUI applications.
688
<div class="variablelist"><table border="0">
689
<col align="left" valign="top">
692
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
693
<td>a <span class="type">CdDevice</span> instance.</td>
696
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
697
<td>The string value.</td>
700
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
701
<td>a <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
705
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
706
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
709
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
711
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> for success, else <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><span class="type">FALSE</span></a> and <em class="parameter"><code>error</code></em> is used</td>
715
<p class="since">Since 0.1.1</p>
718
<div class="refsect2">
719
<a name="cd-device-set-vendor-sync"></a><h3>cd_device_set_vendor_sync ()</h3>
720
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cd_device_set_vendor_sync (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
721
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>,
722
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
723
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
725
Sets the device vendor.
728
WARNING: This function is synchronous, and may block.
729
Do not use it in GUI applications.
731
<div class="variablelist"><table border="0">
732
<col align="left" valign="top">
735
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
736
<td>a <span class="type">CdDevice</span> instance.</td>
739
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
740
<td>The string value.</td>
743
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
744
<td>a <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
748
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
749
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
752
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
754
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> for success, else <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><span class="type">FALSE</span></a> and <em class="parameter"><code>error</code></em> is used</td>
758
<p class="since">Since 0.1.1</p>
764
Generated by GTK-Doc V1.18</div>
b'\\ No newline at end of file'