~ubuntu-branches/ubuntu/jaunty/libbonobo/jaunty

« back to all changes in this revision

Viewing changes to doc/api/html/libbonobo-bonobo-persist-stream.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2009-03-06 18:53:16 UTC
  • mfrom: (1.1.25 upstream) (3.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090306185316-uf09r30g7cvf67xi
Tags: 2.24.1-1
* New upstream bugfix release.
* debian/control.in:
  + Build depend on GLib >= 2.14.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<head>
4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>BonoboPersistStream</title>
6
 
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.74.2">
7
7
<link rel="home" href="index.html" title="Libbonobo Reference Manual">
8
8
<link rel="up" href="persist.html" title="Persistency">
9
9
<link rel="prev" href="libbonobo-bonobo-persist-file.html" title="BonoboPersistFile">
63
63
                                                         <a class="link" href="libbonobo-bonobo-persist-stream.html#BonoboPersistStreamIOFn" title="BonoboPersistStreamIOFn ()">BonoboPersistStreamIOFn</a> save_fn,
64
64
                                                         <a class="link" href="libbonobo-bonobo-persist-stream.html#BonoboPersistStreamTypesFn" title="BonoboPersistStreamTypesFn ()">BonoboPersistStreamTypesFn</a> types_fn,
65
65
                                                         const <a
66
 
href="../glib/glib-Basic-Types.html#gchar"
 
66
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
67
67
>gchar</a> *iid,
68
68
                                                         void *closure);
69
69
<a class="link" href="libbonobo-bonobo-persist-stream.html#BonoboPersistStream">BonoboPersistStream</a> * <a class="link" href="libbonobo-bonobo-persist-stream.html#bonobo-persist-stream-construct" title="bonobo_persist_stream_construct ()">bonobo_persist_stream_construct</a>   (<a class="link" href="libbonobo-bonobo-persist-stream.html#BonoboPersistStream">BonoboPersistStream</a> *ps,
71
71
                                                         <a class="link" href="libbonobo-bonobo-persist-stream.html#BonoboPersistStreamIOFn" title="BonoboPersistStreamIOFn ()">BonoboPersistStreamIOFn</a> save_fn,
72
72
                                                         <a class="link" href="libbonobo-bonobo-persist-stream.html#BonoboPersistStreamTypesFn" title="BonoboPersistStreamTypesFn ()">BonoboPersistStreamTypesFn</a> types_fn,
73
73
                                                         const <a
74
 
href="../glib/glib-Basic-Types.html#gchar"
 
74
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
75
75
>gchar</a> *iid,
76
76
                                                         void *closure);
77
77
</pre>
80
80
<a name="libbonobo-bonobo-persist-stream.object-hierarchy"></a><h2>Object Hierarchy</h2>
81
81
<pre class="synopsis">
82
82
  <a
83
 
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
 
83
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
84
84
>GObject</a>
85
85
   +----<a class="link" href="libbonobo-bonobo-object.html#BonoboObject">BonoboObject</a>
86
86
         +----<a class="link" href="libbonobo-bonobo-persist.html#BonoboPersist">BonoboPersist</a>
104
104
<p>
105
105
  </p>
106
106
<div class="example">
107
 
<a name="id2840518"></a><p class="title"><b>Example 28. Implementing the PersistStream callbacks</b></p>
 
107
<a name="id3080792"></a><p class="title"><b>Example 28. Implementing the PersistStream callbacks</b></p>
108
108
<div class="example-contents"><pre class="programlisting">
109
109
static void
110
110
load_from_stream (BonoboPersistStream        *ps,
141
141
and aggregate the interface to our object:
142
142
  </p>
143
143
<div class="example">
144
 
<a name="id2840549"></a><p class="title"><b>Example 29. Aggregating a new PersistStream</b></p>
 
144
<a name="id3080823"></a><p class="title"><b>Example 29. Aggregating a new PersistStream</b></p>
145
145
<div class="example-contents"><pre class="programlisting">
146
146
EogImageData *
147
147
eog_image_data_construct (EogImageData *image_data)
297
297
                                                         <a class="link" href="libbonobo-bonobo-persist-stream.html#BonoboPersistStreamIOFn" title="BonoboPersistStreamIOFn ()">BonoboPersistStreamIOFn</a> save_fn,
298
298
                                                         <a class="link" href="libbonobo-bonobo-persist-stream.html#BonoboPersistStreamTypesFn" title="BonoboPersistStreamTypesFn ()">BonoboPersistStreamTypesFn</a> types_fn,
299
299
                                                         const <a
300
 
href="../glib/glib-Basic-Types.html#gchar"
 
300
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
301
301
>gchar</a> *iid,
302
302
                                                         void *closure);</pre>
303
303
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
308
308
Creates a new BonoboPersistStream object. The various operations
309
309
for the object are performed by the provided callback functions,
310
310
which are passed <em class="parameter"><code>closure</code></em> when they are invoked. If any callback is
311
 
<code class="literal">NULL</code>, the corresponding operation is performed by the class load
 
311
<a
 
312
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
 
313
><code class="literal">NULL</code></a>, the corresponding operation is performed by the class load
312
314
and save routines.</p>
313
315
<p>
314
316
</p>
356
358
                                                         <a class="link" href="libbonobo-bonobo-persist-stream.html#BonoboPersistStreamIOFn" title="BonoboPersistStreamIOFn ()">BonoboPersistStreamIOFn</a> save_fn,
357
359
                                                         <a class="link" href="libbonobo-bonobo-persist-stream.html#BonoboPersistStreamTypesFn" title="BonoboPersistStreamTypesFn ()">BonoboPersistStreamTypesFn</a> types_fn,
358
360
                                                         const <a
359
 
href="../glib/glib-Basic-Types.html#gchar"
 
361
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
360
362
>gchar</a> *iid,
361
363
                                                         void *closure);</pre>
362
364
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
367
369
Initializes the BonoboPersistStream object.  The load and save
368
370
operations for the object are performed by the provided <em class="parameter"><code>load_fn</code></em>
369
371
and <em class="parameter"><code>save_fn</code></em> callback functions, which are passed <em class="parameter"><code>closure</code></em> when
370
 
they are invoked.  If either <em class="parameter"><code>load_fn</code></em> or <em class="parameter"><code>save_fn</code></em> is <code class="literal">NULL</code>, the
 
372
they are invoked.  If either <em class="parameter"><code>load_fn</code></em> or <em class="parameter"><code>save_fn</code></em> is <a
 
373
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
 
374
><code class="literal">NULL</code></a>, the
371
375
corresponding operation is performed by the class load and save
372
376
routines.</p>
373
377
<p>