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 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>OobsList</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="Liboobs (System configuration management) Reference Manual">
<link rel="up" href="ch02.html" title="Liboobs data management">
<link rel="prev" href="OobsObject.html" title="OobsObject">
<link rel="next" href="ch03.html" title="Users and groups management">
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="ch01.html" title="Session management">
<link rel="chapter" href="ch02.html" title="Liboobs data management">
<link rel="chapter" href="ch03.html" title="Users and groups management">
<link rel="chapter" href="ch04.html" title="Shared folders management">
<link rel="chapter" href="ch05.html" title="Date and time management">
<link rel="chapter" href="ch06.html" title="System boot management">
<link rel="chapter" href="ch07.html" title="Network interfaces management">
<link rel="chapter" href="ch08.html" title="Hosts resolution management">
</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="OobsObject.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch02.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">Liboobs (System configuration management) Reference Manual</th>
<td><a accesskey="n" href="ch03.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#OobsList.synopsis" class="shortcut">Top</a>
|
<a href="#OobsList.description" class="shortcut">Description</a>
|
<a href="#OobsList.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#OobsList.properties" class="shortcut">Properties</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="OobsList"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="OobsList.top_of_page"></a>OobsList</span></h2>
<p>OobsList — Object to deal with several configuration elements.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="OobsList.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#define <a class="link" href="OobsList.html#OOBS-TYPE-LIST-ITER:CAPS" title="OOBS_TYPE_LIST_ITER">OOBS_TYPE_LIST_ITER</a>
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a>;
<a class="link" href="OobsList.html#OobsList-struct" title="OobsList">OobsList</a>;
gboolean <a class="link" href="OobsList.html#oobs-list-get-iter-first" title="oobs_list_get_iter_first ()">oobs_list_get_iter_first</a> (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);
gboolean <a class="link" href="OobsList.html#oobs-list-iter-next" title="oobs_list_iter_next ()">oobs_list_iter_next</a> (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);
gboolean <a class="link" href="OobsList.html#oobs-list-remove" title="oobs_list_remove ()">oobs_list_remove</a> (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);
void <a class="link" href="OobsList.html#oobs-list-append" title="oobs_list_append ()">oobs_list_append</a> (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);
void <a class="link" href="OobsList.html#oobs-list-prepend" title="oobs_list_prepend ()">oobs_list_prepend</a> (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);
void <a class="link" href="OobsList.html#oobs-list-insert-after" title="oobs_list_insert_after ()">oobs_list_insert_after</a> (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *anchor,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);
void <a class="link" href="OobsList.html#oobs-list-insert-before" title="oobs_list_insert_before ()">oobs_list_insert_before</a> (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *anchor,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);
GObject* <a class="link" href="OobsList.html#oobs-list-get" title="oobs_list_get ()">oobs_list_get</a> (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);
void <a class="link" href="OobsList.html#oobs-list-set" title="oobs_list_set ()">oobs_list_set</a> (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter,
gpointer data);
void <a class="link" href="OobsList.html#oobs-list-clear" title="oobs_list_clear ()">oobs_list_clear</a> (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list);
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a>* <a class="link" href="OobsList.html#oobs-list-iter-copy" title="oobs_list_iter_copy ()">oobs_list_iter_copy</a> (<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);
void <a class="link" href="OobsList.html#oobs-list-iter-free" title="oobs_list_iter_free ()">oobs_list_iter_free</a> (<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);
gint <a class="link" href="OobsList.html#oobs-list-get-n-items" title="oobs_list_get_n_items ()">oobs_list_get_n_items</a> (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="OobsList.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GObject
+----OobsList
</pre>
</div>
<div class="refsect1" lang="en">
<a name="OobsList.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="OobsList.html#OobsList--contained-type" title='The "contained-type" property'>contained-type</a>" gpointer : Write / Construct Only
</pre>
</div>
<div class="refsect1" lang="en">
<a name="OobsList.description"></a><h2>Description</h2>
<p>
OobsList is a list object designed to store configuration elements. it provides "security" mechanisms to avoid elements corruption when i.e. underlying configuration is updated. OobsLists are created only by configuration objects, API users are only allowed to modify it.
</p>
<p>
Some configuration objects (for example, <a class="link" href="OobsServicesConfig.html" title="OobsServicesConfig"><span class="type">OobsServicesConfig</span></a>) will provide a locked down list, users will be able to modify the contained elements, but not to add/delete elements, nor to modify the list element at that position with <a class="link" href="OobsList.html#oobs-list-set" title="oobs_list_set ()"><code class="function">oobs_list_set()</code></a>.
</p>
</div>
<div class="refsect1" lang="en">
<a name="OobsList.details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="OOBS-TYPE-LIST-ITER:CAPS"></a><h3>OOBS_TYPE_LIST_ITER</h3>
<pre class="programlisting">#define OOBS_TYPE_LIST_ITER (oobs_list_iter_get_type ())
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="OobsListIter"></a><h3>OobsListIter</h3>
<pre class="programlisting">typedef struct {
guint stamp;
gpointer data;
} OobsListIter;
</pre>
<p>
OobsListIter is the element used to iterate through lists and to get/modify elements in it. Fields are not supposed to be modified by the user.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term">guint <em class="structfield"><code>stamp</code></em>;</span></p></td>
<td>stamp to catch invalid iterators.
</td>
</tr>
<tr>
<td><p><span class="term">gpointer <em class="structfield"><code>data</code></em>;</span></p></td>
<td>iterator data.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="OobsList-struct"></a><h3>OobsList</h3>
<pre class="programlisting">typedef struct _OobsList OobsList;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="oobs-list-get-iter-first"></a><h3>oobs_list_get_iter_first ()</h3>
<pre class="programlisting">gboolean oobs_list_get_iter_first (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);</pre>
<p>
Initializes <em class="parameter"><code>iter</code></em> the iterator pointing to the
first element in <em class="parameter"><code>list</code></em>. if <em class="parameter"><code>list</code></em> is empty, then FALSE
is returned, and <em class="parameter"><code>iter</code></em> is not initialized.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> An <a class="link" href="OobsList.html" title="OobsList"><span class="type">OobsList</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td> An uninitialized <a class="link" href="OobsList.html#OobsListIter" title="OobsListIter"><span class="type">OobsListIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <span class="type">TRUE</span> if <em class="parameter"><code>iter</code></em> was set
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="oobs-list-iter-next"></a><h3>oobs_list_iter_next ()</h3>
<pre class="programlisting">gboolean oobs_list_iter_next (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);</pre>
<p>
Sets <em class="parameter"><code>iter</code></em> to point to the element following it. If there's
no next <em class="parameter"><code>iter</code></em>, of if <em class="parameter"><code>iter</code></em> was invalid for <em class="parameter"><code>list</code></em>, <span class="type">FALSE</span> is
returned, and <em class="parameter"><code>iter</code></em> is set to invalid.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> An <a class="link" href="OobsList.html" title="OobsList"><span class="type">OobsList</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td> A valid <a class="link" href="OobsList.html#OobsListIter" title="OobsListIter"><span class="type">OobsListIter</span></a> pointing to an element in <em class="parameter"><code>list</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <span class="type">TRUE</span> if iter has been correctly changed to the next element
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="oobs-list-remove"></a><h3>oobs_list_remove ()</h3>
<pre class="programlisting">gboolean oobs_list_remove (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);</pre>
<p>
Removes an element pointed by <em class="parameter"><code>iter</code></em> from <em class="parameter"><code>list</code></em>. This function will not
be effective if <em class="parameter"><code>list</code></em> is locked, or if <em class="parameter"><code>iter</code></em> doesn't point to an element
contained in <em class="parameter"><code>list</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> An <a class="link" href="OobsList.html" title="OobsList"><span class="type">OobsList</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td> A valid <a class="link" href="OobsList.html#OobsListIter" title="OobsListIter"><span class="type">OobsListIter</span></a> pointing to an element in <em class="parameter"><code>list</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <span class="type">TRUE</span> if the element was correctly removed
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="oobs-list-append"></a><h3>oobs_list_append ()</h3>
<pre class="programlisting">void oobs_list_append (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);</pre>
<p>
Appends a new element to <em class="parameter"><code>list</code></em>. <em class="parameter"><code>iter</code></em> will be changed
to point to this element, to fill in values, you need to call
<a class="link" href="OobsList.html#oobs-list-set" title="oobs_list_set ()"><code class="function">oobs_list_set()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> An <a class="link" href="OobsList.html" title="OobsList"><span class="type">OobsList</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td> An unset <a class="link" href="OobsList.html#OobsListIter" title="OobsListIter"><span class="type">OobsListIter</span></a> to set to the new element
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="oobs-list-prepend"></a><h3>oobs_list_prepend ()</h3>
<pre class="programlisting">void oobs_list_prepend (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);</pre>
<p>
Prepends a new element to <em class="parameter"><code>list</code></em>. <em class="parameter"><code>iter</code></em> will be changed
to point to this element, to fill in values, you need to call
<a class="link" href="OobsList.html#oobs-list-set" title="oobs_list_set ()"><code class="function">oobs_list_set()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> An <a class="link" href="OobsList.html" title="OobsList"><span class="type">OobsList</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td> An unset <a class="link" href="OobsList.html#OobsListIter" title="OobsListIter"><span class="type">OobsListIter</span></a> to set to the new element
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="oobs-list-insert-after"></a><h3>oobs_list_insert_after ()</h3>
<pre class="programlisting">void oobs_list_insert_after (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *anchor,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);</pre>
<p>
Inserts a new element after <em class="parameter"><code>anchor</code></em>. <em class="parameter"><code>iter</code></em> will be changed
to point to this element, to fill in values, you need to call
<a class="link" href="OobsList.html#oobs-list-set" title="oobs_list_set ()"><code class="function">oobs_list_set()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> An <a class="link" href="OobsList.html" title="OobsList"><span class="type">OobsList</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>anchor</code></em> :</span></p></td>
<td> A valid <a class="link" href="OobsList.html#OobsListIter" title="OobsListIter"><span class="type">OobsListIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td> An unset <a class="link" href="OobsList.html#OobsListIter" title="OobsListIter"><span class="type">OobsListIter</span></a> to set to the new element
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="oobs-list-insert-before"></a><h3>oobs_list_insert_before ()</h3>
<pre class="programlisting">void oobs_list_insert_before (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *anchor,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);</pre>
<p>
Inserts a new element before <em class="parameter"><code>anchor</code></em>. <em class="parameter"><code>iter</code></em> will be changed
to point to this element, to fill in values, you need to call
<a class="link" href="OobsList.html#oobs-list-set" title="oobs_list_set ()"><code class="function">oobs_list_set()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> An <a class="link" href="OobsList.html" title="OobsList"><span class="type">OobsList</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>anchor</code></em> :</span></p></td>
<td> A valid <a class="link" href="OobsList.html#OobsListIter" title="OobsListIter"><span class="type">OobsListIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td> An unset <a class="link" href="OobsList.html#OobsListIter" title="OobsListIter"><span class="type">OobsListIter</span></a> to set to the new element
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="oobs-list-get"></a><h3>oobs_list_get ()</h3>
<pre class="programlisting">GObject* oobs_list_get (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);</pre>
<p>
Retrieves a reference to the element
referenced by <a class="link" href="OobsList.html#OobsListIter" title="OobsListIter"><span class="type">OobsListIter</span></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> an <a class="link" href="OobsList.html" title="OobsList"><span class="type">OobsList</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td> a valid <a class="link" href="OobsList.html#OobsListIter" title="OobsListIter"><span class="type">OobsListIter</span></a> for the element being get
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the element referenced by <em class="parameter"><code>iter</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="oobs-list-set"></a><h3>oobs_list_set ()</h3>
<pre class="programlisting">void oobs_list_set (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list,
<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter,
gpointer data);</pre>
<p>
Sets the data for the element referenced by <a class="link" href="OobsList.html#OobsListIter" title="OobsListIter"><span class="type">OobsListIter</span></a>.
This function will not be effective if the list is locked, or
if <em class="parameter"><code>data</code></em> GType is different to the data contained in <a class="link" href="OobsList.html" title="OobsList"><span class="type">OobsList</span></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> an <a class="link" href="OobsList.html" title="OobsList"><span class="type">OobsList</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td> a valid <a class="link" href="OobsList.html#OobsListIter" title="OobsListIter"><span class="type">OobsListIter</span></a> for the element being set
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td> a pointer to the data being set
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="oobs-list-clear"></a><h3>oobs_list_clear ()</h3>
<pre class="programlisting">void oobs_list_clear (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list);</pre>
<p>
Removes all contents from an <a class="link" href="OobsList.html" title="OobsList"><span class="type">OobsList</span></a>. This function will
not be effective if the list is locked.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> an <a class="link" href="OobsList.html" title="OobsList"><span class="type">OobsList</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="oobs-list-iter-copy"></a><h3>oobs_list_iter_copy ()</h3>
<pre class="programlisting"><a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a>* oobs_list_iter_copy (<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);</pre>
<p>
Returns a newly allocated copy of the given iterator. This function is not
intended for use in applications, because you can just copy the structs by
value (OobsListIter new_iter = iter;). You must free this iter with
<a class="link" href="OobsList.html#oobs-list-iter-free" title="oobs_list_iter_free ()"><code class="function">oobs_list_iter_free()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td> An <a class="link" href="OobsList.html#OobsListIter" title="OobsListIter"><span class="type">OobsListIter</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A newly allocated iterator.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="oobs-list-iter-free"></a><h3>oobs_list_iter_free ()</h3>
<pre class="programlisting">void oobs_list_iter_free (<a class="link" href="OobsList.html#OobsListIter" title="OobsListIter">OobsListIter</a> *iter);</pre>
<p>
Frees an iterator that has been allocated in the heap.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td> An <a class="link" href="OobsList.html#OobsListIter" title="OobsListIter"><span class="type">OobsListIter</span></a>.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="oobs-list-get-n-items"></a><h3>oobs_list_get_n_items ()</h3>
<pre class="programlisting">gint oobs_list_get_n_items (<a class="link" href="OobsList.html" title="OobsList">OobsList</a> *list);</pre>
<p>
Returns the number of elements that the list contains.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> An <a class="link" href="OobsList.html" title="OobsList"><span class="type">OobsList</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the number of elements.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="OobsList.property-details"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="OobsList--contained-type"></a><h3>The <code class="literal">"contained-type"</code> property</h3>
<pre class="programlisting"> "contained-type" gpointer : Write / Construct Only</pre>
<p>GType contained in the list.</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.10</div>
</body>
</html>
|