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

« back to all changes in this revision

Viewing changes to docs/reference/gobject/html/gobject-Boxed-Types.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-07-23 10:03:37 UTC
  • mfrom: (1.2.26 upstream)
  • Revision ID: james.westby@ubuntu.com-20070723100337-s4t314uesugvc8fr
Tags: 2.13.7-1ubuntu1
* Sync with Debian and new upstream version:
  - The memory corruption warning from the slice allocator that
    occurred when threads were initialized after the slice allocator
    has been removed, as the slice allocator now works fine
    in this scenario (LP: #116870)
  - New functions g_once_init_enter() and g_once_init_leave() make
    it easier to write threadsafe one-time initialization functions 
  - Bugs fixed:
    454473 Simple XML Subset Parser terminates on invalid XML
    445813 g_module_open error, add file name
    453796 errno gets clobbered by g_filename_display_name
    341988 don't use "-c" with msgfmt in Makefile.in.in
    447048 Please produce slightly more output during long tests
    454785 GModule documentation lists same block of code twice.
    454786 GModule documentation lists same paragraph twice.
    383155 small docs quirks in gobject/closure API documentation
    65041  _get_type() functions aren't thread safe
* debian/control.in:
  - the package is maintained by the Ubuntu Desktop Team 
* debian/patches/series:
  - use 01_gettext-desktopfiles.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
<th width="100%" align="center">GObject Reference Manual</th>
47
47
<td><a accesskey="n" href="gobject-Generic-values.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
48
48
</tr>
49
 
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2783646" class="shortcut">Top</a>
 
49
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3080146" class="shortcut">Top</a>
50
50
                  &#160;|&#160;
51
 
                  <a href="#id2783883" class="shortcut">Description</a></nobr></td></tr>
 
51
                  <a href="#id3080383" class="shortcut">Description</a></nobr></td></tr>
52
52
</table>
53
53
<div class="refentry" lang="en">
54
54
<a name="gobject-Boxed-Types"></a><div class="titlepage"></div>
55
55
<div class="refnamediv"><table width="100%"><tr>
56
56
<td valign="top">
57
57
<h2>
58
 
<a name="id2783646"></a><span class="refentrytitle">GBoxed</span>
 
58
<a name="id3080146"></a><span class="refentrytitle">GBoxed</span>
59
59
</h2>
60
60
<p>GBoxed &#8212; A mechanism to wrap opaque C structures registered by the type system</p>
61
61
</td>
106
106
</pre>
107
107
</div>
108
108
<div class="refsect1" lang="en">
109
 
<a name="id2783883"></a><h2>Description</h2>
 
109
<a name="id3080383"></a><h2>Description</h2>
110
110
<p>
111
111
GBoxed is a generic wrapper mechanism for arbitrary C structures. The only
112
112
thing the type system needs to know about the structures is how to copy and
119
119
</p>
120
120
</div>
121
121
<div class="refsect1" lang="en">
122
 
<a name="id2783907"></a><h2>Details</h2>
 
122
<a name="id3080408"></a><h2>Details</h2>
123
123
<div class="refsect2" lang="en">
124
 
<a name="id2783918"></a><h3>
 
124
<a name="id3080418"></a><h3>
125
125
<a name="GBoxedCopyFunc"></a>GBoxedCopyFunc ()</h3>
126
 
<a class="indexterm" name="id2783931"></a><pre class="programlisting"><a
 
126
<a class="indexterm" name="id3080431"></a><pre class="programlisting"><a
127
127
href="../glib/glib-Basic-Types.html#gpointer"
128
128
>gpointer</a>            (*GBoxedCopyFunc)                   (<a
129
129
href="../glib/glib-Basic-Types.html#gpointer"
152
152
</div>
153
153
<hr>
154
154
<div class="refsect2" lang="en">
155
 
<a name="id2783990"></a><h3>
 
155
<a name="id3080490"></a><h3>
156
156
<a name="GBoxedFreeFunc"></a>GBoxedFreeFunc ()</h3>
157
 
<a class="indexterm" name="id2784003"></a><pre class="programlisting">void                (*GBoxedFreeFunc)                   (<a
 
157
<a class="indexterm" name="id3080503"></a><pre class="programlisting">void                (*GBoxedFreeFunc)                   (<a
158
158
href="../glib/glib-Basic-Types.html#gpointer"
159
159
>gpointer</a> boxed);</pre>
160
160
<p>
174
174
</div>
175
175
<hr>
176
176
<div class="refsect2" lang="en">
177
 
<a name="id2784051"></a><h3>
 
177
<a name="id3080552"></a><h3>
178
178
<a name="g-boxed-copy"></a>g_boxed_copy ()</h3>
179
 
<a class="indexterm" name="id2784064"></a><pre class="programlisting"><a
 
179
<a class="indexterm" name="id3080565"></a><pre class="programlisting"><a
180
180
href="../glib/glib-Basic-Types.html#gpointer"
181
181
>gpointer</a>            g_boxed_copy                        (<a href="gobject-Type-Information.html#GType">GType</a> boxed_type,
182
182
                                                         <a
210
210
</div>
211
211
<hr>
212
212
<div class="refsect2" lang="en">
213
 
<a name="id2784163"></a><h3>
 
213
<a name="id3080663"></a><h3>
214
214
<a name="g-boxed-free"></a>g_boxed_free ()</h3>
215
 
<a class="indexterm" name="id2784175"></a><pre class="programlisting">void                g_boxed_free                        (<a href="gobject-Type-Information.html#GType">GType</a> boxed_type,
 
215
<a class="indexterm" name="id3080676"></a><pre class="programlisting">void                g_boxed_free                        (<a href="gobject-Type-Information.html#GType">GType</a> boxed_type,
216
216
                                                         <a
217
217
href="../glib/glib-Basic-Types.html#gpointer"
218
218
>gpointer</a> boxed);</pre>
239
239
</div>
240
240
<hr>
241
241
<div class="refsect2" lang="en">
242
 
<a name="id2784262"></a><h3>
 
242
<a name="id3080763"></a><h3>
243
243
<a name="g-boxed-type-register-static"></a>g_boxed_type_register_static ()</h3>
244
 
<a class="indexterm" name="id2784276"></a><pre class="programlisting"><a href="gobject-Type-Information.html#GType">GType</a>               g_boxed_type_register_static        (const <a
 
244
<a class="indexterm" name="id3080776"></a><pre class="programlisting"><a href="gobject-Type-Information.html#GType">GType</a>               g_boxed_type_register_static        (const <a
245
245
href="../glib/glib-Basic-Types.html#gchar"
246
246
>gchar</a> *name,
247
247
                                                         <a href="gobject-Boxed-Types.html#GBoxedCopyFunc">GBoxedCopyFunc</a> boxed_copy,
281
281
</div>
282
282
<hr>
283
283
<div class="refsect2" lang="en">
284
 
<a name="id2784415"></a><h3>
 
284
<a name="id3080915"></a><h3>
285
285
<a name="g-pointer-type-register-static"></a>g_pointer_type_register_static ()</h3>
286
 
<a class="indexterm" name="id2784429"></a><pre class="programlisting"><a href="gobject-Type-Information.html#GType">GType</a>               g_pointer_type_register_static      (const <a
 
286
<a class="indexterm" name="id3080929"></a><pre class="programlisting"><a href="gobject-Type-Information.html#GType">GType</a>               g_pointer_type_register_static      (const <a
287
287
href="../glib/glib-Basic-Types.html#gchar"
288
288
>gchar</a> *name);</pre>
289
289
<p>
310
310
</div>
311
311
<hr>
312
312
<div class="refsect2" lang="en">
313
 
<a name="id2784521"></a><h3>
 
313
<a name="id3081021"></a><h3>
314
314
<a name="G-TYPE-HASH-TABLE:CAPS"></a>G_TYPE_HASH_TABLE</h3>
315
 
<a class="indexterm" name="id2784537"></a><pre class="programlisting">#define   G_TYPE_HASH_TABLE       (g_hash_table_get_type ())
 
315
<a class="indexterm" name="id3081037"></a><pre class="programlisting">#define   G_TYPE_HASH_TABLE       (g_hash_table_get_type ())
316
316
</pre>
317
317
<p>
318
318
The <a href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> for a boxed type holding a <a
326
326
</div>
327
327
<hr>
328
328
<div class="refsect2" lang="en">
329
 
<a name="id2784577"></a><h3>
 
329
<a name="id3081077"></a><h3>
330
330
<a name="G-TYPE-DATE:CAPS"></a>G_TYPE_DATE</h3>
331
 
<a class="indexterm" name="id2784590"></a><pre class="programlisting">#define   G_TYPE_DATE             (g_date_get_type ())
 
331
<a class="indexterm" name="id3081090"></a><pre class="programlisting">#define   G_TYPE_DATE             (g_date_get_type ())
332
332
</pre>
333
333
<p>
334
334
The <a href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> for <a
338
338
</div>
339
339
<hr>
340
340
<div class="refsect2" lang="en">
341
 
<a name="id2784622"></a><h3>
 
341
<a name="id3081122"></a><h3>
342
342
<a name="G-TYPE-GSTRING:CAPS"></a>G_TYPE_GSTRING</h3>
343
 
<a class="indexterm" name="id2784635"></a><pre class="programlisting">#define   G_TYPE_GSTRING          (g_gstring_get_type ())
 
343
<a class="indexterm" name="id3081135"></a><pre class="programlisting">#define   G_TYPE_GSTRING          (g_gstring_get_type ())
344
344
</pre>
345
345
<p>
346
346
The <a href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> for <a
350
350
</div>
351
351
<hr>
352
352
<div class="refsect2" lang="en">
353
 
<a name="id2784668"></a><h3>
 
353
<a name="id3081168"></a><h3>
354
354
<a name="G-TYPE-STRV:CAPS"></a>G_TYPE_STRV</h3>
355
 
<a class="indexterm" name="id2784683"></a><pre class="programlisting">#define   G_TYPE_STRV             (g_strv_get_type ())
 
355
<a class="indexterm" name="id3081184"></a><pre class="programlisting">#define   G_TYPE_STRV             (g_strv_get_type ())
356
356
</pre>
357
357
<p>
358
358
The <a href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> for a boxed type holding a <a
390
390
</div>
391
391
<hr>
392
392
<div class="refsect2" lang="en">
393
 
<a name="id2784776"></a><h3>
 
393
<a name="id3081277"></a><h3>
394
394
<a name="G-TYPE-REGEX:CAPS"></a>G_TYPE_REGEX</h3>
395
 
<a class="indexterm" name="id2783525"></a><pre class="programlisting">#define   G_TYPE_REGEX            (g_regex_get_type ())
 
395
<a class="indexterm" name="id3080025"></a><pre class="programlisting">#define   G_TYPE_REGEX            (g_regex_get_type ())
396
396
</pre>
397
397
<p>
398
398
The <a href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> for a boxed type holding a <a
406
406
</div>
407
407
<hr>
408
408
<div class="refsect2" lang="en">
409
 
<a name="id2783565"></a><h3>
 
409
<a name="id3080065"></a><h3>
410
410
<a name="GStrv"></a>GStrv</h3>
411
 
<a class="indexterm" name="id2783577"></a><pre class="programlisting">typedef gchar** GStrv;
 
411
<a class="indexterm" name="id3080077"></a><pre class="programlisting">typedef gchar** GStrv;
412
412
</pre>
413
413
<p>
414
414
A C representable type name for <a href="gobject-Boxed-Types.html#G-TYPE-STRV:CAPS"><span class="type">G_TYPE_STRV</span></a>.
416
416
</div>
417
417
</div>
418
418
<div class="refsect1" lang="en">
419
 
<a name="id2783602"></a><h2>See Also</h2>
 
419
<a name="id3080103"></a><h2>See Also</h2>
420
420
<p>
421
421
<a href="gobject-Standard-Parameter-and-Value-Types.html#GParamSpecBoxed"><span class="type">GParamSpecBoxed</span></a>, <a href="gobject-Standard-Parameter-and-Value-Types.html#g-param-spec-boxed"><code class="function">g_param_spec_boxed()</code></a>
422
422
</p>