X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fmonitor-api.inc;h=e4dc2c92ab5860f26e97c5ce772b836d23f06fac;hb=f3d1f19ae308cc0559728c0ccf6281cbce5ee37c;hp=cbc1187fbe2e4f53aac8e0f2bd12f8f436b3ed9e;hpb=fb444de0bcb53917086c724444d7f8df25e8e806;p=src%2Fapp-framework-binder.git diff --git a/src/monitor-api.inc b/src/monitor-api.inc index cbc1187f..e4dc2c92 100644 --- a/src/monitor-api.inc +++ b/src/monitor-api.inc @@ -1,5 +1,5 @@ -static const char _afb_description_v2_monitor[] = +static const char _afb_description_monitor[] = "{\"openapi\":\"3.0.0\",\"info\":{\"description\":\"monitoring of binding" "s and internals\",\"title\":\"monitor\",\"version\":\"1.0\",\"x-binding-" "c-generator\":{\"api\":\"monitor\",\"version\":2,\"prefix\":\"f_\",\"pos" @@ -118,57 +118,68 @@ static const char _afb_description_v2_monitor[] = "}}}}}}}}}" ; -static void f_get(struct afb_req req); -static void f_set(struct afb_req req); -static void f_trace(struct afb_req req); -static void f_session(struct afb_req req); +static void f_get(afb_req_t req); +static void f_set(afb_req_t req); +static void f_trace(afb_req_t req); +static void f_session(afb_req_t req); -static const struct afb_verb_v2 _afb_verbs_v2_monitor[] = { +static const struct afb_verb_v3 _afb_verbs_monitor[] = { { .verb = "get", .callback = f_get, .auth = NULL, .info = "Get monitoring data.", - .session = AFB_SESSION_CHECK_V2 + .session = AFB_SESSION_CHECK, + .vcbdata = NULL, + .glob = 0 }, { .verb = "set", .callback = f_set, .auth = NULL, .info = "Set monitoring actions.", - .session = AFB_SESSION_CHECK_V2 + .session = AFB_SESSION_CHECK, + .vcbdata = NULL, + .glob = 0 }, { .verb = "trace", .callback = f_trace, .auth = NULL, .info = "Set monitoring actions.", - .session = AFB_SESSION_CHECK_V2 + .session = AFB_SESSION_CHECK, + .vcbdata = NULL, + .glob = 0 }, { .verb = "session", .callback = f_session, .auth = NULL, .info = "describes the session.", - .session = AFB_SESSION_CHECK_V2 + .session = AFB_SESSION_CHECK, + .vcbdata = NULL, + .glob = 0 }, { .verb = NULL, .callback = NULL, .auth = NULL, .info = NULL, - .session = 0 + .session = 0, + .vcbdata = NULL, + .glob = 0 } }; -static const struct afb_binding_v2 _afb_binding_v2_monitor = { +static const struct afb_binding_v3 _afb_binding_monitor = { .api = "monitor", - .specification = _afb_description_v2_monitor, + .specification = _afb_description_monitor, .info = "monitoring of bindings and internals", - .verbs = _afb_verbs_v2_monitor, + .verbs = _afb_verbs_monitor, .preinit = NULL, .init = NULL, .onevent = NULL, + .userdata = NULL, .noconcurrency = 0 };