X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Faf-usrd.c;fp=src%2Faf-usrd.c;h=33268f17b2dbdf0ca8ebaf54dee9a950ab1a20d3;hb=f4c7d5544f91dc10539439e59e622cc40decda1a;hp=6dac577bd580e873eef42af4303f94c27e50616f;hpb=494dce9b223d39571ec031bb66d118807ae917d1;p=src%2Fapp-framework-main.git diff --git a/src/af-usrd.c b/src/af-usrd.c index 6dac577..33268f1 100644 --- a/src/af-usrd.c +++ b/src/af-usrd.c @@ -73,26 +73,26 @@ static void on_start(struct jreq *jreq, struct json_object *obj) } } -static void on_stop(struct jreq *jreq, struct json_object *obj) +static void on_terminate(struct jreq *jreq, struct json_object *obj) { int runid = getrunid(obj); - int status = appfwk_run_stop(runid); + int status = appfwk_run_terminate(runid); jbus_replyj(jreq, status ? error_not_found : "true"); json_object_put(obj); } -static void on_suspend(struct jreq *jreq, struct json_object *obj) +static void on_stop(struct jreq *jreq, struct json_object *obj) { int runid = getrunid(obj); - int status = appfwk_run_suspend(runid); + int status = appfwk_run_stop(runid); jbus_replyj(jreq, status ? error_not_found : "true"); json_object_put(obj); } -static void on_resume(struct jreq *jreq, struct json_object *obj) +static void on_continue(struct jreq *jreq, struct json_object *obj) { int runid = getrunid(obj); - int status = appfwk_run_resume(runid); + int status = appfwk_run_continue(runid); jbus_replyj(jreq, status ? error_not_found : "true"); json_object_put(obj); } @@ -142,9 +142,9 @@ int main(int ac, char **av) if(jbus_add_service(jbus, "runnables", on_runnables) || jbus_add_service(jbus, "detail", on_detail) || jbus_add_service(jbus, "start", on_start) + || jbus_add_service(jbus, "terminate", on_terminate) || jbus_add_service(jbus, "stop", on_stop) - || jbus_add_service(jbus, "suspend", on_suspend) - || jbus_add_service(jbus, "resume", on_resume) + || jbus_add_service(jbus, "continue", on_continue) || jbus_add_service(jbus, "runners", on_runners) || jbus_add_service(jbus, "state", on_state)) { ERROR("adding services failed");