From 8e261979e815e6aef12e27482ef11c8d8c64da5c Mon Sep 17 00:00:00 2001 From: Jannis Pohlmann Date: Wed, 13 Jun 2012 14:09:15 +0100 Subject: [PATCH] Add XML spec and code generation for org.fd.systemd1.Manager This will cause the SystemdManagerProxy class to be generated that we can use to communicate with the systemd manager to start/stop units etc. --- boot-manager/Makefile.am | 15 ++++++++++-- boot-manager/systemd-manager-dbus.xml | 43 +++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 boot-manager/systemd-manager-dbus.xml diff --git a/boot-manager/Makefile.am b/boot-manager/Makefile.am index 7b2c13b..5af8562 100644 --- a/boot-manager/Makefile.am +++ b/boot-manager/Makefile.am @@ -7,10 +7,12 @@ boot_manager_PROGRAMS = \ boot-manager boot_manager_built_headers = \ - boot-manager-dbus.h + boot-manager-dbus.h \ + systemd-manager-dbus.h boot_manager_built_sources = \ boot-manager-dbus.c \ + systemd-manager-dbus.c \ $(boot_manager_built_headers) boot_manager_SOURCES = \ @@ -58,7 +60,8 @@ CLEANFILES = \ EXTRA_DIST = \ $(service_in_files) \ - boot-manager-dbus.xml + boot-manager-dbus.xml \ + systemd-manager-dbus.xml DISTCLEANFILES = \ $(boot_manager_built_sources) @@ -73,3 +76,11 @@ boot-manager-dbus.h: boot-manager-dbus.xml Makefile --generate-c-code boot-manager-dbus \ --annotate org.genivi.BootManager1 org.gtk.GDBus.C.Name \ BootManager $< + +systemd-manager-dbus.h: systemd-manager-dbus.xml Makefile + $(AM_V_GEN) $(GDBUS_CODEGEN) \ + --interface-prefix org.freedesktop.systemd1 \ + --c-namespace "" \ + --generate-c-code systemd-manager-dbus \ + --annotate org.freedesktop.systemd1.Manager org.gtk.GDBus.C.Name \ + SystemdManager $< diff --git a/boot-manager/systemd-manager-dbus.xml b/boot-manager/systemd-manager-dbus.xml new file mode 100644 index 0000000..de640f7 --- /dev/null +++ b/boot-manager/systemd-manager-dbus.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + " + + -- 2.7.4