~ubuntu-branches/ubuntu/quantal/libbonobo/quantal-201207170711

« back to all changes in this revision

Viewing changes to doc/api/html/libbonobo-bonobo-persist-file.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>BonoboPersistFile</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.html" title="BonoboPersist">
57
57
<a class="link" href="libbonobo-bonobo-persist-file.html#BonoboPersistFile">BonoboPersistFile</a> * <a class="link" href="libbonobo-bonobo-persist-file.html#bonobo-persist-file-new" title="bonobo_persist_file_new ()">bonobo_persist_file_new</a>             (<a class="link" href="libbonobo-bonobo-persist-file.html#BonoboPersistFileIOFn" title="BonoboPersistFileIOFn ()">BonoboPersistFileIOFn</a> load_fn,
58
58
                                                         <a class="link" href="libbonobo-bonobo-persist-file.html#BonoboPersistFileIOFn" title="BonoboPersistFileIOFn ()">BonoboPersistFileIOFn</a> save_fn,
59
59
                                                         const <a
60
 
href="../glib/glib-Basic-Types.html#gchar"
 
60
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
61
61
>gchar</a> *iid,
62
62
                                                         void *closure);
63
63
<a class="link" href="libbonobo-bonobo-persist-file.html#BonoboPersistFile">BonoboPersistFile</a> * <a class="link" href="libbonobo-bonobo-persist-file.html#bonobo-persist-file-construct" title="bonobo_persist_file_construct ()">bonobo_persist_file_construct</a>       (<a class="link" href="libbonobo-bonobo-persist-file.html#BonoboPersistFile">BonoboPersistFile</a> *pf,
64
64
                                                         <a class="link" href="libbonobo-bonobo-persist-file.html#BonoboPersistFileIOFn" title="BonoboPersistFileIOFn ()">BonoboPersistFileIOFn</a> load_fn,
65
65
                                                         <a class="link" href="libbonobo-bonobo-persist-file.html#BonoboPersistFileIOFn" title="BonoboPersistFileIOFn ()">BonoboPersistFileIOFn</a> save_fn,
66
66
                                                         const <a
67
 
href="../glib/glib-Basic-Types.html#gchar"
 
67
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
68
68
>gchar</a> *iid,
69
69
                                                         void *closure);
70
70
</pre>
73
73
<a name="libbonobo-bonobo-persist-file.object-hierarchy"></a><h2>Object Hierarchy</h2>
74
74
<pre class="synopsis">
75
75
  <a
76
 
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
 
76
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
77
77
>GObject</a>
78
78
   +----<a class="link" href="libbonobo-bonobo-object.html#BonoboObject">BonoboObject</a>
79
79
         +----<a class="link" href="libbonobo-bonobo-persist.html#BonoboPersist">BonoboPersist</a>
97
97
Either way, after all the caveats here is an example use:
98
98
  </p>
99
99
<div class="example">
100
 
<a name="id2838283"></a><p class="title"><b>Example 25. Persist file implementation</b></p>
 
100
<a name="id3078557"></a><p class="title"><b>Example 25. Persist file implementation</b></p>
101
101
<div class="example-contents"><pre class="programlisting">
102
102
static gint
103
103
load_from_file (BonoboPersistFile *pf,
126
126
and aggregate the interface to our object:
127
127
  </p>
128
128
<div class="example">
129
 
<a name="id2838307"></a><p class="title"><b>Example 26. Aggregating a new PersistFile</b></p>
 
129
<a name="id3078581"></a><p class="title"><b>Example 26. Aggregating a new PersistFile</b></p>
130
130
<div class="example-contents"><pre class="programlisting">
131
131
EogImageData *
132
132
eog_image_data_construct (EogImageData *image_data)
152
152
interface:
153
153
  </p>
154
154
<div class="example">
155
 
<a name="id2838330"></a><p class="title"><b>Example 27. Chaining to a <span class="type">PersistStream</span> implementation</b></p>
 
155
<a name="id3078604"></a><p class="title"><b>Example 27. Chaining to a <span class="type">PersistStream</span> implementation</b></p>
156
156
<div class="example-contents"><pre class="programlisting">
157
157
static gint
158
158
load_from_file (BonoboPersistFile *pf,
286
286
<pre class="programlisting"><a class="link" href="libbonobo-bonobo-persist-file.html#BonoboPersistFile">BonoboPersistFile</a> * bonobo_persist_file_new             (<a class="link" href="libbonobo-bonobo-persist-file.html#BonoboPersistFileIOFn" title="BonoboPersistFileIOFn ()">BonoboPersistFileIOFn</a> load_fn,
287
287
                                                         <a class="link" href="libbonobo-bonobo-persist-file.html#BonoboPersistFileIOFn" title="BonoboPersistFileIOFn ()">BonoboPersistFileIOFn</a> save_fn,
288
288
                                                         const <a
289
 
href="../glib/glib-Basic-Types.html#gchar"
 
289
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
290
290
>gchar</a> *iid,
291
291
                                                         void *closure);</pre>
292
292
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
337
337
                                                         <a class="link" href="libbonobo-bonobo-persist-file.html#BonoboPersistFileIOFn" title="BonoboPersistFileIOFn ()">BonoboPersistFileIOFn</a> load_fn,
338
338
                                                         <a class="link" href="libbonobo-bonobo-persist-file.html#BonoboPersistFileIOFn" title="BonoboPersistFileIOFn ()">BonoboPersistFileIOFn</a> save_fn,
339
339
                                                         const <a
340
 
href="../glib/glib-Basic-Types.html#gchar"
 
340
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
341
341
>gchar</a> *iid,
342
342
                                                         void *closure);</pre>
343
343
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">