X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=bindings%2Fsamples%2Fhello3.c;h=99a358292b1e5baab0fd35dc7bed63e3f4a3f5f8;hb=5ef271effacb83552f9ea56572c751c2f5a556b6;hp=7e54e3a98612ee78c25fedd71b595ec957ecabff;hpb=e39610f8c9b2e6bbb8a460f7d7ccccbc5161b4ed;p=src%2Fapp-framework-binder.git diff --git a/bindings/samples/hello3.c b/bindings/samples/hello3.c index 7e54e3a9..99a35829 100644 --- a/bindings/samples/hello3.c +++ b/bindings/samples/hello3.c @@ -552,6 +552,13 @@ static void queue(afb_req_t request) afb_api_queue_job(afb_req_get_api(request), queue_cb, request, NULL, 0); } +static void settings(afb_req_t request) +{ + afb_api_t api = afb_req_get_api(request); + struct json_object *object = afb_api_settings(api); + afb_req_reply(request, json_object_get(object), NULL, NULL); +} + static void rootdir (afb_req_t request) { ssize_t s; @@ -735,6 +742,7 @@ static const struct afb_verb_v3 verbs[]= { { .verb="api", .callback=api}, { .verb="mute", .callback=mute}, { .verb="queue", .callback=queue}, + { .verb="settings", .callback=settings}, { .verb=NULL} };