docs: Fix gdbus-codegen example XML

Without the surrounding <node> tags, gdbus-codegen does not generate any
implementation for the interface described in the introspection XML.

https://bugzilla.gnome.org/show_bug.cgi?id=669544
This commit is contained in:
David King 2012-02-07 09:02:51 +00:00 committed by David King
parent daf78764e5
commit db38923c94

View File

@ -420,20 +420,22 @@ gdbus-codegen --c-namespace MyApp \
Consider the following D-Bus Introspection XML. Consider the following D-Bus Introspection XML.
</para> </para>
<informalexample><programlisting><![CDATA[ <informalexample><programlisting><![CDATA[
<interface name="net.Corp.MyApp.Frobber"> <node>
<method name="HelloWorld"> <interface name="net.Corp.MyApp.Frobber">
<arg name="greeting" direction="in" type="s"/> <method name="HelloWorld">
<arg name="response" direction="out" type="s"/> <arg name="greeting" direction="in" type="s"/>
</method> <arg name="response" direction="out" type="s"/>
</method>
<signal name="Notification"> <signal name="Notification">
<arg name="icon_blob" type="ay"/> <arg name="icon_blob" type="ay"/>
<arg name="height" type="i"/> <arg name="height" type="i"/>
<arg name="messages" type="as"/> <arg name="messages" type="as"/>
</signal> </signal>
<property name="Verbose" type="b" access="readwrite"/> <property name="Verbose" type="b" access="readwrite"/>
</interface> </interface>
</node>
]]></programlisting> ]]></programlisting>
</informalexample> </informalexample>
<para> <para>