- if(jbus_add_service_j(jbuses[1], "runnables", on_runnables)
- || jbus_add_service_j(jbuses[1], "detail", on_detail)
- || jbus_add_service_j(jbuses[1], "start", on_start)
- || jbus_add_service_j(jbuses[1], "terminate", on_terminate)
- || jbus_add_service_j(jbuses[1], "stop", on_stop)
- || jbus_add_service_j(jbuses[1], "continue", on_continue)
- || jbus_add_service_j(jbuses[1], "runners", on_runners)
- || jbus_add_service_j(jbuses[1], "state", on_state)
- || jbus_add_service_s(jbuses[1], "install", on_install)
- || jbus_add_service_s(jbuses[1], "uninstall", on_uninstall)) {
+
+ /* init services */
+ if (jbus_add_service_j(user_bus, "runnables", on_runnables, NULL)
+ || jbus_add_service_j(user_bus, "detail", on_detail, NULL)
+ || jbus_add_service_j(user_bus, "start", on_start, NULL)
+ || jbus_add_service_j(user_bus, "once", on_once, NULL)
+ || jbus_add_service_j(user_bus, "terminate", on_terminate, NULL)
+ || jbus_add_service_j(user_bus, "pause", on_pause, NULL)
+ || jbus_add_service_j(user_bus, "resume", on_resume, NULL)
+ || jbus_add_service_j(user_bus, "stop", on_stop, NULL)
+ || jbus_add_service_j(user_bus, "continue", on_continue, NULL)
+ || jbus_add_service_j(user_bus, "runners", on_runners, NULL)
+ || jbus_add_service_j(user_bus, "state", on_state, NULL)
+#if defined(EXPLICIT_CALL)
+ || jbus_add_service_s(user_bus, "install", on_install, NULL)
+ || jbus_add_service_s(user_bus, "uninstall", on_uninstall, NULL)
+#else
+ || jbus_add_service_s(user_bus, "install", (void (*)(struct sd_bus_message *, const char *, void *))propagate, "install")
+ || jbus_add_service_s(user_bus, "uninstall", (void (*)(struct sd_bus_message *, const char *, void *))propagate, "uninstall")
+#endif
+ ) {