Add dbus protocol definition

This let's us drop the virtboard build dependency.
This commit is contained in:
Guido Günther
2019-07-11 14:24:27 +02:00
parent b6111b5e00
commit c1af9b2ba4
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,20 @@
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
<interface name="sm.puri.OSK0">
<method name="SetVisible">
<arg name="visible" type="b" direction="in"/>
<doc:doc><doc:description>
Switch keyboard visibility
</doc:description></doc:doc>
</method>
<method name="GetVisible">
<arg name="visible" type="b" direction="out"/>
<doc:doc><doc:description>
Get keyboard visibility
</doc:description></doc:doc>
</method>
<property name="Visible" type="b" access="read">
</property>
</interface>
</node>

View File

@ -1,7 +1,7 @@
gnome = import('gnome')
dbus_src = gnome.gdbus_codegen(
'sm.puri.OSK0',
join_paths(dbusdir, 'sm.puri.OSK0.xml')
join_paths(meson.source_root() / 'data' / 'dbus', 'sm.puri.OSK0.xml')
)
squeekboard_resources = gnome.compile_resources(