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.17 (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-connect-sync" title="cd_device_connect_sync ()">cd_device_connect_sync</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
41
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
42
<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>);
43
<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>,
44
<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>,
45
<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>,
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
<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>,
49
<em class="parameter"><code><span class="type">CdDeviceRelation</span> relation</code></em>,
50
<em class="parameter"><code><span class="type">CdProfile</span> *profile</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
<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>,
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
<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>
58
(<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
59
<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>,
60
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
61
<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>);
62
<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>,
63
<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>,
64
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
65
<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>);
66
<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>,
67
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
68
<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>);
69
<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>,
70
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
71
<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>);
72
<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>,
73
<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>,
74
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
75
<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>);
76
<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>,
77
<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>,
78
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
79
<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>);
80
<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>,
81
<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>,
82
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
83
<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>);
84
<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>,
85
<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>,
86
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
87
<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>);
88
<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>,
89
<em class="parameter"><code><span class="type">CdDeviceKind</span> kind</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-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>,
93
<em class="parameter"><code><span class="type">CdColorspace</span> colorspace</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-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>,
97
<em class="parameter"><code><span class="type">CdDeviceMode</span> mode</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-connect-sync"></a><h3>cd_device_connect_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_connect_sync (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
117
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
118
<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>
120
Connects to the object and fills up initial properties.
123
WARNING: This function is synchronous, and may block.
124
Do not use it in GUI applications.
126
<div class="variablelist"><table border="0">
127
<col align="left" valign="top">
130
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
131
<td>a <span class="type">CdDevice</span> instance.</td>
134
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
135
<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>
139
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
140
<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>
143
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
145
<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>
149
<p class="since">Since 0.1.8</p>
152
<div class="refsect2">
153
<a name="cd-device-set-property-sync"></a><h3>cd_device_set_property_sync ()</h3>
154
<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>,
155
<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>,
156
<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>,
157
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
158
<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>
160
Sets an object property.
163
WARNING: This function is synchronous, and may block.
164
Do not use it in GUI applications.
166
<div class="variablelist"><table border="0">
167
<col align="left" valign="top">
170
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
171
<td>a <span class="type">CdDevice</span> instance.</td>
174
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
175
<td>The property key</td>
178
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
179
<td>The property value</td>
182
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
183
<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>
187
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
188
<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>
191
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
193
<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>
197
<p class="since">Since 0.1.8</p>
200
<div class="refsect2">
201
<a name="cd-device-add-profile-sync"></a><h3>cd_device_add_profile_sync ()</h3>
202
<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>,
203
<em class="parameter"><code><span class="type">CdDeviceRelation</span> relation</code></em>,
204
<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>,
205
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
206
<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>
208
Adds a profile to a device.
211
WARNING: This function is synchronous, and may block.
212
Do not use it in GUI applications.
214
<div class="variablelist"><table border="0">
215
<col align="left" valign="top">
218
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
219
<td>a <span class="type">CdDevice</span> instance.</td>
222
<td><p><span class="term"><em class="parameter"><code>relation</code></em> :</span></p></td>
223
<td>a <span class="type">CdDeviceRelation</span>, e.g. <span class="type">CD_DEVICE_RELATION_HARD</span>
227
<td><p><span class="term"><em class="parameter"><code>profile</code></em> :</span></p></td>
228
<td>a <span class="type">CdProfile</span> instance</td>
231
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
232
<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>
236
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
237
<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>
240
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
242
<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>
246
<p class="since">Since 0.1.3</p>
249
<div class="refsect2">
250
<a name="cd-device-remove-profile-sync"></a><h3>cd_device_remove_profile_sync ()</h3>
251
<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>,
252
<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>,
253
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
254
<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>
256
Removes a profile from a device.
259
WARNING: This function is synchronous, and may block.
260
Do not use it in GUI applications.
262
<div class="variablelist"><table border="0">
263
<col align="left" valign="top">
266
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
267
<td>a <span class="type">CdDevice</span> instance.</td>
270
<td><p><span class="term"><em class="parameter"><code>profile</code></em> :</span></p></td>
271
<td>a <span class="type">CdProfile</span> instance</td>
274
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
275
<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>
279
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
280
<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>
283
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
285
<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>
289
<p class="since">Since 0.1.2</p>
292
<div class="refsect2">
293
<a name="cd-device-get-profile-for-qualifiers-sync"></a><h3>cd_device_get_profile_for_qualifiers_sync ()</h3>
294
<pre class="programlisting"><span class="returnvalue">CdProfile</span> * cd_device_get_profile_for_qualifiers_sync
295
(<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
296
<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>,
297
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
298
<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>
300
Gets the prefered profile for some qualifiers.
303
WARNING: This function is synchronous, and may block.
304
Do not use it in GUI applications.
306
<div class="variablelist"><table border="0">
307
<col align="left" valign="top">
310
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
311
<td>a <span class="type">CdDevice</span> instance.</td>
314
<td><p><span class="term"><em class="parameter"><code>qualifiers</code></em> :</span></p></td>
315
<td>a set of qualifiers that can included wildcards</td>
318
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
319
<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>
323
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
324
<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>
327
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
328
<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>
333
<p class="since">Since 0.1.8</p>
336
<div class="refsect2">
337
<a name="cd-device-make-profile-default-sync"></a><h3>cd_device_make_profile_default_sync ()</h3>
338
<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>,
339
<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>,
340
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
341
<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>
343
Makes an already added profile default for a device.
346
WARNING: This function is synchronous, and may block.
347
Do not use it in GUI applications.
349
<div class="variablelist"><table border="0">
350
<col align="left" valign="top">
353
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
354
<td>a <span class="type">CdDevice</span> instance.</td>
357
<td><p><span class="term"><em class="parameter"><code>profile</code></em> :</span></p></td>
358
<td>a <span class="type">CdProfile</span> instance</td>
361
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
362
<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>
366
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
367
<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>
370
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
372
<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>
376
<p class="since">Since 0.1.8</p>
379
<div class="refsect2">
380
<a name="cd-device-profiling-inhibit-sync"></a><h3>cd_device_profiling_inhibit_sync ()</h3>
381
<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>,
382
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
383
<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>
385
Sets up the device for profiling and causes no profiles to be
386
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.
389
WARNING: This function is synchronous, and may block.
390
Do not use it in GUI applications.
392
<div class="variablelist"><table border="0">
393
<col align="left" valign="top">
396
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
397
<td>a <span class="type">CdDevice</span> instance.</td>
400
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
401
<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>
405
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
406
<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>
409
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
411
<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>
415
<p class="since">Since 0.1.1</p>
418
<div class="refsect2">
419
<a name="cd-device-profiling-uninhibit-sync"></a><h3>cd_device_profiling_uninhibit_sync ()</h3>
420
<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>,
421
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
422
<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>
424
Sets up the device for profiling and causes no profiles to be
425
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.
428
WARNING: This function is synchronous, and may block.
429
Do not use it in GUI applications.
431
<div class="variablelist"><table border="0">
432
<col align="left" valign="top">
435
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
436
<td>a <span class="type">CdDevice</span> instance.</td>
439
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
440
<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>
444
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
445
<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>
448
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
450
<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>
454
<p class="since">Since 0.1.1</p>
457
<div class="refsect2">
458
<a name="cd-device-get-profile-relation-sync"></a><h3>cd_device_get_profile_relation_sync ()</h3>
459
<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>,
460
<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>,
461
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
462
<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>
464
Gets the property relationship to the device.
467
WARNING: This function is synchronous, and may block.
468
Do not use it in GUI applications.
470
<div class="variablelist"><table border="0">
471
<col align="left" valign="top">
474
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
475
<td>a <span class="type">CdDevice</span> instance.</td>
478
<td><p><span class="term"><em class="parameter"><code>profile</code></em> :</span></p></td>
479
<td>a <span class="type">CdProfile</span> instance.</td>
482
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
483
<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>
487
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
488
<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>
491
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
493
<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>
497
<p class="since">Since 0.1.8</p>
500
<div class="refsect2">
501
<a name="cd-device-set-model-sync"></a><h3>cd_device_set_model_sync ()</h3>
502
<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>,
503
<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>,
504
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
505
<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>
507
Sets the device model.
510
WARNING: This function is synchronous, and may block.
511
Do not use it in GUI applications.
513
<div class="variablelist"><table border="0">
514
<col align="left" valign="top">
517
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
518
<td>a <span class="type">CdDevice</span> instance.</td>
521
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
525
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
526
<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>
530
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
531
<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>
534
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
536
<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>
540
<p class="since">Since 0.1.0</p>
543
<div class="refsect2">
544
<a name="cd-device-set-serial-sync"></a><h3>cd_device_set_serial_sync ()</h3>
545
<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>,
546
<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>,
547
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
548
<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>
550
Sets the device serial number.
553
WARNING: This function is synchronous, and may block.
554
Do not use it in GUI applications.
556
<div class="variablelist"><table border="0">
557
<col align="left" valign="top">
560
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
561
<td>a <span class="type">CdDevice</span> instance.</td>
564
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
565
<td>The string value.</td>
568
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
569
<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>
573
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
574
<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>
577
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
579
<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>
583
<p class="since">Since 0.1.1</p>
586
<div class="refsect2">
587
<a name="cd-device-set-vendor-sync"></a><h3>cd_device_set_vendor_sync ()</h3>
588
<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>,
589
<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>,
590
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
591
<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>
593
Sets the device vendor.
596
WARNING: This function is synchronous, and may block.
597
Do not use it in GUI applications.
599
<div class="variablelist"><table border="0">
600
<col align="left" valign="top">
603
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
604
<td>a <span class="type">CdDevice</span> instance.</td>
607
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
608
<td>The string value.</td>
611
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
612
<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>
616
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
617
<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>
620
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
622
<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>
626
<p class="since">Since 0.1.1</p>
629
<div class="refsect2">
630
<a name="cd-device-set-kind-sync"></a><h3>cd_device_set_kind_sync ()</h3>
631
<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>,
632
<em class="parameter"><code><span class="type">CdDeviceKind</span> kind</code></em>,
633
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
634
<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>
636
Sets the device kind.
639
WARNING: This function is synchronous, and may block.
640
Do not use it in GUI applications.
642
<div class="variablelist"><table border="0">
643
<col align="left" valign="top">
646
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
647
<td>a <span class="type">CdDevice</span> instance.</td>
650
<td><p><span class="term"><em class="parameter"><code>kind</code></em> :</span></p></td>
651
<td>The device kind, e.g. <span class="type">CD_DEVICE_KIND_DISPLAY</span>
655
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
656
<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>
660
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
661
<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>
664
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
666
<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>
670
<p class="since">Since 0.1.0</p>
673
<div class="refsect2">
674
<a name="cd-device-set-colorspace-sync"></a><h3>cd_device_set_colorspace_sync ()</h3>
675
<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>,
676
<em class="parameter"><code><span class="type">CdColorspace</span> colorspace</code></em>,
677
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
678
<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>
680
Sets the device kind.
683
WARNING: This function is synchronous, and may block.
684
Do not use it in GUI applications.
686
<div class="variablelist"><table border="0">
687
<col align="left" valign="top">
690
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
691
<td>a <span class="type">CdDevice</span> instance.</td>
694
<td><p><span class="term"><em class="parameter"><code>colorspace</code></em> :</span></p></td>
695
<td>The device colorspace, e.g. <span class="type">CD_DEVICE_COLORSPACE_RGB</span>
699
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
700
<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>
704
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
705
<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>
708
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
710
<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>
714
<p class="since">Since 0.1.1</p>
717
<div class="refsect2">
718
<a name="cd-device-set-mode-sync"></a><h3>cd_device_set_mode_sync ()</h3>
719
<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>,
720
<em class="parameter"><code><span class="type">CdDeviceMode</span> mode</code></em>,
721
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
722
<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>
724
Sets the device mode.
727
WARNING: This function is synchronous, and may block.
728
Do not use it in GUI applications.
730
<div class="variablelist"><table border="0">
731
<col align="left" valign="top">
734
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
735
<td>a <span class="type">CdDevice</span> instance.</td>
738
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
739
<td>The device kind, e.g. <span class="type">CD_DEVICE_MODE_VIRTUAL</span>
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.2</p>
764
Generated by GTK-Doc V1.17</div>
b'\\ No newline at end of file'