aboutsummaryrefslogtreecommitdiffstats
path: root/src/afm-system-daemon.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-03-15 14:17:14 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2016-03-15 14:17:14 +0100
commitc36ac6398097e09284f5d889ac2f994038a7d260 (patch)
treeb49fc0a8c33ae85bfdeeb76739c2e26e28b05b72 /src/afm-system-daemon.c
parent0beff6e84858ffc4468276865d3709d7ee0b1852 (diff)
utils-jbus: adds closure
Change-Id: I14466dee08429c404de400868967d8d97b2ba359 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afm-system-daemon.c')
-rw-r--r--src/afm-system-daemon.c8
1 files changed, 4 insertions, 4 deletions
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;
}