summaryrefslogtreecommitdiffstats
path: root/binding/gdbus/generate_interfaces.sh
diff options
context:
space:
mode:
Diffstat (limited to 'binding/gdbus/generate_interfaces.sh')
-rwxr-xr-xbinding/gdbus/generate_interfaces.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/binding/gdbus/generate_interfaces.sh b/binding/gdbus/generate_interfaces.sh
new file mode 100755
index 0000000..8c8914d
--- /dev/null
+++ b/binding/gdbus/generate_interfaces.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+CG=gdbus-codegen
+API=api
+
+$CG \
+ --interface-prefix Obex.Client1. \
+ --generate-c-code obex_client1_interface \
+ --c-generate-object-manager \
+ $API/client1.xml
+
+$CG \
+ --interface-prefix Obex.Session1. \
+ --generate-c-code obex_session1_interface \
+ $API/session1.xml
+
+$CG \
+ --interface-prefix Obex.PhonebookAccess1. \
+ --generate-c-code obex_phonebookaccess1_interface \
+ $API/phonebookaccess1.xml
+
+$CG \
+ --interface-prefix Obex.Transfer1. \
+ --generate-c-code obex_transfer1_interface \
+ $API/transfer1.xml
+
+$CG \
+ --interface-prefix org.freedesktop.DBus.Properties. \
+ --generate-c-code freedesktop_dbus_properties_interface \
+ $API/org.freedesktop.DBus.Properties.xml