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</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.html" title="libcolord GObjects">
9
<link rel="prev" href="colord-cd-client.html" title="cd-client">
10
<link rel="next" href="colord-cd-profile.html" title="cd-profile">
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.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
<td><a accesskey="u" href="libcolord.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.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.synopsis" class="shortcut">Top</a>
26
<a href="#colord-cd-device.description" class="shortcut">Description</a>
29
<div class="refentry">
30
<a name="colord-cd-device"></a><div class="titlepage"></div>
31
<div class="refnamediv"><table width="100%"><tr>
33
<h2><span class="refentrytitle"><a name="colord-cd-device.top_of_page"></a>cd-device</span></h2>
34
<p>cd-device — Client object for accessing information about colord devices</p>
36
<td valign="top" align="right"></td>
38
<div class="refsynopsisdiv">
39
<a name="colord-cd-device.synopsis"></a><h2>Synopsis</h2>
40
<pre class="synopsis">#define <a class="link" href="colord-cd-device.html#CD-DEVICE-ERROR:CAPS" title="CD_DEVICE_ERROR">CD_DEVICE_ERROR</a>
41
#define <a class="link" href="colord-cd-device.html#CD-DEVICE-TYPE-ERROR:CAPS" title="CD_DEVICE_TYPE_ERROR">CD_DEVICE_TYPE_ERROR</a>
42
<span class="returnvalue">void</span> (<a class="link" href="colord-cd-client.html#changed" title="changed ()">*changed</a>) (<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>);
43
<span class="returnvalue">void</span> (<a class="link" href="colord-cd-device.html#cd-device-reserved1" title="_cd_device_reserved1 ()">*_cd_device_reserved1</a>) (<em class="parameter"><code><span class="type">void</span></code></em>);
44
<span class="returnvalue">void</span> (<a class="link" href="colord-cd-device.html#cd-device-reserved2" title="_cd_device_reserved2 ()">*_cd_device_reserved2</a>) (<em class="parameter"><code><span class="type">void</span></code></em>);
45
<span class="returnvalue">void</span> (<a class="link" href="colord-cd-device.html#cd-device-reserved3" title="_cd_device_reserved3 ()">*_cd_device_reserved3</a>) (<em class="parameter"><code><span class="type">void</span></code></em>);
46
<span class="returnvalue">void</span> (<a class="link" href="colord-cd-device.html#cd-device-reserved4" title="_cd_device_reserved4 ()">*_cd_device_reserved4</a>) (<em class="parameter"><code><span class="type">void</span></code></em>);
47
<span class="returnvalue">void</span> (<a class="link" href="colord-cd-device.html#cd-device-reserved5" title="_cd_device_reserved5 ()">*_cd_device_reserved5</a>) (<em class="parameter"><code><span class="type">void</span></code></em>);
48
<span class="returnvalue">void</span> (<a class="link" href="colord-cd-device.html#cd-device-reserved6" title="_cd_device_reserved6 ()">*_cd_device_reserved6</a>) (<em class="parameter"><code><span class="type">void</span></code></em>);
49
<span class="returnvalue">void</span> (<a class="link" href="colord-cd-device.html#cd-device-reserved7" title="_cd_device_reserved7 ()">*_cd_device_reserved7</a>) (<em class="parameter"><code><span class="type">void</span></code></em>);
50
<span class="returnvalue">void</span> (<a class="link" href="colord-cd-device.html#cd-device-reserved8" title="_cd_device_reserved8 ()">*_cd_device_reserved8</a>) (<em class="parameter"><code><span class="type">void</span></code></em>);
51
enum <a class="link" href="colord-cd-device.html#CdDeviceError" title="enum CdDeviceError">CdDeviceError</a>;
52
<a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> <a class="link" href="colord-cd-device.html#cd-device-error-quark" title="cd_device_error_quark ()">cd_device_error_quark</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
53
<span class="returnvalue">CdDevice</span> * <a class="link" href="colord-cd-device.html#cd-device-new" title="cd_device_new ()">cd_device_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
54
<span class="returnvalue">CdDevice</span> * <a class="link" href="colord-cd-device.html#cd-device-new-with-object-path" title="cd_device_new_with_object_path ()">cd_device_new_with_object_path</a> (<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> *object_path</code></em>);
55
<span class="returnvalue">void</span> <a class="link" href="colord-cd-device.html#cd-device-connect" title="cd_device_connect ()">cd_device_connect</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
56
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
57
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
58
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
59
<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.html#cd-device-connect-finish" title="cd_device_connect_finish ()">cd_device_connect_finish</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
60
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</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
<span class="returnvalue">void</span> <a class="link" href="colord-cd-device.html#cd-device-set-property" title="cd_device_set_property ()">cd_device_set_property</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
63
<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>,
64
<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>,
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/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
67
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
68
<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.html#cd-device-set-property-finish" title="cd_device_set_property_finish ()">cd_device_set_property_finish</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
69
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</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
<span class="returnvalue">void</span> <a class="link" href="colord-cd-device.html#cd-device-add-profile" title="cd_device_add_profile ()">cd_device_add_profile</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
72
<em class="parameter"><code><span class="type">CdDeviceRelation</span> relation</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/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
76
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
77
<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.html#cd-device-add-profile-finish" title="cd_device_add_profile_finish ()">cd_device_add_profile_finish</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
78
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</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
<span class="returnvalue">void</span> <a class="link" href="colord-cd-device.html#cd-device-remove-profile" title="cd_device_remove_profile ()">cd_device_remove_profile</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
81
<em class="parameter"><code><span class="type">CdProfile</span> *profile</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/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
84
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
85
<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.html#cd-device-remove-profile-finish" title="cd_device_remove_profile_finish ()">cd_device_remove_profile_finish</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
86
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</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
<span class="returnvalue">void</span> <a class="link" href="colord-cd-device.html#cd-device-make-profile-default" title="cd_device_make_profile_default ()">cd_device_make_profile_default</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
89
<em class="parameter"><code><span class="type">CdProfile</span> *profile</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/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
92
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
93
<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.html#cd-device-make-profile-default-finish" title="cd_device_make_profile_default_finish ()">cd_device_make_profile_default_finish</a>
94
(<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
95
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
96
<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>);
97
<span class="returnvalue">void</span> <a class="link" href="colord-cd-device.html#cd-device-profiling-inhibit" title="cd_device_profiling_inhibit ()">cd_device_profiling_inhibit</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</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/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
100
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
101
<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.html#cd-device-profiling-inhibit-finish" title="cd_device_profiling_inhibit_finish ()">cd_device_profiling_inhibit_finish</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
102
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
103
<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>);
104
<span class="returnvalue">void</span> <a class="link" href="colord-cd-device.html#cd-device-profiling-uninhibit" title="cd_device_profiling_uninhibit ()">cd_device_profiling_uninhibit</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
105
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
106
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
107
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
108
<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.html#cd-device-profiling-uninhibit-finish" title="cd_device_profiling_uninhibit_finish ()">cd_device_profiling_uninhibit_finish</a>
109
(<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
110
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
111
<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>);
112
<span class="returnvalue">void</span> <a class="link" href="colord-cd-device.html#cd-device-get-profile-for-qualifiers" title="cd_device_get_profile_for_qualifiers ()">cd_device_get_profile_for_qualifiers</a>
113
(<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
114
<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>,
115
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
116
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
117
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
118
<span class="returnvalue">CdProfile</span> * <a class="link" href="colord-cd-device.html#cd-device-get-profile-for-qualifiers-finish" title="cd_device_get_profile_for_qualifiers_finish ()">cd_device_get_profile_for_qualifiers_finish</a>
119
(<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
120
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
121
<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>);
122
<span class="returnvalue">void</span> <a class="link" href="colord-cd-device.html#cd-device-get-profile-relation" title="cd_device_get_profile_relation ()">cd_device_get_profile_relation</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
123
<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>,
124
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
125
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
126
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
127
<span class="returnvalue">CdDeviceRelation</span> <a class="link" href="colord-cd-device.html#cd-device-get-profile-relation-finish" title="cd_device_get_profile_relation_finish ()">cd_device_get_profile_relation_finish</a>
128
(<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
129
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
130
<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>);
131
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="colord-cd-device.html#cd-device-get-id" title="cd_device_get_id ()">cd_device_get_id</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);
132
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="colord-cd-device.html#cd-device-get-model" title="cd_device_get_model ()">cd_device_get_model</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);
133
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="colord-cd-device.html#cd-device-get-vendor" title="cd_device_get_vendor ()">cd_device_get_vendor</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);
134
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="colord-cd-device.html#cd-device-get-serial" title="cd_device_get_serial ()">cd_device_get_serial</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);
135
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="colord-cd-device.html#cd-device-get-format" title="cd_device_get_format ()">cd_device_get_format</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);
136
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="returnvalue">guint64</span></a> <a class="link" href="colord-cd-device.html#cd-device-get-created" title="cd_device_get_created ()">cd_device_get_created</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);
137
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="returnvalue">guint64</span></a> <a class="link" href="colord-cd-device.html#cd-device-get-modified" title="cd_device_get_modified ()">cd_device_get_modified</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);
138
<span class="returnvalue">CdDeviceKind</span> <a class="link" href="colord-cd-device.html#cd-device-get-kind" title="cd_device_get_kind ()">cd_device_get_kind</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);
139
<span class="returnvalue">CdColorspace</span> <a class="link" href="colord-cd-device.html#cd-device-get-colorspace" title="cd_device_get_colorspace ()">cd_device_get_colorspace</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);
140
<span class="returnvalue">CdDeviceMode</span> <a class="link" href="colord-cd-device.html#cd-device-get-mode" title="cd_device_get_mode ()">cd_device_get_mode</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);
141
<span class="returnvalue">CdObjectScope</span> <a class="link" href="colord-cd-device.html#cd-device-get-scope" title="cd_device_get_scope ()">cd_device_get_scope</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);
142
<a href="http://library.gnome.org/devel/glib/unstable/glib-Pointer-Arrays.html#GPtrArray"><span class="returnvalue">GPtrArray</span></a> * <a class="link" href="colord-cd-device.html#cd-device-get-profiles" title="cd_device_get_profiles ()">cd_device_get_profiles</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);
143
<span class="returnvalue">CdProfile</span> * <a class="link" href="colord-cd-device.html#cd-device-get-default-profile" title="cd_device_get_default_profile ()">cd_device_get_default_profile</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);
144
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="colord-cd-device.html#cd-device-get-object-path" title="cd_device_get_object_path ()">cd_device_get_object_path</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);
145
<a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="returnvalue">GHashTable</span></a> * <a class="link" href="colord-cd-device.html#cd-device-get-metadata" title="cd_device_get_metadata ()">cd_device_get_metadata</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);
146
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="colord-cd-device.html#cd-device-get-metadata-item" title="cd_device_get_metadata_item ()">cd_device_get_metadata_item</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
147
<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>);
148
<span class="returnvalue">void</span> <a class="link" href="colord-cd-device.html#cd-device-set-object-path" title="cd_device_set_object_path ()">cd_device_set_object_path</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
149
<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> *object_path</code></em>);
150
<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.html#cd-device-get-connected" title="cd_device_get_connected ()">cd_device_get_connected</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);
151
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="colord-cd-device.html#cd-device-to-string" title="cd_device_to_string ()">cd_device_to_string</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);
152
<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.html#cd-device-equal" title="cd_device_equal ()">cd_device_equal</a> (<em class="parameter"><code><span class="type">CdDevice</span> *device1</code></em>,
153
<em class="parameter"><code><span class="type">CdDevice</span> *device2</code></em>);
154
<a class="link" href="colord-cd-device.html#CdDevicePrivate" title="CdDevicePrivate">CdDevicePrivate</a>;
157
<div class="refsect1">
158
<a name="colord-cd-device.description"></a><h2>Description</h2>
160
A helper GObject to use for accessing colord devices, and to be notified
164
See also: <span class="type">CdClient</span>
167
<div class="refsect1">
168
<a name="colord-cd-device.details"></a><h2>Details</h2>
169
<div class="refsect2">
170
<a name="CD-DEVICE-ERROR:CAPS"></a><h3>CD_DEVICE_ERROR</h3>
171
<pre class="programlisting">#define CD_DEVICE_ERROR (cd_device_error_quark ())
177
<div class="refsect2">
178
<a name="CD-DEVICE-TYPE-ERROR:CAPS"></a><h3>CD_DEVICE_TYPE_ERROR</h3>
179
<pre class="programlisting">#define CD_DEVICE_TYPE_ERROR (cd_device_error_get_type ())
185
<div class="refsect2">
186
<a name="changed"></a><h3>changed ()</h3>
187
<pre class="programlisting"><span class="returnvalue">void</span> (*changed) (<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>);</pre>
192
<div class="refsect2">
193
<a name="cd-device-reserved1"></a><h3>_cd_device_reserved1 ()</h3>
194
<pre class="programlisting"><span class="returnvalue">void</span> (*_cd_device_reserved1) (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
199
<div class="refsect2">
200
<a name="cd-device-reserved2"></a><h3>_cd_device_reserved2 ()</h3>
201
<pre class="programlisting"><span class="returnvalue">void</span> (*_cd_device_reserved2) (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
206
<div class="refsect2">
207
<a name="cd-device-reserved3"></a><h3>_cd_device_reserved3 ()</h3>
208
<pre class="programlisting"><span class="returnvalue">void</span> (*_cd_device_reserved3) (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
213
<div class="refsect2">
214
<a name="cd-device-reserved4"></a><h3>_cd_device_reserved4 ()</h3>
215
<pre class="programlisting"><span class="returnvalue">void</span> (*_cd_device_reserved4) (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
220
<div class="refsect2">
221
<a name="cd-device-reserved5"></a><h3>_cd_device_reserved5 ()</h3>
222
<pre class="programlisting"><span class="returnvalue">void</span> (*_cd_device_reserved5) (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
227
<div class="refsect2">
228
<a name="cd-device-reserved6"></a><h3>_cd_device_reserved6 ()</h3>
229
<pre class="programlisting"><span class="returnvalue">void</span> (*_cd_device_reserved6) (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
234
<div class="refsect2">
235
<a name="cd-device-reserved7"></a><h3>_cd_device_reserved7 ()</h3>
236
<pre class="programlisting"><span class="returnvalue">void</span> (*_cd_device_reserved7) (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
241
<div class="refsect2">
242
<a name="cd-device-reserved8"></a><h3>_cd_device_reserved8 ()</h3>
243
<pre class="programlisting"><span class="returnvalue">void</span> (*_cd_device_reserved8) (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
248
<div class="refsect2">
249
<a name="CdDeviceError"></a><h3>enum CdDeviceError</h3>
250
<pre class="programlisting">typedef enum
252
CD_DEVICE_ERROR_FAILED,
257
Errors that can be thrown
259
<div class="variablelist"><table border="0">
260
<col align="left" valign="top">
263
<td><p><a name="CD-DEVICE-ERROR-FAILED:CAPS"></a><span class="term"><code class="literal">CD_DEVICE_ERROR_FAILED</code></span></p></td>
264
<td>the transaction failed for an unknown reason
268
<td><p><a name="CD-DEVICE-ERROR-LAST:CAPS"></a><span class="term"><code class="literal">CD_DEVICE_ERROR_LAST</code></span></p></td>
276
<div class="refsect2">
277
<a name="cd-device-error-quark"></a><h3>cd_device_error_quark ()</h3>
278
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> cd_device_error_quark (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
279
<div class="variablelist"><table border="0">
280
<col align="left" valign="top">
282
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
283
<td>An error quark.</td>
286
<p class="since">Since 0.1.0</p>
289
<div class="refsect2">
290
<a name="cd-device-new"></a><h3>cd_device_new ()</h3>
291
<pre class="programlisting"><span class="returnvalue">CdDevice</span> * cd_device_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
293
Creates a new <span class="type">CdDevice</span> object.
295
<div class="variablelist"><table border="0">
296
<col align="left" valign="top">
298
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
299
<td>a new CdDevice object.</td>
302
<p class="since">Since 0.1.0</p>
305
<div class="refsect2">
306
<a name="cd-device-new-with-object-path"></a><h3>cd_device_new_with_object_path ()</h3>
307
<pre class="programlisting"><span class="returnvalue">CdDevice</span> * cd_device_new_with_object_path (<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> *object_path</code></em>);</pre>
309
Creates a new <span class="type">CdDevice</span> object with a known object path.
311
<div class="variablelist"><table border="0">
312
<col align="left" valign="top">
315
<td><p><span class="term"><em class="parameter"><code>object_path</code></em> :</span></p></td>
316
<td>The colord object path.</td>
319
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
320
<td>a new device object.</td>
324
<p class="since">Since 0.1.8</p>
327
<div class="refsect2">
328
<a name="cd-device-connect"></a><h3>cd_device_connect ()</h3>
329
<pre class="programlisting"><span class="returnvalue">void</span> cd_device_connect (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
330
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
331
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
332
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
334
Connects to the object and fills up initial properties.
336
<div class="variablelist"><table border="0">
337
<col align="left" valign="top">
340
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
341
<td>a <span class="type">CdDevice</span> instance.</td>
344
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
345
<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>
349
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
350
<td>the function to run on completion</td>
353
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
354
<td>the data to pass to <em class="parameter"><code>callback</code></em>
359
<p class="since">Since 0.1.8</p>
362
<div class="refsect2">
363
<a name="cd-device-connect-finish"></a><h3>cd_device_connect_finish ()</h3>
364
<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_finish (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
365
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
366
<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>
368
Gets the result from the asynchronous function.
370
<div class="variablelist"><table border="0">
371
<col align="left" valign="top">
374
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
375
<td>a <span class="type">CdDevice</span> instance.</td>
378
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
379
<td>the <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a>
383
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
384
<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>
388
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
393
<p class="since">Since 0.1.8</p>
396
<div class="refsect2">
397
<a name="cd-device-set-property"></a><h3>cd_device_set_property ()</h3>
398
<pre class="programlisting"><span class="returnvalue">void</span> cd_device_set_property (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
399
<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>,
400
<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>,
401
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
402
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
403
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
405
Sets a property on the device.
407
<div class="variablelist"><table border="0">
408
<col align="left" valign="top">
411
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
412
<td>a <span class="type">CdDevice</span> instance.</td>
415
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
416
<td>a property key</td>
419
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
420
<td>a property key</td>
423
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
424
<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>
428
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
429
<td>the function to run on completion</td>
432
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
433
<td>the data to pass to <em class="parameter"><code>callback</code></em>
438
<p class="since">Since 0.1.8</p>
441
<div class="refsect2">
442
<a name="cd-device-set-property-finish"></a><h3>cd_device_set_property_finish ()</h3>
443
<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_finish (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
444
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
445
<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>
447
Gets the result from the asynchronous function.
449
<div class="variablelist"><table border="0">
450
<col align="left" valign="top">
453
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
454
<td>a <span class="type">CdDevice</span> instance.</td>
457
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
458
<td>the <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a>
462
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
463
<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>
467
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
472
<p class="since">Since 0.1.8</p>
475
<div class="refsect2">
476
<a name="cd-device-add-profile"></a><h3>cd_device_add_profile ()</h3>
477
<pre class="programlisting"><span class="returnvalue">void</span> cd_device_add_profile (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
478
<em class="parameter"><code><span class="type">CdDeviceRelation</span> relation</code></em>,
479
<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>,
480
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
481
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
482
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
484
Adds a profile to a device.
486
<div class="variablelist"><table border="0">
487
<col align="left" valign="top">
490
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
491
<td>a <span class="type">CdDevice</span> instance.</td>
494
<td><p><span class="term"><em class="parameter"><code>relation</code></em> :</span></p></td>
495
<td>a <span class="type">CdDeviceRelation</span>, e.g. <span class="type">CD_DEVICE_RELATION_HARD</span>
499
<td><p><span class="term"><em class="parameter"><code>profile</code></em> :</span></p></td>
500
<td>a <span class="type">CdProfile</span> instance</td>
503
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
504
<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>
508
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
509
<td>the function to run on completion</td>
512
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
513
<td>the data to pass to <em class="parameter"><code>callback</code></em>
518
<p class="since">Since 0.1.8</p>
521
<div class="refsect2">
522
<a name="cd-device-add-profile-finish"></a><h3>cd_device_add_profile_finish ()</h3>
523
<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_finish (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
524
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
525
<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>
527
Gets the result from the asynchronous function.
529
<div class="variablelist"><table border="0">
530
<col align="left" valign="top">
533
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
534
<td>a <span class="type">CdDevice</span> instance.</td>
537
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
538
<td>the <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a>
542
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
543
<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>
547
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
552
<p class="since">Since 0.1.8</p>
555
<div class="refsect2">
556
<a name="cd-device-remove-profile"></a><h3>cd_device_remove_profile ()</h3>
557
<pre class="programlisting"><span class="returnvalue">void</span> cd_device_remove_profile (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
558
<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>,
559
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
560
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
561
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
563
Removes a profile from a device.
565
<div class="variablelist"><table border="0">
566
<col align="left" valign="top">
569
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
570
<td>a <span class="type">CdDevice</span> instance.</td>
573
<td><p><span class="term"><em class="parameter"><code>profile</code></em> :</span></p></td>
574
<td>a <span class="type">CdProfile</span> instance</td>
577
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
578
<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>
582
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
583
<td>the function to run on completion</td>
586
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
587
<td>the data to pass to <em class="parameter"><code>callback</code></em>
592
<p class="since">Since 0.1.8</p>
595
<div class="refsect2">
596
<a name="cd-device-remove-profile-finish"></a><h3>cd_device_remove_profile_finish ()</h3>
597
<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_finish (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
598
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
599
<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>
601
Gets the result from the asynchronous function.
603
<div class="variablelist"><table border="0">
604
<col align="left" valign="top">
607
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
608
<td>a <span class="type">CdDevice</span> instance.</td>
611
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
612
<td>the <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></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>
621
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
626
<p class="since">Since 0.1.8</p>
629
<div class="refsect2">
630
<a name="cd-device-make-profile-default"></a><h3>cd_device_make_profile_default ()</h3>
631
<pre class="programlisting"><span class="returnvalue">void</span> cd_device_make_profile_default (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
632
<em class="parameter"><code><span class="type">CdProfile</span> *profile</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/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
635
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
637
Makes an already added profile default for a device.
639
<div class="variablelist"><table border="0">
640
<col align="left" valign="top">
643
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
644
<td>a <span class="type">CdDevice</span> instance.</td>
647
<td><p><span class="term"><em class="parameter"><code>profile</code></em> :</span></p></td>
648
<td>a <span class="type">CdProfile</span> instance</td>
651
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
652
<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>
656
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
657
<td>the function to run on completion</td>
660
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
661
<td>the data to pass to <em class="parameter"><code>callback</code></em>
666
<p class="since">Since 0.1.8</p>
669
<div class="refsect2">
670
<a name="cd-device-make-profile-default-finish"></a><h3>cd_device_make_profile_default_finish ()</h3>
671
<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_finish
672
(<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
673
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
674
<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>
676
Gets the result from the asynchronous function.
678
<div class="variablelist"><table border="0">
679
<col align="left" valign="top">
682
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
683
<td>a <span class="type">CdDevice</span> instance.</td>
686
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
687
<td>the <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a>
691
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
692
<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>
696
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
701
<p class="since">Since 0.1.8</p>
704
<div class="refsect2">
705
<a name="cd-device-profiling-inhibit"></a><h3>cd_device_profiling_inhibit ()</h3>
706
<pre class="programlisting"><span class="returnvalue">void</span> cd_device_profiling_inhibit (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
707
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
708
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
709
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
711
Sets up the device for profiling and causes no profiles to be
712
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.
714
<div class="variablelist"><table border="0">
715
<col align="left" valign="top">
718
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
719
<td>a <span class="type">CdDevice</span> instance.</td>
722
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
723
<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>
727
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
728
<td>the function to run on completion</td>
731
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
732
<td>the data to pass to <em class="parameter"><code>callback</code></em>
737
<p class="since">Since 0.1.8</p>
740
<div class="refsect2">
741
<a name="cd-device-profiling-inhibit-finish"></a><h3>cd_device_profiling_inhibit_finish ()</h3>
742
<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_finish (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
743
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
744
<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>
746
Gets the result from the asynchronous function.
748
<div class="variablelist"><table border="0">
749
<col align="left" valign="top">
752
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
753
<td>a <span class="type">CdDevice</span> instance.</td>
756
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
757
<td>the <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a>
761
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
762
<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>
766
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
771
<p class="since">Since 0.1.8</p>
774
<div class="refsect2">
775
<a name="cd-device-profiling-uninhibit"></a><h3>cd_device_profiling_uninhibit ()</h3>
776
<pre class="programlisting"><span class="returnvalue">void</span> cd_device_profiling_uninhibit (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
777
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
778
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
779
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
781
Restores the device after profiling and causes normal profiles to be
782
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.
784
<div class="variablelist"><table border="0">
785
<col align="left" valign="top">
788
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
789
<td>a <span class="type">CdDevice</span> instance.</td>
792
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
793
<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>
797
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
798
<td>the function to run on completion</td>
801
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
802
<td>the data to pass to <em class="parameter"><code>callback</code></em>
807
<p class="since">Since 0.1.8</p>
810
<div class="refsect2">
811
<a name="cd-device-profiling-uninhibit-finish"></a><h3>cd_device_profiling_uninhibit_finish ()</h3>
812
<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_finish
813
(<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
814
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
815
<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>
817
Gets the result from the asynchronous function.
819
<div class="variablelist"><table border="0">
820
<col align="left" valign="top">
823
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
824
<td>a <span class="type">CdDevice</span> instance.</td>
827
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
828
<td>the <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a>
832
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
833
<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>
837
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
842
<p class="since">Since 0.1.8</p>
845
<div class="refsect2">
846
<a name="cd-device-get-profile-for-qualifiers"></a><h3>cd_device_get_profile_for_qualifiers ()</h3>
847
<pre class="programlisting"><span class="returnvalue">void</span> cd_device_get_profile_for_qualifiers
848
(<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
849
<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>,
850
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
851
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
852
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
854
Gets the prefered profile for some qualifiers.
856
<div class="variablelist"><table border="0">
857
<col align="left" valign="top">
860
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
861
<td>a <span class="type">CdDevice</span> instance.</td>
864
<td><p><span class="term"><em class="parameter"><code>qualifiers</code></em> :</span></p></td>
865
<td>a set of qualifiers that can included wildcards</td>
868
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
869
<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>
873
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
874
<td>the function to run on completion</td>
877
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
878
<td>the data to pass to <em class="parameter"><code>callback</code></em>
883
<p class="since">Since 0.1.8</p>
886
<div class="refsect2">
887
<a name="cd-device-get-profile-for-qualifiers-finish"></a><h3>cd_device_get_profile_for_qualifiers_finish ()</h3>
888
<pre class="programlisting"><span class="returnvalue">CdProfile</span> * cd_device_get_profile_for_qualifiers_finish
889
(<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
890
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
891
<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>
893
Gets the result from the asynchronous function.
895
<div class="variablelist"><table border="0">
896
<col align="left" valign="top">
899
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
900
<td>a <span class="type">CdDevice</span> instance.</td>
903
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
904
<td>the <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a>
908
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
909
<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>
913
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
914
<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>
919
<p class="since">Since 0.1.8</p>
922
<div class="refsect2">
923
<a name="cd-device-get-profile-relation"></a><h3>cd_device_get_profile_relation ()</h3>
924
<pre class="programlisting"><span class="returnvalue">void</span> cd_device_get_profile_relation (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
925
<em class="parameter"><code><span class="type">CdProfile</span> *profile</code></em>,
926
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
927
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
928
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
930
Gets the property relationship to the device.
932
<div class="variablelist"><table border="0">
933
<col align="left" valign="top">
936
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
937
<td>a <span class="type">CdDevice</span> instance.</td>
940
<td><p><span class="term"><em class="parameter"><code>profile</code></em> :</span></p></td>
941
<td>a <span class="type">CdProfile</span> instance</td>
944
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
945
<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>
949
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
950
<td>the function to run on completion</td>
953
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
954
<td>the data to pass to <em class="parameter"><code>callback</code></em>
959
<p class="since">Since 0.1.8</p>
962
<div class="refsect2">
963
<a name="cd-device-get-profile-relation-finish"></a><h3>cd_device_get_profile_relation_finish ()</h3>
964
<pre class="programlisting"><span class="returnvalue">CdDeviceRelation</span> cd_device_get_profile_relation_finish
965
(<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
966
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
967
<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>
969
Gets the result from the asynchronous function.
971
<div class="variablelist"><table border="0">
972
<col align="left" valign="top">
975
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
976
<td>a <span class="type">CdDevice</span> instance.</td>
979
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
980
<td>the <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a>
984
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
985
<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>
989
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
994
<p class="since">Since 0.1.8</p>
997
<div class="refsect2">
998
<a name="cd-device-get-id"></a><h3>cd_device_get_id ()</h3>
999
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * cd_device_get_id (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);</pre>
1003
<div class="variablelist"><table border="0">
1004
<col align="left" valign="top">
1007
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
1008
<td>a <span class="type">CdDevice</span> instance.</td>
1011
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1012
<td>A string, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for invalid</td>
1016
<p class="since">Since 0.1.0</p>
1019
<div class="refsect2">
1020
<a name="cd-device-get-model"></a><h3>cd_device_get_model ()</h3>
1021
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * cd_device_get_model (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);</pre>
1023
Gets the device model.
1025
<div class="variablelist"><table border="0">
1026
<col align="left" valign="top">
1029
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
1030
<td>a <span class="type">CdDevice</span> instance.</td>
1033
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1034
<td>A string, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for invalid</td>
1038
<p class="since">Since 0.1.0</p>
1041
<div class="refsect2">
1042
<a name="cd-device-get-vendor"></a><h3>cd_device_get_vendor ()</h3>
1043
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * cd_device_get_vendor (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);</pre>
1045
Gets the device vendor.
1047
<div class="variablelist"><table border="0">
1048
<col align="left" valign="top">
1051
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
1052
<td>a <span class="type">CdDevice</span> instance.</td>
1055
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1056
<td>A string, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for invalid</td>
1060
<p class="since">Since 0.1.1</p>
1063
<div class="refsect2">
1064
<a name="cd-device-get-serial"></a><h3>cd_device_get_serial ()</h3>
1065
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * cd_device_get_serial (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);</pre>
1067
Gets the device serial number.
1069
<div class="variablelist"><table border="0">
1070
<col align="left" valign="top">
1073
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
1074
<td>a <span class="type">CdDevice</span> instance.</td>
1077
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1078
<td>A string, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for invalid</td>
1082
<p class="since">Since 0.1.0</p>
1085
<div class="refsect2">
1086
<a name="cd-device-get-format"></a><h3>cd_device_get_format ()</h3>
1087
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * cd_device_get_format (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);</pre>
1089
Gets the device format.
1091
<div class="variablelist"><table border="0">
1092
<col align="left" valign="top">
1095
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
1096
<td>a <span class="type">CdDevice</span> instance.</td>
1099
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1100
<td>A string, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for invalid</td>
1104
<p class="since">Since 0.1.9</p>
1107
<div class="refsect2">
1108
<a name="cd-device-get-created"></a><h3>cd_device_get_created ()</h3>
1109
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="returnvalue">guint64</span></a> cd_device_get_created (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);</pre>
1111
Gets the device creation date.
1113
<div class="variablelist"><table border="0">
1114
<col align="left" valign="top">
1117
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
1118
<td>a <span class="type">CdDevice</span> instance.</td>
1121
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1122
<td>A value in seconds, or 0 for invalid</td>
1126
<p class="since">Since 0.1.0</p>
1129
<div class="refsect2">
1130
<a name="cd-device-get-modified"></a><h3>cd_device_get_modified ()</h3>
1131
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="returnvalue">guint64</span></a> cd_device_get_modified (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);</pre>
1133
Gets the device modified date.
1135
<div class="variablelist"><table border="0">
1136
<col align="left" valign="top">
1139
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
1140
<td>a <span class="type">CdDevice</span> instance.</td>
1143
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1144
<td>A value in seconds, or 0 for invalid</td>
1148
<p class="since">Since 0.1.1</p>
1151
<div class="refsect2">
1152
<a name="cd-device-get-kind"></a><h3>cd_device_get_kind ()</h3>
1153
<pre class="programlisting"><span class="returnvalue">CdDeviceKind</span> cd_device_get_kind (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);</pre>
1155
Gets the device kind.
1157
<div class="variablelist"><table border="0">
1158
<col align="left" valign="top">
1161
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
1162
<td>a <span class="type">CdDevice</span> instance.</td>
1165
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1166
<td>A device kind, e.g. <code class="literal">CD_DEVICE_KIND_DISPLAY</code>
1171
<p class="since">Since 0.1.0</p>
1174
<div class="refsect2">
1175
<a name="cd-device-get-colorspace"></a><h3>cd_device_get_colorspace ()</h3>
1176
<pre class="programlisting"><span class="returnvalue">CdColorspace</span> cd_device_get_colorspace (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);</pre>
1178
Gets the device colorspace.
1180
<div class="variablelist"><table border="0">
1181
<col align="left" valign="top">
1184
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
1185
<td>a <span class="type">CdDevice</span> instance.</td>
1188
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1189
<td>A colorspace, e.g. <code class="literal">CD_COLORSPACE_RGB</code>
1194
<p class="since">Since 0.1.1</p>
1197
<div class="refsect2">
1198
<a name="cd-device-get-mode"></a><h3>cd_device_get_mode ()</h3>
1199
<pre class="programlisting"><span class="returnvalue">CdDeviceMode</span> cd_device_get_mode (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);</pre>
1201
Gets the device mode.
1203
<div class="variablelist"><table border="0">
1204
<col align="left" valign="top">
1207
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
1208
<td>a <span class="type">CdDevice</span> instance.</td>
1211
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1212
<td>A colorspace, e.g. <code class="literal">CD_DEVICE_MODE_VIRTUAL</code>
1217
<p class="since">Since 0.1.2</p>
1220
<div class="refsect2">
1221
<a name="cd-device-get-scope"></a><h3>cd_device_get_scope ()</h3>
1222
<pre class="programlisting"><span class="returnvalue">CdObjectScope</span> cd_device_get_scope (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);</pre>
1224
Gets the device scope.
1226
<div class="variablelist"><table border="0">
1227
<col align="left" valign="top">
1230
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
1231
<td>a <span class="type">CdDevice</span> instance.</td>
1234
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1235
<td>An object scope, e.g. <code class="literal">CD_OBJECT_SCOPE_TEMP</code>
1240
<p class="since">Since 0.1.10</p>
1243
<div class="refsect2">
1244
<a name="cd-device-get-profiles"></a><h3>cd_device_get_profiles ()</h3>
1245
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Pointer-Arrays.html#GPtrArray"><span class="returnvalue">GPtrArray</span></a> * cd_device_get_profiles (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);</pre>
1247
Gets the device profiles.
1249
<div class="variablelist"><table border="0">
1250
<col align="left" valign="top">
1253
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
1254
<td>a <span class="type">CdDevice</span> instance.</td>
1257
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1258
<td>An array of <span class="type">CdProfile</span>'s. <span class="annotation">[<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> CdProfile][<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
1263
<p class="since">Since 0.1.0</p>
1266
<div class="refsect2">
1267
<a name="cd-device-get-default-profile"></a><h3>cd_device_get_default_profile ()</h3>
1268
<pre class="programlisting"><span class="returnvalue">CdProfile</span> * cd_device_get_default_profile (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);</pre>
1270
Gets the default device profile.
1272
<div class="variablelist"><table border="0">
1273
<col align="left" valign="top">
1276
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
1277
<td>a <span class="type">CdDevice</span> instance.</td>
1280
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1281
<td>A <span class="type">CdProfile</span>'s or NULL. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
1286
<p class="since">Since 0.1.1</p>
1289
<div class="refsect2">
1290
<a name="cd-device-get-object-path"></a><h3>cd_device_get_object_path ()</h3>
1291
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * cd_device_get_object_path (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);</pre>
1293
Gets the object path for the device.
1295
<div class="variablelist"><table border="0">
1296
<col align="left" valign="top">
1299
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
1300
<td>a <span class="type">CdDevice</span> instance.</td>
1303
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1304
<td>the object path, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1309
<p class="since">Since 0.1.0</p>
1312
<div class="refsect2">
1313
<a name="cd-device-get-metadata"></a><h3>cd_device_get_metadata ()</h3>
1314
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="returnvalue">GHashTable</span></a> * cd_device_get_metadata (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);</pre>
1316
Returns the device metadata.
1318
<div class="variablelist"><table border="0">
1319
<col align="left" valign="top">
1322
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
1323
<td>a <span class="type">CdDevice</span> instance.</td>
1326
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1327
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a>, free with <a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#g-hash-table-unref"><code class="function">g_hash_table_unref()</code></a>. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
1332
<p class="since">Since 0.1.5</p>
1335
<div class="refsect2">
1336
<a name="cd-device-get-metadata-item"></a><h3>cd_device_get_metadata_item ()</h3>
1337
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * cd_device_get_metadata_item (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
1338
<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>);</pre>
1340
Returns the device metadata for a specific key.
1342
<div class="variablelist"><table border="0">
1343
<col align="left" valign="top">
1346
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
1347
<td>a <span class="type">CdDevice</span> instance.</td>
1350
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
1351
<td>a key for the metadata dictionary</td>
1354
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1355
<td>the metadata value, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if not set.</td>
1359
<p class="since">Since 0.1.5</p>
1362
<div class="refsect2">
1363
<a name="cd-device-set-object-path"></a><h3>cd_device_set_object_path ()</h3>
1364
<pre class="programlisting"><span class="returnvalue">void</span> cd_device_set_object_path (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>,
1365
<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> *object_path</code></em>);</pre>
1367
Sets the object path of the device.
1369
<div class="variablelist"><table border="0">
1370
<col align="left" valign="top">
1373
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
1374
<td>a <span class="type">CdDevice</span> instance.</td>
1377
<td><p><span class="term"><em class="parameter"><code>object_path</code></em> :</span></p></td>
1378
<td>The colord object path.</td>
1382
<p class="since">Since 0.1.8</p>
1385
<div class="refsect2">
1386
<a name="cd-device-get-connected"></a><h3>cd_device_get_connected ()</h3>
1387
<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_get_connected (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);</pre>
1389
Gets if the device has been connected.
1391
<div class="variablelist"><table border="0">
1392
<col align="left" valign="top">
1395
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
1396
<td>a <span class="type">CdDevice</span> instance.</td>
1399
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1401
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if properties are valid</td>
1405
<p class="since">Since 0.1.9</p>
1408
<div class="refsect2">
1409
<a name="cd-device-to-string"></a><h3>cd_device_to_string ()</h3>
1410
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * cd_device_to_string (<em class="parameter"><code><span class="type">CdDevice</span> *device</code></em>);</pre>
1412
Converts the device to a string description.
1414
<div class="variablelist"><table border="0">
1415
<col align="left" valign="top">
1418
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
1419
<td>a <span class="type">CdDevice</span> instance.</td>
1422
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1423
<td>text representation of <span class="type">CdDevice</span>
1428
<p class="since">Since 0.1.0</p>
1431
<div class="refsect2">
1432
<a name="cd-device-equal"></a><h3>cd_device_equal ()</h3>
1433
<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_equal (<em class="parameter"><code><span class="type">CdDevice</span> *device1</code></em>,
1434
<em class="parameter"><code><span class="type">CdDevice</span> *device2</code></em>);</pre>
1436
Tests two devices for equality.
1438
<div class="variablelist"><table border="0">
1439
<col align="left" valign="top">
1442
<td><p><span class="term"><em class="parameter"><code>device1</code></em> :</span></p></td>
1443
<td>one <span class="type">CdDevice</span> instance.</td>
1446
<td><p><span class="term"><em class="parameter"><code>device2</code></em> :</span></p></td>
1447
<td>another <span class="type">CdDevice</span> instance.</td>
1450
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1452
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the devices are the same device</td>
1456
<p class="since">Since 0.1.8</p>
1459
<div class="refsect2">
1460
<a name="CdDevicePrivate"></a><h3>CdDevicePrivate</h3>
1461
<pre class="programlisting">typedef struct _CdDevicePrivate CdDevicePrivate;</pre>
1463
Private <span class="type">CdDevice</span> data
1468
<div class="footer">
1470
Generated by GTK-Doc V1.17</div>
b'\\ No newline at end of file'