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.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/binding/gdbus/generate_interfaces.sh b/binding/gdbus/generate_interfaces.sh
new file mode 100755
index 0000000..21874be
--- /dev/null
+++ b/binding/gdbus/generate_interfaces.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+CG=gdbus-codegen
+API=api
+
+$CG \
+ --interface-prefix org.lightmediascanner. \
+ --generate-c-code lightmediascanner_interface \
+ $API/org.lightmediascanner.xml
+
+$CG \
+ --interface-prefix org.freedesktop.UDisks. \
+ --generate-c-code udisks_interface \
+ $API/org.freedesktop.UDisks.xml