diff options
author | kremlin- <ian@kremlin.cc> | 2014-06-20 03:49:33 +0800 |
---|---|---|
committer | kremlin- <ian@kremlin.cc> | 2014-06-20 03:49:33 +0800 |
commit | d8e93505b0046bb243cbb0153bde0e42fd659d2d (patch) | |
tree | e6a605df89f8fb5420389c69a120154bff0d1bf7 | |
parent | a82db5fd9d9c0370a29c3925d972ded621b89aa5 (diff) | |
download | systembsd-d8e93505b0046bb243cbb0153bde0e42fd659d2d.tar systembsd-d8e93505b0046bb243cbb0153bde0e42fd659d2d.tar.gz systembsd-d8e93505b0046bb243cbb0153bde0e42fd659d2d.tar.bz2 systembsd-d8e93505b0046bb243cbb0153bde0e42fd659d2d.tar.lz systembsd-d8e93505b0046bb243cbb0153bde0e42fd659d2d.tar.xz systembsd-d8e93505b0046bb243cbb0153bde0e42fd659d2d.tar.zst systembsd-d8e93505b0046bb243cbb0153bde0e42fd659d2d.zip |
add script for generating interface types (gdbus-codegen)
-rwxr-xr-x | scripts/gen-gdbus-interfaces.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/gen-gdbus-interfaces.sh b/scripts/gen-gdbus-interfaces.sh new file mode 100755 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 + |