projects
/
systembsd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a82db5f
)
add script for generating interface types (gdbus-codegen)
author
kremlin-
<ian@kremlin.cc>
Thu, 19 Jun 2014 19:49:33 +0000
(14:49 -0500)
committer
kremlin-
<ian@kremlin.cc>
Thu, 19 Jun 2014 19:49:33 +0000
(14:49 -0500)
scripts/gen-gdbus-interfaces.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/scripts/gen-gdbus-interfaces.sh
b/scripts/gen-gdbus-interfaces.sh
new file mode 100755
(executable)
index 0000000..
1e44b35
--- /dev/null
+++ b/
scripts/gen-gdbus-interfaces.sh
@@ -0,0
+1,16
@@
+#!/usr/local/bin/bash
+
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../ && pwd )"
+
+if [[ -z "$1" ]]; then
+ echo "syntax: ./gen-dbus-interfaces <interface name>"
+ exit 1
+fi
+
+gdbus-codegen \
+--interface-prefix org.freedesktop. \
+--generate-docbook doc/$1-docbook.xml \
+--generate-c-code src/interfaces/$1/$1-gen \
+--c-namespace SystemdUtils \
+conf/$1-ispect.xml
+