aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Porter <mporter@konsulko.com>2018-06-27 14:44:07 -0400
committerMatt Porter <mporter@konsulko.com>2018-07-10 08:32:25 -0400
commited41478d73a9972495f840fd854c439d92c5247b (patch)
tree41675ea1a13ab15f40e543c51d2d17ba1781a37b
parent916843c373bc653bc472e6353631134b42d490f2 (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>
-rw-r--r--binding/network-api.c21
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,