diff options
author | Matt Porter <mporter@konsulko.com> | 2018-06-27 14:44:07 -0400 |
---|---|---|
committer | Matt Porter <mporter@konsulko.com> | 2018-07-10 08:32:25 -0400 |
commit | ed41478d73a9972495f840fd854c439d92c5247b (patch) | |
tree | 41675ea1a13ab15f40e543c51d2d17ba1781a37b /binding/network-api.c | |
parent | 916843c373bc653bc472e6353631134b42d490f2 (diff) |
remove ping verb
The ping verb was used in testing and is no longer needed.
Remove it.
Bug-AGL: SPEC-1540
Change-Id: Ia906c2b489f56188e87061ad675330dd29581f97
Signed-off-by: Matt Porter <mporter@konsulko.com>
Diffstat (limited to 'binding/network-api.c')
-rw-r--r-- | binding/network-api.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/binding/network-api.c b/binding/network-api.c index 3c4cf29..57add98 100644 --- a/binding/network-api.c +++ b/binding/network-api.c @@ -1060,22 +1060,6 @@ static int init(void) return id->rc; } -static void network_ping(struct afb_req request) -{ - struct network_state *ns = global_ns; - json_object *jresp = json_object_new_object(); - json_object *jev = json_object_new_object(); - - /* push fake counter event */ - ns->ping_counter++; - jev = json_object_new_object(); - json_object_object_add(jev, "counter", - json_object_new_int(ns->ping_counter)); - afb_event_push(ns->counter_event, jev); - - afb_req_success(request, jresp, "Network binding - pong"); -} - static void network_subscribe_unsubscribe(struct afb_req request, gboolean unsub) { @@ -1781,11 +1765,6 @@ static void network_agent_response(struct afb_req request) static const struct afb_verb_v2 network_verbs[] = { { - .verb = "ping", - .session = AFB_SESSION_NONE, - .callback = network_ping, - .info ="Check if binding is alive" - }, { .verb = "subscribe", .session = AFB_SESSION_NONE, .callback = network_subscribe, |