X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafm-system-daemon.c;h=25d9456deefd8dcceaffe0cd7e7b6bd12254b423;hb=c36ac6398097e09284f5d889ac2f994038a7d260;hp=11522816eb9e60e94d1ff9321900f4298471ddb6;hpb=0beff6e84858ffc4468276865d3709d7ee0b1852;p=src%2Fapp-framework-main.git diff --git a/src/afm-system-daemon.c b/src/afm-system-daemon.c index 1152281..25d9456 100644 --- a/src/afm-system-daemon.c +++ b/src/afm-system-daemon.c @@ -66,7 +66,7 @@ const char error_bad_request[] = "\"bad request\""; const char error_not_found[] = "\"not found\""; const char error_cant_start[] = "\"can't start\""; -static void on_install(struct jreq *jreq, struct json_object *req) +static void on_install(struct jreq *jreq, struct json_object *req, void *unused) { const char *wgtfile; const char *root; @@ -113,7 +113,7 @@ static void on_install(struct jreq *jreq, struct json_object *req) } } -static void on_uninstall(struct jreq *jreq, struct json_object *req) +static void on_uninstall(struct jreq *jreq, struct json_object *req, void *unused) { const char *idaver; const char *root; @@ -222,8 +222,8 @@ int main(int ac, char **av) ERROR("create_jbus failed"); return 1; } - if(jbus_add_service_j(jbus, "install", on_install) - || jbus_add_service_j(jbus, "uninstall", on_uninstall)) { + if(jbus_add_service_j(jbus, "install", on_install, NULL) + || jbus_add_service_j(jbus, "uninstall", on_uninstall, NULL)) { ERROR("adding services failed"); return 1; }