~ubuntu-branches/ubuntu/precise/glib2.0/precise-updates

« back to all changes in this revision

Viewing changes to docs/reference/gio/html/gdbus-codegen.html

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2012-01-10 16:23:46 UTC
  • mfrom: (1.59.35)
  • Revision ID: package-import@ubuntu.com-20120110162346-5s54yf7s1va1zb6i
Tags: 2.31.8-0ubuntu1
* New upstream version, drop patch which is in the new version
* debian/libglib2.0-0.symbols: new version update

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    ]</p></div>
41
41
</div>
42
42
<div class="refsect1">
43
 
<a name="id702375"></a><h2>Description</h2>
 
43
<a name="id829120"></a><h2>Description</h2>
44
44
<p>
45
45
    <span class="command"><strong>gdbus-codegen</strong></span> is used to generate code and/or
46
46
    documentation for one or more D-Bus interfaces. The tool reads
52
52
  </p>
53
53
</div>
54
54
<div class="refsect1">
55
 
<a name="id711564"></a><h2>Generating C code</h2>
 
55
<a name="id629993"></a><h2>Generating C code</h2>
56
56
<p>
57
57
    When generating C code, a
58
58
    <span class="type">GInterface</span>-derived type is generated for each D-Bus
108
108
  </p>
109
109
</div>
110
110
<div class="refsect1">
111
 
<a name="id906688"></a><h2>Generating Docbook documentation</h2>
 
111
<a name="id617636"></a><h2>Generating Docbook documentation</h2>
112
112
<p>
113
113
    Each generated Docbook XML file (see the
114
114
    <code class="option">--generate-docbook</code> option for details) is a <a class="ulink" href="http://www.docbook.org/tdg/en/html/refentry.html" target="_top"><code class="literal">RefEntry</code></a>
116
116
  </p>
117
117
</div>
118
118
<div class="refsect1">
119
 
<a name="id831107"></a><h2>Options</h2>
 
119
<a name="id1031648"></a><h2>Options</h2>
120
120
<p>
121
121
    The following options are supported:
122
122
  </p>
221
221
</table></div>
222
222
</div>
223
223
<div class="refsect1">
224
 
<a name="id892868"></a><h2>Supported D-Bus Annotations</h2>
 
224
<a name="id912437"></a><h2>Supported D-Bus Annotations</h2>
225
225
<p>
226
226
    The following D-Bus annotations are supported by
227
227
    <span class="command"><strong>gdbus-codegen</strong></span>:
444
444
  </p>
445
445
</div>
446
446
<div class="refsect1">
447
 
<a name="id879107"></a><h2>Example</h2>
 
447
<a name="id926966"></a><h2>Example</h2>
448
448
<p>
449
449
    Consider the following D-Bus Introspection XML.
450
450
  </p>
770
770
</tbody>
771
771
</table></div>
772
772
<div class="refsect2">
773
 
<a name="id607099"></a><h3>Client-side usage</h3>
 
773
<a name="id750966"></a><h3>Client-side usage</h3>
774
774
<p>
775
775
      You can use the generated proxy type with the generated
776
776
      constructors:
838
838
</div>
839
839
<hr>
840
840
<div class="refsect2">
841
 
<a name="id572760"></a><h3>Server-side usage</h3>
 
841
<a name="id1003121"></a><h3>Server-side usage</h3>
842
842
<p>
843
843
      The generated <span class="type">MyAppFrobber</span> interface is designed so
844
844
      it is easy to implement it in a <a href="./../gobject/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a>
977
977
</div>
978
978
</div>
979
979
<div class="refsect1">
980
 
<a name="id1027326"></a><h2>C Type Mapping</h2>
 
980
<a name="id747010"></a><h2>C Type Mapping</h2>
981
981
<p>
982
982
    Scalar types
983
983
    (type-strings
1047
1047
  </p>
1048
1048
</div>
1049
1049
<div class="refsect1">
1050
 
<a name="id628097"></a><h2>Author</h2>
 
1050
<a name="id611143"></a><h2>Author</h2>
1051
1051
<p>
1052
1052
    Written by David Zeuthen <code class="email">&lt;<a class="email" href="mailto:zeuthen@gmail.com">zeuthen@gmail.com</a>&gt;</code> with
1053
1053
    a lot of help from many others.
1054
1054
  </p>
1055
1055
</div>
1056
1056
<div class="refsect1">
1057
 
<a name="id813628"></a><h2>Bugs</h2>
 
1057
<a name="id600620"></a><h2>Bugs</h2>
1058
1058
<p>
1059
1059
    Please send bug reports to either the distribution bug tracker
1060
1060
    or the upstream bug tracker at
1062
1062
  </p>
1063
1063
</div>
1064
1064
<div class="refsect1">
1065
 
<a name="id577284"></a><h2>See also</h2>
 
1065
<a name="id781798"></a><h2>See also</h2>
1066
1066
<p>
1067
1067
    <span class="citerefentry"><span class="refentrytitle">gdbus</span>(1)</span>
1068
1068
  </p>