X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fgen-gdbus-interfaces.sh;h=31381d34114fa7655245b43133622138bc7cb0d5;hb=68fde492dce7403137f7f3ddc537f724b2ef3fe5;hp=0d74aa2cefaa6f6cc59d2be6f30d5c7175d47305;hpb=86cb77279934d78b941aa6d3712d0e6aa45806c2;p=systembsd.git diff --git a/scripts/gen-gdbus-interfaces.sh b/scripts/gen-gdbus-interfaces.sh index 0d74aa2..31381d3 100755 --- a/scripts/gen-gdbus-interfaces.sh +++ b/scripts/gen-gdbus-interfaces.sh @@ -1,4 +1,21 @@ #!/usr/local/bin/bash +# JUST for now + +# Copyright (c) 2014 Ian Sutton +# +# Permission to use, copy, modify, and distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +# TODO fix #include, should be "foo-gen.h" instead of "src/interfaces/foo/foo-gen.h DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../ && pwd )" @@ -14,6 +31,8 @@ gdbus-codegen \ --interface-prefix org.freedesktop. \ --generate-docbook doc/$1-docbook.xml \ --generate-c-code src/interfaces/$1/$1-gen \ +--c-generate-object-manager \ +--c-namespace $1 \ conf/$1-ispect.xml echo "success"