/* the standard apiset */
static struct {
struct afb_apiset *apiset;
- struct afb_config *config;
+ struct json_object *config;
} global;
/* the supervision apiset (not exported) */
ERROR("Creation of supervisor failed: %m");
goto end;
}
- afb_stub_ws_on_hangup(supervisor, on_supervisor_hangup);
+ afb_stub_ws_set_on_hangup(supervisor, on_supervisor_hangup);
/* successful termination */
goto end;
/**
* initialize the supervision
*/
-int afb_supervision_init(struct afb_apiset *apiset, struct afb_config *config)
+int afb_supervision_init(struct afb_apiset *apiset, struct json_object *config)
{
int rc;
struct sigaction sa;
afb_xreq_reply(xreq, list, NULL, NULL);
break;
case Config:
- afb_xreq_reply(xreq, afb_config_json(global.config), NULL, NULL);
+ afb_xreq_reply(xreq, json_object_get(global.config), NULL, NULL);
break;
case Trace:
if (!trace)