The utility wrap-json distinguishes o from O, the latest
increment the reference count, as expected.
Bug-AGL: SPEC-1563
Change-Id: I4490ac894059e47abf1e2474aab07249b862e985
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
hello getctx
hello setctx "some-text-2"
hello getctx
-#------------------------
-# TODO bug to be fixed!
-#hello info
-#------------------------
+hello info
hello verbose {"level":2,"message":"hello"}
EOC
static void hook_xreq_get_client_info(void *closure, const struct afb_hookid *hookid, const struct afb_xreq *xreq, struct json_object *result)
{
- hook_xreq(closure, hookid, xreq, "get_client_info", "{so}",
+ hook_xreq(closure, hookid, xreq, "get_client_info", "{sO}",
"result", result);
}