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>BluetoothClient</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
<link rel="home" href="index.html" title="gnome-bluetooth Reference Manual">
8
<link rel="up" href="ch01.html" title="API Reference">
9
<link rel="prev" href="gnome-bluetooth-bluetooth-chooser.html" title="BluetoothChooser">
10
<link rel="next" href="BluetoothChooserButton.html" title="BluetoothChooserButton">
11
<meta name="generator" content="GTK-Doc V1.15.1 (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="gnome-bluetooth-bluetooth-chooser.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
<td><a accesskey="u" href="ch01.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">gnome-bluetooth Reference Manual</th>
21
<td><a accesskey="n" href="BluetoothChooserButton.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="#gnome-bluetooth-bluetooth-client.synopsis" class="shortcut">Top</a>
26
<a href="#gnome-bluetooth-bluetooth-client.description" class="shortcut">Description</a>
29
<div class="refentry">
30
<a name="gnome-bluetooth-bluetooth-client"></a><div class="titlepage"></div>
31
<div class="refnamediv"><table width="100%"><tr>
33
<h2><span class="refentrytitle"><a name="gnome-bluetooth-bluetooth-client.top_of_page"></a>BluetoothClient</span></h2>
34
<p>BluetoothClient — Bluetooth client object</p>
36
<td valign="top" align="right"></td>
38
<div class="refsect1">
39
<a name="gnome-bluetooth-bluetooth-client.stability-level"></a><h2>Stability Level</h2>
40
Stable, unless otherwise indicated
42
<div class="refsynopsisdiv">
43
<a name="gnome-bluetooth-bluetooth-client.synopsis"></a><h2>Synopsis</h2>
44
<pre class="synopsis">
45
#include <bluetooth-client.h>
47
#define <a class="link" href="gnome-bluetooth-bluetooth-client.html#BLUETOOTH-GET-CLIENT-CLASS:CAPS" title="BLUETOOTH_GET_CLIENT_CLASS()">BLUETOOTH_GET_CLIENT_CLASS</a> (obj)
48
struct <a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient">BluetoothClient</a>;
49
<a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="returnvalue">BluetoothClient</span></a> * <a class="link" href="gnome-bluetooth-bluetooth-client.html#bluetooth-client-new" title="bluetooth_client_new ()">bluetooth_client_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
50
<a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="returnvalue">GtkTreeModel</span></a> * <a class="link" href="gnome-bluetooth-bluetooth-client.html#bluetooth-client-get-model" title="bluetooth_client_get_model ()">bluetooth_client_get_model</a> (<em class="parameter"><code><a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="type">BluetoothClient</span></a> *client</code></em>);
51
<a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="returnvalue">GtkTreeModel</span></a> * <a class="link" href="gnome-bluetooth-bluetooth-client.html#bluetooth-client-get-filter-model" title="bluetooth_client_get_filter_model ()">bluetooth_client_get_filter_model</a> (<em class="parameter"><code><a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="type">BluetoothClient</span></a> *client</code></em>,
52
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModelFilter.html#GtkTreeModelFilterVisibleFunc"><span class="type">GtkTreeModelFilterVisibleFunc</span></a> func</code></em>,
53
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
54
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>);
55
<a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="returnvalue">GtkTreeModel</span></a> * <a class="link" href="gnome-bluetooth-bluetooth-client.html#bluetooth-client-get-adapter-model" title="bluetooth_client_get_adapter_model ()">bluetooth_client_get_adapter_model</a> (<em class="parameter"><code><a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="type">BluetoothClient</span></a> *client</code></em>);
56
<a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="returnvalue">GtkTreeModel</span></a> * <a class="link" href="gnome-bluetooth-bluetooth-client.html#bluetooth-client-get-device-model" title="bluetooth_client_get_device_model ()">bluetooth_client_get_device_model</a> (<em class="parameter"><code><a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="type">BluetoothClient</span></a> *client</code></em>,
57
<em class="parameter"><code><span class="type">DBusGProxy</span> *adapter</code></em>);
58
<a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="returnvalue">GtkTreeModel</span></a> * <a class="link" href="gnome-bluetooth-bluetooth-client.html#bluetooth-client-get-device-filter-model" title="bluetooth_client_get_device_filter_model ()">bluetooth_client_get_device_filter_model</a>
59
(<em class="parameter"><code><a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="type">BluetoothClient</span></a> *client</code></em>,
60
<em class="parameter"><code><span class="type">DBusGProxy</span> *adapter</code></em>,
61
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModelFilter.html#GtkTreeModelFilterVisibleFunc"><span class="type">GtkTreeModelFilterVisibleFunc</span></a> func</code></em>,
62
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
63
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>);
64
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="gnome-bluetooth-bluetooth-client.html#bluetooth-type-to-string" title="bluetooth_type_to_string ()">bluetooth_type_to_string</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> type</code></em>);
65
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="gnome-bluetooth-bluetooth-client.html#bluetooth-verify-address" title="bluetooth_verify_address ()">bluetooth_verify_address</a> (<em class="parameter"><code>const <span class="type">char</span> *bdaddr</code></em>);
66
const <span class="returnvalue">char</span> * <a class="link" href="gnome-bluetooth-bluetooth-client.html#bluetooth-uuid-to-string" title="bluetooth_uuid_to_string ()">bluetooth_uuid_to_string</a> (<em class="parameter"><code>const <span class="type">char</span> *uuid</code></em>);
69
<div class="refsect1">
70
<a name="gnome-bluetooth-bluetooth-client.description"></a><h2>Description</h2>
72
The <a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="type">BluetoothClient</span></a> object is used to query the state of Bluetooth
76
<div class="refsect1">
77
<a name="gnome-bluetooth-bluetooth-client.details"></a><h2>Details</h2>
78
<div class="refsect2">
79
<a name="BLUETOOTH-GET-CLIENT-CLASS:CAPS"></a><h3>BLUETOOTH_GET_CLIENT_CLASS()</h3>
80
<pre class="programlisting">#define BLUETOOTH_GET_CLIENT_CLASS(obj)</pre>
85
<div class="refsect2">
86
<a name="BluetoothClient"></a><h3>struct BluetoothClient</h3>
87
<pre class="programlisting">struct BluetoothClient {
95
<div class="refsect2">
96
<a name="bluetooth-client-new"></a><h3>bluetooth_client_new ()</h3>
97
<pre class="programlisting"><a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="returnvalue">BluetoothClient</span></a> * bluetooth_client_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
99
Returns a reference to the <a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="type">BluetoothClient</span></a> singleton. Use #<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> the object when done.
101
<div class="variablelist"><table border="0">
102
<col align="left" valign="top">
104
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
105
<td>a <a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="type">BluetoothClient</span></a> object. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
111
<div class="refsect2">
112
<a name="bluetooth-client-get-model"></a><h3>bluetooth_client_get_model ()</h3>
113
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="returnvalue">GtkTreeModel</span></a> * bluetooth_client_get_model (<em class="parameter"><code><a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="type">BluetoothClient</span></a> *client</code></em>);</pre>
115
Returns an unfiltered <a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="type">GtkTreeModel</span></a> representing the adapter and devices available on the system.
117
<div class="variablelist"><table border="0">
118
<col align="left" valign="top">
121
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
122
<td>a <a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="type">BluetoothClient</span></a> object</td>
125
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
126
<td>a <a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="type">GtkTreeModel</span></a> object. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
133
<div class="refsect2">
134
<a name="bluetooth-client-get-filter-model"></a><h3>bluetooth_client_get_filter_model ()</h3>
135
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="returnvalue">GtkTreeModel</span></a> * bluetooth_client_get_filter_model (<em class="parameter"><code><a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="type">BluetoothClient</span></a> *client</code></em>,
136
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModelFilter.html#GtkTreeModelFilterVisibleFunc"><span class="type">GtkTreeModelFilterVisibleFunc</span></a> func</code></em>,
137
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
138
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>);</pre>
140
Returns a <a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="type">GtkTreeModel</span></a> of devices filtered using the <em class="parameter"><code>func</code></em>, <em class="parameter"><code>data</code></em> and <em class="parameter"><code>destroy</code></em> arguments to pass to <a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModelFilter.html#gtk-tree-model-filter-set-visible-func"><code class="function">gtk_tree_model_filter_set_visible_func()</code></a>.
142
<div class="variablelist"><table border="0">
143
<col align="left" valign="top">
146
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
147
<td>a <a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="type">BluetoothClient</span></a> object</td>
150
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
151
<td>a <a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModelFilter.html#GtkTreeModelFilterVisibleFunc"><span class="type">GtkTreeModelFilterVisibleFunc</span></a>
155
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
156
<td>user data to pass to <a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModelFilter.html#gtk-tree-model-filter-set-visible-func"><code class="function">gtk_tree_model_filter_set_visible_func()</code></a>
160
<td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
161
<td>a destroy function for <a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModelFilter.html#gtk-tree-model-filter-set-visible-func"><code class="function">gtk_tree_model_filter_set_visible_func()</code></a>
165
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
166
<td>a <a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="type">GtkTreeModel</span></a> object. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
173
<div class="refsect2">
174
<a name="bluetooth-client-get-adapter-model"></a><h3>bluetooth_client_get_adapter_model ()</h3>
175
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="returnvalue">GtkTreeModel</span></a> * bluetooth_client_get_adapter_model (<em class="parameter"><code><a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="type">BluetoothClient</span></a> *client</code></em>);</pre>
177
Returns a filtered <a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="type">GtkTreeModel</span></a> with only adapters present.
179
<div class="variablelist"><table border="0">
180
<col align="left" valign="top">
183
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
184
<td>a <a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="type">BluetoothClient</span></a> object</td>
187
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
188
<td>a <a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="type">GtkTreeModel</span></a> object. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
195
<div class="refsect2">
196
<a name="bluetooth-client-get-device-model"></a><h3>bluetooth_client_get_device_model ()</h3>
197
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="returnvalue">GtkTreeModel</span></a> * bluetooth_client_get_device_model (<em class="parameter"><code><a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="type">BluetoothClient</span></a> *client</code></em>,
198
<em class="parameter"><code><span class="type">DBusGProxy</span> *adapter</code></em>);</pre>
200
Returns a filtered <a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="type">GtkTreeModel</span></a> with only devices belonging to the selected adapter listed. Note that the model will follow a specific adapter, and will not follow the default-adapter when <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is passed.
202
<div class="variablelist"><table border="0">
203
<col align="left" valign="top">
206
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
207
<td>a <a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="type">BluetoothClient</span></a> object</td>
210
<td><p><span class="term"><em class="parameter"><code>adapter</code></em> :</span></p></td>
211
<td>a <span class="type">DBusGProxy</span> of the adapter object, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to get the default adapter.</td>
214
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
215
<td>a <a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="type">GtkTreeModel</span></a> object. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
222
<div class="refsect2">
223
<a name="bluetooth-client-get-device-filter-model"></a><h3>bluetooth_client_get_device_filter_model ()</h3>
224
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="returnvalue">GtkTreeModel</span></a> * bluetooth_client_get_device_filter_model
225
(<em class="parameter"><code><a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="type">BluetoothClient</span></a> *client</code></em>,
226
<em class="parameter"><code><span class="type">DBusGProxy</span> *adapter</code></em>,
227
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModelFilter.html#GtkTreeModelFilterVisibleFunc"><span class="type">GtkTreeModelFilterVisibleFunc</span></a> func</code></em>,
228
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
229
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>);</pre>
231
Returns a <a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="type">GtkTreeModel</span></a> of adapters filtered using the <em class="parameter"><code>func</code></em>, <em class="parameter"><code>data</code></em> and
232
<em class="parameter"><code>destroy</code></em> arguments to pass to <a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModelFilter.html#gtk-tree-model-filter-set-visible-func"><code class="function">gtk_tree_model_filter_set_visible_func()</code></a>.
234
<div class="variablelist"><table border="0">
235
<col align="left" valign="top">
238
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
239
<td>a <a class="link" href="gnome-bluetooth-bluetooth-client.html#BluetoothClient" title="struct BluetoothClient"><span class="type">BluetoothClient</span></a> object</td>
242
<td><p><span class="term"><em class="parameter"><code>adapter</code></em> :</span></p></td>
243
<td>a <span class="type">DBusGProxy</span> representing a particular adapter, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for the default adapter.</td>
246
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
247
<td>a <a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModelFilter.html#GtkTreeModelFilterVisibleFunc"><span class="type">GtkTreeModelFilterVisibleFunc</span></a>
251
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
252
<td>user data to pass to <a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModelFilter.html#gtk-tree-model-filter-set-visible-func"><code class="function">gtk_tree_model_filter_set_visible_func()</code></a>
256
<td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
257
<td>a destroy function for <a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModelFilter.html#gtk-tree-model-filter-set-visible-func"><code class="function">gtk_tree_model_filter_set_visible_func()</code></a>
261
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
262
<td>a <a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"><span class="type">GtkTreeModel</span></a> object. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
269
<div class="refsect2">
270
<a name="bluetooth-type-to-string"></a><h3>bluetooth_type_to_string ()</h3>
271
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * bluetooth_type_to_string (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> type</code></em>);</pre>
273
Returns the string representation of the <em class="parameter"><code>type</code></em> passed. Do not free the return value.
275
<div class="variablelist"><table border="0">
276
<col align="left" valign="top">
279
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
280
<td>a <a class="link" href="gnome-bluetooth-bluetooth-enums.html#BluetoothType" title="enum BluetoothType"><span class="type">BluetoothType</span></a>
284
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
291
<div class="refsect2">
292
<a name="bluetooth-verify-address"></a><h3>bluetooth_verify_address ()</h3>
293
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> bluetooth_verify_address (<em class="parameter"><code>const <span class="type">char</span> *bdaddr</code></em>);</pre>
295
Returns whether the string is a valid Bluetooth address. This does not contact the device in any way.
297
<div class="variablelist"><table border="0">
298
<col align="left" valign="top">
301
<td><p><span class="term"><em class="parameter"><code>bdaddr</code></em> :</span></p></td>
302
<td>a string representing a Bluetooth address</td>
305
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
307
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the address is valid, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if not.</td>
313
<div class="refsect2">
314
<a name="bluetooth-uuid-to-string"></a><h3>bluetooth_uuid_to_string ()</h3>
315
<pre class="programlisting">const <span class="returnvalue">char</span> * bluetooth_uuid_to_string (<em class="parameter"><code>const <span class="type">char</span> *uuid</code></em>);</pre>
317
Returns a string representing a human-readable (but not usable for display to users) version of the <em class="parameter"><code>uuid</code></em>. Do not free the return value.
319
<div class="variablelist"><table border="0">
320
<col align="left" valign="top">
323
<td><p><span class="term"><em class="parameter"><code>uuid</code></em> :</span></p></td>
324
<td>a string representing a Bluetooth UUID</td>
327
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
337
Generated by GTK-Doc V1.15.1</div>
b'\\ No newline at end of file'