parent
9e1700cbfe
commit
9741f75277
5 changed files with 47 additions and 0 deletions
@ -0,0 +1,10 @@ |
||||
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" |
||||
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> |
||||
<node> |
||||
<interface name="com.example"> |
||||
<method name="Hello"> |
||||
<arg direction="in" type="s" name="name"/> |
||||
<arg direction="out" type="s" name="greeting"/> |
||||
</method> |
||||
</interface> |
||||
</node> |
@ -0,0 +1,8 @@ |
||||
#include"generated-gdbus.h" |
||||
|
||||
int main(int argc, char **argv) { |
||||
SampleComExample *s; |
||||
s = sample_com_example_skeleton_new(); |
||||
g_object_unref(s); |
||||
return 0; |
||||
} |
@ -0,0 +1,9 @@ |
||||
gdbus_src = gnome.gdbus_codegen('generated-gdbus', 'com.example.Sample.xml', |
||||
interface_prefix : 'com.example.', |
||||
namespace : 'Sample') |
||||
|
||||
gdbus_exe = executable('gdbus-test', 'gdbusprog.c', |
||||
gdbus_src, |
||||
include_directories : include_directories('..'), |
||||
dependencies : giounix) |
||||
test('gdbus', gdbus_exe) |
Loading…
Reference in new issue