Import Upstream version 2.72.4
This commit is contained in:
commit
4ef3ff9793
2003 changed files with 1332420 additions and 0 deletions
|
|
@ -0,0 +1,78 @@
|
|||
<node>
|
||||
<!-- org.gtk.GDBus.Example.ObjectManager.Animal:
|
||||
@short_description: Example docs generated by gdbus-codegen
|
||||
@since: 2.30
|
||||
|
||||
This D-Bus interface is used to describe a simple animal.
|
||||
-->
|
||||
<interface name="org.gtk.GDBus.Example.ObjectManager.Animal">
|
||||
<!-- Mood: The mood of the animal.
|
||||
@since: 2.30
|
||||
|
||||
Known values for this property include
|
||||
<literal>Happy</literal> and <literal>Sad</literal>. Use the
|
||||
org.gtk.GDBus.Example.ObjectManager.Animal.Poke() method to
|
||||
change this property.
|
||||
|
||||
This property influences how often the animal jumps up and
|
||||
down, see the
|
||||
#org.gtk.GDBus.Example.ObjectManager.Animal::Jumped signal
|
||||
for more details.
|
||||
-->
|
||||
<property name="Mood" type="s" access="read"/>
|
||||
|
||||
<!--
|
||||
Poke:
|
||||
@make_sad: Whether to make the animal sad.
|
||||
@make_happy: Whether to make the animal happy.
|
||||
@since: 2.30
|
||||
|
||||
Method used to changing the mood of the animal. See also the
|
||||
#org.gtk.GDBus.Example.ObjectManager.Animal:Mood property.
|
||||
-->
|
||||
<method name="Poke">
|
||||
<arg direction="in" type="b" name="make_sad"/>
|
||||
<arg direction="in" type="b" name="make_happy"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
Jumped:
|
||||
@height: Height, in meters, that the animal jumped.
|
||||
@since: 2.30
|
||||
|
||||
Emitted when the animal decides to jump.
|
||||
-->
|
||||
<signal name="Jumped">
|
||||
<arg type="d" name="height"/>
|
||||
</signal>
|
||||
|
||||
<!--
|
||||
Foo:
|
||||
Property with no <quote>since</quote> annotation (should inherit the 2.30 from its containing interface).
|
||||
-->
|
||||
<property name="Foo" type="s" access="read"/>
|
||||
|
||||
<!--
|
||||
Bar:
|
||||
@since: 2.36
|
||||
Property with a later <quote>since</quote> annotation.
|
||||
-->
|
||||
<property name="Bar" type="s" access="read"/>
|
||||
</interface>
|
||||
|
||||
<!-- org.gtk.GDBus.Example.ObjectManager.Cat:
|
||||
@short_description: More example docs generated by gdbus-codegen
|
||||
|
||||
This D-Bus interface is used to describe a cat. Right now there
|
||||
are no properties, methods or signals associated with this
|
||||
interface so it is essentially a <ulink
|
||||
url="http://en.wikipedia.org/wiki/Marker_interface_pattern">Marker
|
||||
Interface</ulink>.
|
||||
|
||||
Note that D-Bus objects implementing this interface also
|
||||
implement the #org.gtk.GDBus.Example.ObjectManager.Animal
|
||||
interface.
|
||||
-->
|
||||
<interface name="org.gtk.GDBus.Example.ObjectManager.Cat">
|
||||
</interface>
|
||||
</node>
|
||||
49
gio/tests/gdbus-object-manager-example/meson.build
Normal file
49
gio/tests/gdbus-object-manager-example/meson.build
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
# FIXME: set UNINSTALLED_GLIB_{SRC|BUILD}DIR=top_{src|build}dir ?
|
||||
gdbus_example_objectmanager_xml = files('gdbus-example-objectmanager.xml')
|
||||
gdbus_example_objectmanager_generated = custom_target('objectmanager-gen',
|
||||
input : gdbus_example_objectmanager_xml,
|
||||
output : ['objectmanager-gen.h',
|
||||
'objectmanager-gen.c',
|
||||
'objectmanager-gen-org.gtk.GDBus.Example.ObjectManager.Animal.xml',
|
||||
'objectmanager-gen-org.gtk.GDBus.Example.ObjectManager.Cat.xml'],
|
||||
command : [python, gdbus_codegen,
|
||||
'--interface-prefix', 'org.gtk.GDBus.Example.ObjectManager.',
|
||||
'--c-namespace', 'Example',
|
||||
'--c-generate-object-manager',
|
||||
'--output-directory', '@OUTDIR@',
|
||||
'--generate-c-code', 'objectmanager-gen',
|
||||
'--generate-docbook', 'objectmanager-gen',
|
||||
'--symbol-decorator', '_GLIB_EXTERN',
|
||||
'--symbol-decorator-define', 'HAVE_CONFIG_H',
|
||||
'@INPUT@'])
|
||||
|
||||
gdbus_example_objectmanager_rst_gen = custom_target('objectmanager-rst-gen',
|
||||
input: gdbus_example_objectmanager_xml,
|
||||
output: [
|
||||
'objectmanager-rst-gen-org.gtk.GDBus.Example.ObjectManager.Animal.rst',
|
||||
'objectmanager-rst-gen-org.gtk.GDBus.Example.ObjectManager.Cat.rst',
|
||||
],
|
||||
command: [
|
||||
python,
|
||||
gdbus_codegen,
|
||||
'--interface-prefix', 'org.gtk.GDBus.Example.ObjectManager.',
|
||||
'--generate-rst', 'objectmanager-rst-gen',
|
||||
'--output-directory', '@OUTDIR@',
|
||||
'@INPUT@',
|
||||
],
|
||||
)
|
||||
|
||||
libgdbus_example_objectmanager = library('gdbus-example-objectmanager',
|
||||
gdbus_example_objectmanager_generated,
|
||||
c_args : test_c_args,
|
||||
dependencies : [libglib_dep, libgmodule_dep, libgobject_dep, libgio_dep],
|
||||
install : installed_tests_enabled,
|
||||
install_dir : installed_tests_execdir)
|
||||
|
||||
libgdbus_example_objectmanager_dep = declare_dependency(
|
||||
sources : [
|
||||
gdbus_example_objectmanager_generated[0],
|
||||
gdbus_example_objectmanager_rst_gen[0],
|
||||
],
|
||||
link_with : libgdbus_example_objectmanager,
|
||||
dependencies : [libgio_dep])
|
||||
Loading…
Add table
Add a link
Reference in a new issue