Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
# #
#############################################################################*/
+#include <stdio.h>
+
+#include <systemd/sd-bus.h>
+
int main(int argc, char** argv) {
- return 0;
+ sd_bus* bus = NULL;
+ int r;
+
+ // Connect to system bus
+ r = sd_bus_open_system(&bus);
+ if (r < 0) {
+ fprintf(stderr, "Could not connect to system bus: %m\n");
+ goto ERROR;
+ }
+
+ // XXX TODO Do all the work
+
+ERROR:
+ if (bus)
+ sd_bus_flush_close_unref(bus);
+
+ return r;
}