~ubuntu-branches/ubuntu/utopic/glib2.0/utopic

« back to all changes in this revision

Viewing changes to docs/reference/gio/html/GSrvTarget.html

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-10-02 13:08:24 UTC
  • mfrom: (1.67.13)
  • mto: This revision was merged to the branch mainline in revision 233.
  • Revision ID: package-import@ubuntu.com-20141002130824-cqp99rbif2g6wf6r
Tags: upstream-2.42.0
Import upstream version 2.42.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
</td>
66
66
</tr>
67
67
<tr>
68
 
<td class="function_type">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
 
68
<td class="function_type">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
69
69
</td>
70
70
<td class="function_name">
71
71
<a class="link" href="GSrvTarget.html#g-srv-target-get-hostname" title="g_srv_target_get_hostname ()">g_srv_target_get_hostname</a> <span class="c_punctuation">()</span>
73
73
</tr>
74
74
<tr>
75
75
<td class="function_type">
76
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a>
 
76
<a href="../glib/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a>
77
77
</td>
78
78
<td class="function_name">
79
79
<a class="link" href="GSrvTarget.html#g-srv-target-get-port" title="g_srv_target_get_port ()">g_srv_target_get_port</a> <span class="c_punctuation">()</span>
81
81
</tr>
82
82
<tr>
83
83
<td class="function_type">
84
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a>
 
84
<a href="../glib/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a>
85
85
</td>
86
86
<td class="function_name">
87
87
<a class="link" href="GSrvTarget.html#g-srv-target-get-priority" title="g_srv_target_get_priority ()">g_srv_target_get_priority</a> <span class="c_punctuation">()</span>
89
89
</tr>
90
90
<tr>
91
91
<td class="function_type">
92
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a>
 
92
<a href="../glib/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a>
93
93
</td>
94
94
<td class="function_name">
95
95
<a class="link" href="GSrvTarget.html#g-srv-target-get-weight" title="g_srv_target_get_weight ()">g_srv_target_get_weight</a> <span class="c_punctuation">()</span>
97
97
</tr>
98
98
<tr>
99
99
<td class="function_type">
100
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
 
100
<a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
101
101
</td>
102
102
<td class="function_name">
103
103
<a class="link" href="GSrvTarget.html#g-srv-target-list-sort" title="g_srv_target_list_sort ()">g_srv_target_list_sort</a> <span class="c_punctuation">()</span>
121
121
</div>
122
122
<div class="refsect1">
123
123
<a name="GSrvTarget.object-hierarchy"></a><h2>Object Hierarchy</h2>
124
 
<pre class="screen">    GBoxed
 
124
<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-Boxed-Types.html">GBoxed</a>
125
125
    <span class="lineart">╰──</span> GSrvTarget
126
126
</pre>
127
127
</div>
151
151
<div class="refsect2">
152
152
<a name="g-srv-target-new"></a><h3>g_srv_target_new ()</h3>
153
153
<pre class="programlisting"><a class="link" href="GSrvTarget.html" title="GSrvTarget"><span class="returnvalue">GSrvTarget</span></a> *
154
 
g_srv_target_new (<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> *hostname</code></em>,
155
 
                  <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> port</code></em>,
156
 
                  <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> priority</code></em>,
157
 
                  <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> weight</code></em>);</pre>
 
154
g_srv_target_new (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *hostname</code></em>,
 
155
                  <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> port</code></em>,
 
156
                  <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> priority</code></em>,
 
157
                  <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> weight</code></em>);</pre>
158
158
<p>Creates a new <a class="link" href="GSrvTarget.html" title="GSrvTarget"><span class="type">GSrvTarget</span></a> with the given parameters.</p>
159
159
<p>You should not need to use this; normally <a href="GSrvTarget.html"><span class="type">GSrvTargets</span></a> are
160
160
created by <a class="link" href="GResolver.html" title="GResolver"><span class="type">GResolver</span></a>.</p>
254
254
<hr>
255
255
<div class="refsect2">
256
256
<a name="g-srv-target-get-hostname"></a><h3>g_srv_target_get_hostname ()</h3>
257
 
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
 
257
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
258
258
g_srv_target_get_hostname (<em class="parameter"><code><a class="link" href="GSrvTarget.html" title="GSrvTarget"><span class="type">GSrvTarget</span></a> *target</code></em>);</pre>
259
259
<p>Gets <em class="parameter"><code>target</code></em>
260
260
's hostname (in ASCII form; if you are going to present
261
 
this to the user, you should use <a href="http://library.gnome.org/devel/glib/unstable/glib-Hostname-Utilities.html#g-hostname-is-ascii-encoded"><code class="function">g_hostname_is_ascii_encoded()</code></a> to
 
261
this to the user, you should use <a href="../glib/glib-Hostname-Utilities.html#g-hostname-is-ascii-encoded"><code class="function">g_hostname_is_ascii_encoded()</code></a> to
262
262
check if it contains encoded Unicode segments, and use
263
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Hostname-Utilities.html#g-hostname-to-unicode"><code class="function">g_hostname_to_unicode()</code></a> to convert it if it does.)</p>
 
263
<a href="../glib/glib-Hostname-Utilities.html#g-hostname-to-unicode"><code class="function">g_hostname_to_unicode()</code></a> to convert it if it does.)</p>
264
264
<div class="refsect3">
265
265
<a name="id-1.4.16.8.8.5.5"></a><h4>Parameters</h4>
266
266
<div class="informaltable"><table width="100%" border="0">
287
287
<hr>
288
288
<div class="refsect2">
289
289
<a name="g-srv-target-get-port"></a><h3>g_srv_target_get_port ()</h3>
290
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a>
 
290
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a>
291
291
g_srv_target_get_port (<em class="parameter"><code><a class="link" href="GSrvTarget.html" title="GSrvTarget"><span class="type">GSrvTarget</span></a> *target</code></em>);</pre>
292
292
<p>Gets <em class="parameter"><code>target</code></em>
293
293
's port</p>
317
317
<hr>
318
318
<div class="refsect2">
319
319
<a name="g-srv-target-get-priority"></a><h3>g_srv_target_get_priority ()</h3>
320
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a>
 
320
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a>
321
321
g_srv_target_get_priority (<em class="parameter"><code><a class="link" href="GSrvTarget.html" title="GSrvTarget"><span class="type">GSrvTarget</span></a> *target</code></em>);</pre>
322
322
<p>Gets <em class="parameter"><code>target</code></em>
323
323
's priority. You should not need to look at this;
349
349
<hr>
350
350
<div class="refsect2">
351
351
<a name="g-srv-target-get-weight"></a><h3>g_srv_target_get_weight ()</h3>
352
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a>
 
352
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a>
353
353
g_srv_target_get_weight (<em class="parameter"><code><a class="link" href="GSrvTarget.html" title="GSrvTarget"><span class="type">GSrvTarget</span></a> *target</code></em>);</pre>
354
354
<p>Gets <em class="parameter"><code>target</code></em>
355
355
's weight. You should not need to look at this;
381
381
<hr>
382
382
<div class="refsect2">
383
383
<a name="g-srv-target-list-sort"></a><h3>g_srv_target_list_sort ()</h3>
384
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
385
 
g_srv_target_list_sort (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *targets</code></em>);</pre>
 
384
<pre class="programlisting"><a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
 
385
g_srv_target_list_sort (<em class="parameter"><code><a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *targets</code></em>);</pre>
386
386
<p>Sorts <em class="parameter"><code>targets</code></em>
387
387
 in place according to the algorithm in RFC 2782.</p>
388
388
<div class="refsect3">
395
395
</colgroup>
396
396
<tbody><tr>
397
397
<td class="parameter_name"><p>targets</p></td>
398
 
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of <a class="link" href="GSrvTarget.html" title="GSrvTarget"><span class="type">GSrvTarget</span></a></p></td>
 
398
<td class="parameter_description"><p>a <a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of <a class="link" href="GSrvTarget.html" title="GSrvTarget"><span class="type">GSrvTarget</span></a></p></td>
399
399
<td class="parameter_annotations"> </td>
400
400
</tr></tbody>
401
401
</table></div>