/usr/share/gtk-doc/html/libepc-1.0/libepc-1.0-service-monitor.html is in libepc-doc 0.4.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>EpcServiceMonitor</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Easy Publish and Consume Reference Manual">
<link rel="up" href="dns-sd-support.html" title="DNS-SD Support">
<link rel="prev" href="EpcServiceInfo.html" title="EpcServiceInfo">
<link rel="next" href="libepc-1.0-EpcServiceType.html" title="EpcServiceType">
<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="EpcServiceInfo.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="dns-sd-support.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Easy Publish and Consume Reference Manual</th>
<td><a accesskey="n" href="libepc-1.0-EpcServiceType.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libepc-1.0-service-monitor.synopsis" class="shortcut">Top</a>
|
<a href="#libepc-1.0-service-monitor.description" class="shortcut">Description</a>
|
<a href="#libepc-1.0-service-monitor.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#libepc-1.0-service-monitor.properties" class="shortcut">Properties</a>
|
<a href="#libepc-1.0-service-monitor.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry">
<a name="libepc-1.0-service-monitor"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libepc-1.0-service-monitor.top_of_page"></a>EpcServiceMonitor</span></h2>
<p>EpcServiceMonitor — find DNS-SD services</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="libepc-1.0-service-monitor.stability-level"></a><h2>Stability Level</h2>
Unstable, unless otherwise indicated
</div>
<div class="refsynopsisdiv">
<a name="libepc-1.0-service-monitor.synopsis"></a><h2>Synopsis</h2>
<a name="EpcServiceMonitor"></a><pre class="synopsis">
#include <libepc/service-monitor.h>
struct <a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitorClass" title="struct EpcServiceMonitorClass">EpcServiceMonitorClass</a>;
<a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitorPrivate" title="EpcServiceMonitorPrivate">EpcServiceMonitorPrivate</a>;
struct <a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor-struct" title="struct EpcServiceMonitor">EpcServiceMonitor</a>;
<a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="returnvalue">EpcServiceMonitor</span></a> * <a class="link" href="libepc-1.0-service-monitor.html#epc-service-monitor-new" title="epc_service_monitor_new ()">epc_service_monitor_new</a> (<em class="parameter"><code>const <span class="type">gchar</span> *application</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *domain</code></em>,
<em class="parameter"><code><a class="link" href="EpcProtocol.html" title="EpcProtocol"><span class="type">EpcProtocol</span></a> first_protocol</code></em>,
<em class="parameter"><code>...</code></em>);
<a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="returnvalue">EpcServiceMonitor</span></a> * <a class="link" href="libepc-1.0-service-monitor.html#epc-service-monitor-new-for-types" title="epc_service_monitor_new_for_types ()">epc_service_monitor_new_for_types</a> (<em class="parameter"><code>const <span class="type">gchar</span> *domain</code></em>,
<em class="parameter"><code>...</code></em>);
<a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="returnvalue">EpcServiceMonitor</span></a> * <a class="link" href="libepc-1.0-service-monitor.html#epc-service-monitor-new-for-types-strv" title="epc_service_monitor_new_for_types_strv ()">epc_service_monitor_new_for_types_strv</a>
(<em class="parameter"><code>const <span class="type">gchar</span> *domain</code></em>,
<em class="parameter"><code><span class="type">gchar</span> **types</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libepc-1.0-service-monitor.html#epc-service-monitor-set-skip-our-own" title="epc_service_monitor_set_skip_our_own ()">epc_service_monitor_set_skip_our_own</a>
(<em class="parameter"><code><a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="type">EpcServiceMonitor</span></a> *monitor</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="libepc-1.0-service-monitor.html#epc-service-monitor-get-skip-our-own" title="epc_service_monitor_get_skip_our_own ()">epc_service_monitor_get_skip_our_own</a>
(<em class="parameter"><code><a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="type">EpcServiceMonitor</span></a> *monitor</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libepc-1.0-service-monitor.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GObject
+----EpcServiceMonitor
</pre>
</div>
<div class="refsect1">
<a name="libepc-1.0-service-monitor.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor--application" title='The "application" property'>application</a>" <span class="type">gchar</span>* : Read / Write / Construct Only
"<a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor--domain" title='The "domain" property'>domain</a>" <span class="type">gchar</span>* : Read / Write / Construct Only
"<a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor--service-types" title='The "service-types" property'>service-types</a>" <span class="type">GStrv</span> : Read / Write / Construct Only
"<a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor--skip-our-own" title='The "skip-our-own" property'>skip-our-own</a>" <span class="type">gboolean</span> : Read / Write / Construct
</pre>
</div>
<div class="refsect1">
<a name="libepc-1.0-service-monitor.signals"></a><h2>Signals</h2>
<pre class="synopsis">
"<a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor-scanning-done" title='The "scanning-done" signal'>scanning-done</a>" : <code class="literal">Run First</code>
"<a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor-service-found" title='The "service-found" signal'>service-found</a>" : <code class="literal">Run First</code>
"<a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor-service-removed" title='The "service-removed" signal'>service-removed</a>" : <code class="literal">Run First</code>
</pre>
</div>
<div class="refsect1">
<a name="libepc-1.0-service-monitor.description"></a><h2>Description</h2>
<p>
The <a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="type">EpcServiceMonitor</span></a> object provides an easy method for finding DNS-SD
services. It hides all the boring state and callback handling Avahi
requires, and just exposes three simple GObject signals:
<span class="type">"service-found"</span>, <span class="type">"service-removed"</span>
and <span class="type">"scanning-done"</span>.
</p>
<p>
</p>
<div class="example">
<a name="find-services"></a><p class="title"><b>Example 8. Find an Easy-Publish service</b></p>
<div class="example-contents">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1
2
3
4
5
6</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="normal">monitor </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="libepc-1.0-service-monitor.html#epc-service-monitor-new">epc_service_monitor_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"glom"</span><span class="symbol">,</span><span class="normal"> <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="EpcProtocol.html#EPC-PROTOCOL-UNKNOWN:CAPS">EPC_PROTOCOL_UNKNOWN</a></span><span class="symbol">);</span>
<span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">monitor</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"service-found"</span><span class="symbol">,</span><span class="normal"> service_found_cb</span><span class="symbol">,</span><span class="normal"> self</span><span class="symbol">);</span>
<span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">monitor</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"service-removed"</span><span class="symbol">,</span><span class="normal"> service_removed_cb</span><span class="symbol">,</span><span class="normal"> self</span><span class="symbol">);</span>
<span class="function">g_main_loop_run</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">loop</span><span class="symbol">);</span></pre></td>
</tr>
</tbody>
</table>
</div>
</div>
<p><br class="example-break">
</p>
</div>
<div class="refsect1">
<a name="libepc-1.0-service-monitor.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="EpcServiceMonitorClass"></a><h3>struct EpcServiceMonitorClass</h3>
<pre class="programlisting">struct EpcServiceMonitorClass {
void (*service_found) (EpcServiceMonitor *monitor,
const gchar *name,
EpcServiceInfo *info);
void (*service_removed) (EpcServiceMonitor *monitor,
const gchar *name,
const gchar *type);
void (*scanning_done) (EpcServiceMonitor *monitor,
const gchar *type);
};
</pre>
<p>
Virtual methods of the <a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="type">EpcServiceMonitor</span></a> class.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="EpcServiceMonitorClass.service-found"></a>service_found</code></em> ()</span></p></td>
<td>virtual method of the <a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor-service-found" title='The "service-found" signal'><span class="type">"service-found"</span></a> signal</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="EpcServiceMonitorClass.service-removed"></a>service_removed</code></em> ()</span></p></td>
<td>virtual method of the <a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor-service-removed" title='The "service-removed" signal'><span class="type">"service-removed"</span></a> signal</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="EpcServiceMonitorClass.scanning-done"></a>scanning_done</code></em> ()</span></p></td>
<td>virtual method of the <a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor-scanning-done" title='The "scanning-done" signal'><span class="type">"scanning-done"</span></a> signal</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="EpcServiceMonitorPrivate"></a><h3>EpcServiceMonitorPrivate</h3>
<pre class="programlisting">typedef struct _EpcServiceMonitorPrivate EpcServiceMonitorPrivate;</pre>
<p>
Private fields of the <a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="type">EpcServiceMonitor</span></a> class.
</p>
</div>
<hr>
<div class="refsect2">
<a name="EpcServiceMonitor-struct"></a><h3>struct EpcServiceMonitor</h3>
<pre class="programlisting">struct EpcServiceMonitor;</pre>
<p>
Public fields of the <a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="type">EpcServiceMonitor</span></a> class.
</p>
</div>
<hr>
<div class="refsect2">
<a name="epc-service-monitor-new"></a><h3>epc_service_monitor_new ()</h3>
<pre class="programlisting"><a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="returnvalue">EpcServiceMonitor</span></a> * epc_service_monitor_new (<em class="parameter"><code>const <span class="type">gchar</span> *application</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *domain</code></em>,
<em class="parameter"><code><a class="link" href="EpcProtocol.html" title="EpcProtocol"><span class="type">EpcProtocol</span></a> first_protocol</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>
Creates a new service monitor watching the specified <em class="parameter"><code>domain</code></em> for a
certain <em class="parameter"><code>application</code></em> using one of the protocols listed. Passing <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> for
<em class="parameter"><code>application</code></em> lists all libepc based applications. Passing <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> for <em class="parameter"><code>domain</code></em>
monitors the local network. Passing an empty protocol list requests
monitoring of all service-types supported by the library (see
<a class="link" href="libepc-1.0-EpcServiceType.html#epc-service-type-list-supported" title="epc_service_type_list_supported ()"><code class="function">epc_service_type_list_supported()</code></a>).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
<td>name of the application to monitor, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
<td>the DNS domain to monitor, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>first_protocol</code></em> :</span></p></td>
<td>the first protocol to monitor</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td>a list of additional protocols, terminated by <a class="link" href="EpcProtocol.html#EPC-PROTOCOL-UNKNOWN:CAPS"><span class="type">EPC_PROTOCOL_UNKNOWN</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The newly created service monitor.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-service-monitor-new-for-types"></a><h3>epc_service_monitor_new_for_types ()</h3>
<pre class="programlisting"><a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="returnvalue">EpcServiceMonitor</span></a> * epc_service_monitor_new_for_types (<em class="parameter"><code>const <span class="type">gchar</span> *domain</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>
Creates a new service monitor watching the specified <em class="parameter"><code>domain</code></em> for the
service-types listed. Passing <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> for <em class="parameter"><code>domain</code></em> monitors the local network.
Passing an empty service list requests monitoring of all service-types
supported by the library (see <a class="link" href="libepc-1.0-EpcServiceType.html#epc-service-type-list-supported" title="epc_service_type_list_supported ()"><code class="function">epc_service_type_list_supported()</code></a>).
</p>
<p>
See also: <a class="link" href="libepc-1.0-service-monitor.html#epc-service-monitor-new-for-types-strv" title="epc_service_monitor_new_for_types_strv ()"><code class="function">epc_service_monitor_new_for_types_strv()</code></a>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
<td>the DNS domain to monitor, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td>a <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> terminated list of service types to monitor</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The newly created service monitor.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.3.1</p>
</div>
<hr>
<div class="refsect2">
<a name="epc-service-monitor-new-for-types-strv"></a><h3>epc_service_monitor_new_for_types_strv ()</h3>
<pre class="programlisting"><a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="returnvalue">EpcServiceMonitor</span></a> * epc_service_monitor_new_for_types_strv
(<em class="parameter"><code>const <span class="type">gchar</span> *domain</code></em>,
<em class="parameter"><code><span class="type">gchar</span> **types</code></em>);</pre>
<p>
Creates a new service monitor watching the specified <em class="parameter"><code>domain</code></em> for the
service-types listed. Passing <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> for <em class="parameter"><code>domain</code></em> monitors the local network.
Passing an empty service list requests monitoring of all service-types
supported by the library (see <a class="link" href="libepc-1.0-EpcServiceType.html#epc-service-type-list-supported" title="epc_service_type_list_supported ()"><code class="function">epc_service_type_list_supported()</code></a>).
</p>
<p>
See also: <a class="link" href="libepc-1.0-service-monitor.html#epc-service-monitor-new-for-types" title="epc_service_monitor_new_for_types ()"><code class="function">epc_service_monitor_new_for_types()</code></a>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
<td>the DNS domain to monitor, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>types</code></em> :</span></p></td>
<td>a <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> terminated list of service types to monitor</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The newly created service monitor.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-service-monitor-set-skip-our-own"></a><h3>epc_service_monitor_set_skip_our_own ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> epc_service_monitor_set_skip_our_own
(<em class="parameter"><code><a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="type">EpcServiceMonitor</span></a> *monitor</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);</pre>
<p>
Updates the <span class="type">"skip-our-own"</span> property.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>monitor</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="type">EpcServiceMonitor</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
<td>the new setting</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-service-monitor-get-skip-our-own"></a><h3>epc_service_monitor_get_skip_our_own ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> epc_service_monitor_get_skip_our_own
(<em class="parameter"><code><a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="type">EpcServiceMonitor</span></a> *monitor</code></em>);</pre>
<p>
Queries the current value of the <span class="type">"skip-our-own"</span> property.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>monitor</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="type">EpcServiceMonitor</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The current value of the <span class="type">"skip-our-own"</span> property</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="libepc-1.0-service-monitor.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="EpcServiceMonitor--application"></a><h3>The <code class="literal">"application"</code> property</h3>
<pre class="programlisting"> "application" <span class="type">gchar</span>* : Read / Write / Construct Only</pre>
<p>The application to monitor.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="EpcServiceMonitor--domain"></a><h3>The <code class="literal">"domain"</code> property</h3>
<pre class="programlisting"> "domain" <span class="type">gchar</span>* : Read / Write / Construct Only</pre>
<p>The DNS domain to monitor.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="EpcServiceMonitor--service-types"></a><h3>The <code class="literal">"service-types"</code> property</h3>
<pre class="programlisting"> "service-types" <span class="type">GStrv</span> : Read / Write / Construct Only</pre>
<p>The DNS-SD services types to watch.</p>
</div>
<hr>
<div class="refsect2">
<a name="EpcServiceMonitor--skip-our-own"></a><h3>The <code class="literal">"skip-our-own"</code> property</h3>
<pre class="programlisting"> "skip-our-own" <span class="type">gboolean</span> : Read / Write / Construct</pre>
<p>Skip services of the current application.</p>
<p>Default value: FALSE</p>
</div>
</div>
<div class="refsect1">
<a name="libepc-1.0-service-monitor.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="EpcServiceMonitor-scanning-done"></a><h3>The <code class="literal">"scanning-done"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="type">EpcServiceMonitor</span></a> *monitor,
<span class="type">gchar</span> *type,
<span class="type">gpointer</span> user_data) : <code class="literal">Run First</code></pre>
<p>
This signal is emitted when active scanning as finished and most certainly
no new services will be detected for some time. Can be used for instance
to hide an progress indicator.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>monitor</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="type">EpcServiceMonitor</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>the service type watched</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="EpcServiceMonitor-service-found"></a><h3>The <code class="literal">"service-found"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="type">EpcServiceMonitor</span></a> *monitor,
<span class="type">gchar</span> *name,
<a class="link" href="EpcServiceInfo.html" title="EpcServiceInfo"><span class="type">EpcServiceInfo</span></a> *info,
<span class="type">gpointer</span> user_data) : <code class="literal">Run First</code></pre>
<p>
This signal is emitted when a new service was found.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>monitor</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="type">EpcServiceMonitor</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>name of the service removed</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
<td>a description of the service found</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="EpcServiceMonitor-service-removed"></a><h3>The <code class="literal">"service-removed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="type">EpcServiceMonitor</span></a> *monitor,
<span class="type">gchar</span> *name,
<span class="type">gchar</span> *type,
<span class="type">gpointer</span> user_data) : <code class="literal">Run First</code></pre>
<p>
This signal is emitted when a previously known service disappears.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>monitor</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-service-monitor.html#EpcServiceMonitor"><span class="type">EpcServiceMonitor</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>name of the service removed</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>the service type watched</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18.1</div>
</body>
</html>
|