aboutsummaryrefslogtreecommitdiffstats
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.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/binding/gdbus/generate_interfaces.sh b/binding/gdbus/generate_interfaces.sh
new file mode 100755
index 0000000..a60c435
--- /dev/null
+++ b/binding/gdbus/generate_interfaces.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+CG=gdbus-codegen
+API=api
+
+$CG \
+ --interface-prefix Ofono.Manager. \
+ --generate-c-code ofono_manager_interface \
+ --c-generate-object-manager \
+ $API/ofono_manager.xml
+
+$CG \
+ --interface-prefix Ofono.VoiceCallManager. \
+ --generate-c-code ofono_voicecallmanager_interface \
+ $API/ofono_voicecallmanager.xml
+
+$CG \
+ --interface-prefix Ofono.VoiceCall. \
+ --generate-c-code ofono_voicecall_interface \
+ $API/ofono_voice_call.xml