Debian Codegraph @

doc/reference/html/OobsNTPServer.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>OobsNTPServer</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7 <link rel="home" href="index.html" title="Liboobs (System configuration management) Reference Manual">
8 <link rel="up" href="ch04.html" title="Date and time management">
9 <link rel="prev" href="OobsNTPConfig.html" title="OobsNTPConfig">
10 <link rel="next" href="ch05.html" title="System boot management">
11 <meta name="generator" content="GTK-Doc V1.15 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
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">
16 <tr valign="middle">
17 <td><a accesskey="p" href="OobsNTPConfig.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="ch04.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">Liboobs (System configuration management) Reference Manual</th>
21 <td><a accesskey="n" href="ch05.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22 </tr>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#OobsNTPServer.synopsis" class="shortcut">Top</a>
25  | 
26 <a href="#OobsNTPServer.description" class="shortcut">Description</a>
27  | 
28 <a href="#OobsNTPServer.object-hierarchy" class="shortcut">Object Hierarchy</a>
29  | 
30 <a href="#OobsNTPServer.properties" class="shortcut">Properties</a>
31 </td></tr>
32 </table>
33 <div class="refentry" title="OobsNTPServer">
34 <a name="OobsNTPServer"></a><div class="titlepage"></div>
35 <div class="refnamediv"><table width="100%"><tr>
36 <td valign="top">
37 <h2><span class="refentrytitle"><a name="OobsNTPServer.top_of_page"></a>OobsNTPServer</span></h2>
38 <p>OobsNTPServer — Object that represents an individual NTP server</p>
39 </td>
40 <td valign="top" align="right"></td>
41 </tr></table></div>
42 <div class="refsynopsisdiv" title="Synopsis">
43 <a name="OobsNTPServer.synopsis"></a><h2>Synopsis</h2>
44 <pre class="synopsis"> <a class="link" href="OobsNTPServer.html#OobsNTPServer-struct" title="OobsNTPServer">OobsNTPServer</a>;
45 <a class="link" href="OobsNTPServer.html#OobsNTPServerClass" title="OobsNTPServerClass">OobsNTPServerClass</a>;
46 <a class="link" href="OobsNTPServer.html" title="OobsNTPServer"><span class="returnvalue">OobsNTPServer</span></a>* <a class="link" href="OobsNTPServer.html#oobs-ntp-server-new" title="oobs_ntp_server_new ()">oobs_ntp_server_new</a> (<em class="parameter"><code>const <span class="type">gchar</span> *hostname</code></em>);
47 const <span class="returnvalue">gchar</span>* <a class="link" href="OobsNTPServer.html#oobs-ntp-server-get-hostname" title="oobs_ntp_server_get_hostname ()">oobs_ntp_server_get_hostname</a> (<em class="parameter"><code><a class="link" href="OobsNTPServer.html" title="OobsNTPServer"><span class="type">OobsNTPServer</span></a> *ntp_server</code></em>);
48 <span class="returnvalue">void</span> <a class="link" href="OobsNTPServer.html#oobs-ntp-server-set-hostname" title="oobs_ntp_server_set_hostname ()">oobs_ntp_server_set_hostname</a> (<em class="parameter"><code><a class="link" href="OobsNTPServer.html" title="OobsNTPServer"><span class="type">OobsNTPServer</span></a> *ntp_server</code></em>,
49 <em class="parameter"><code>const <span class="type">gchar</span> *hostname</code></em>);
50 </pre>
51 </div>
52 <div class="refsect1" title="Object Hierarchy">
53 <a name="OobsNTPServer.object-hierarchy"></a><h2>Object Hierarchy</h2>
54 <pre class="synopsis">
55 GObject
56 +----OobsNTPServer
57 </pre>
58 </div>
59 <div class="refsect1" title="Properties">
60 <a name="OobsNTPServer.properties"></a><h2>Properties</h2>
61 <pre class="synopsis">
62 "<a class="link" href="OobsNTPServer.html#OobsNTPServer--hostname" title='The "hostname" property'>hostname</a>" <span class="type">gchar</span>* : Read / Write
63 </pre>
64 </div>
65 <div class="refsect1" title="Description">
66 <a name="OobsNTPServer.description"></a><h2>Description</h2>
67 </div>
68 <div class="refsect1" title="Details">
69 <a name="OobsNTPServer.details"></a><h2>Details</h2>
70 <div class="refsect2" title="OobsNTPServer">
71 <a name="OobsNTPServer-struct"></a><h3>OobsNTPServer</h3>
72 <pre class="programlisting">typedef struct _OobsNTPServer OobsNTPServer;</pre>
73 <p>
74 </p>
75 </div>
76 <hr>
77 <div class="refsect2" title="OobsNTPServerClass">
78 <a name="OobsNTPServerClass"></a><h3>OobsNTPServerClass</h3>
79 <pre class="programlisting">typedef struct {
80 GObjectClass parent_class;
81
82 void (*_oobs_padding1) (void);
83 void (*_oobs_padding2) (void);
84 } OobsNTPServerClass;
85 </pre>
86 <p>
87 </p>
88 </div>
89 <hr>
90 <div class="refsect2" title="oobs_ntp_server_new ()">
91 <a name="oobs-ntp-server-new"></a><h3>oobs_ntp_server_new ()</h3>
92 <pre class="programlisting"><a class="link" href="OobsNTPServer.html" title="OobsNTPServer"><span class="returnvalue">OobsNTPServer</span></a>* oobs_ntp_server_new (<em class="parameter"><code>const <span class="type">gchar</span> *hostname</code></em>);</pre>
93 <p>
94 Returns a new <a class="link" href="OobsNTPServer.html" title="OobsNTPServer"><span class="type">OobsNTPServer</span></a> with hostname set to <span class="type">hostname</span>.
95 <span class="type">hostname</span> can specify an IP address too.
96 </p>
97 <div class="variablelist"><table border="0">
98 <col align="left" valign="top">
99 <tbody>
100 <tr>
101 <td><p><span class="term"><em class="parameter"><code>hostname</code></em> :</span></p></td>
102 <td>Hostname of the NTP server.
103 </td>
104 </tr>
105 <tr>
106 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
107 <td> A new <a class="link" href="OobsNTPServer.html" title="OobsNTPServer"><span class="type">OobsNTPServer</span></a>.
108 </td>
109 </tr>
110 </tbody>
111 </table></div>
112 </div>
113 <hr>
114 <div class="refsect2" title="oobs_ntp_server_get_hostname ()">
115 <a name="oobs-ntp-server-get-hostname"></a><h3>oobs_ntp_server_get_hostname ()</h3>
116 <pre class="programlisting">const <span class="returnvalue">gchar</span>* oobs_ntp_server_get_hostname (<em class="parameter"><code><a class="link" href="OobsNTPServer.html" title="OobsNTPServer"><span class="type">OobsNTPServer</span></a> *ntp_server</code></em>);</pre>
117 <p>
118 Returns the <a class="link" href="OobsNTPServer.html" title="OobsNTPServer"><span class="type">OobsNTPServer</span></a> hostname or IP address.
119 </p>
120 <div class="variablelist"><table border="0">
121 <col align="left" valign="top">
122 <tbody>
123 <tr>
124 <td><p><span class="term"><em class="parameter"><code>ntp_server</code></em> :</span></p></td>
125 <td>An <a class="link" href="OobsNTPServer.html" title="OobsNTPServer"><span class="type">OobsNTPServer</span></a>.
126 </td>
127 </tr>
128 <tr>
129 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
130 <td> A pointer to the NTP server hostname (or IP address) as a string.
131 This string must not be freed, modified or stored.
132 </td>
133 </tr>
134 </tbody>
135 </table></div>
136 </div>
137 <hr>
138 <div class="refsect2" title="oobs_ntp_server_set_hostname ()">
139 <a name="oobs-ntp-server-set-hostname"></a><h3>oobs_ntp_server_set_hostname ()</h3>
140 <pre class="programlisting"><span class="returnvalue">void</span> oobs_ntp_server_set_hostname (<em class="parameter"><code><a class="link" href="OobsNTPServer.html" title="OobsNTPServer"><span class="type">OobsNTPServer</span></a> *ntp_server</code></em>,
141 <em class="parameter"><code>const <span class="type">gchar</span> *hostname</code></em>);</pre>
142 <p>
143 Sets the hostname of <span class="type">ntp_server</span> to be <span class="type">hostname</span>.
144 <span class="type">hostname</span> can specify an IP address too.
145 </p>
146 <div class="variablelist"><table border="0">
147 <col align="left" valign="top">
148 <tbody>
149 <tr>
150 <td><p><span class="term"><em class="parameter"><code>ntp_server</code></em> :</span></p></td>
151 <td>An <a class="link" href="OobsNTPServer.html" title="OobsNTPServer"><span class="type">OobsNTPServer</span></a>.
152 </td>
153 </tr>
154 <tr>
155 <td><p><span class="term"><em class="parameter"><code>hostname</code></em> :</span></p></td>
156 <td>a new hostname (or IP address) for <span class="type">ntp_server</span>.
157 </td>
158 </tr>
159 </tbody>
160 </table></div>
161 </div>
162 </div>
163 <div class="refsect1" title="Property Details">
164 <a name="OobsNTPServer.property-details"></a><h2>Property Details</h2>
165 <div class="refsect2" title='The "hostname" property'>
166 <a name="OobsNTPServer--hostname"></a><h3>The <code class="literal">"hostname"</code> property</h3>
167 <pre class="programlisting"> "hostname" <span class="type">gchar</span>* : Read / Write</pre>
168 <p>Server hostname.</p>
169 <p>Default value: NULL</p>
170 </div>
171 </div>
172 <div class="refsect1" title="See Also">
173 <a name="OobsNTPServer.see-also"></a><h2>See Also</h2>
174 <a class="link" href="OobsNTPConfig.html" title="OobsNTPConfig"><span class="type">OobsNTPConfig</span></a>
175 </div>
176 </div>
177 <div class="footer">
178 <hr>
179 Generated by GTK-Doc V1.15</div>
180 </body>
181 </html>