From e7d27f6f456c0cd5e2c2e506928619520dbfe917 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Wed, 23 May 2018 21:15:54 +0200 Subject: Remove the 'ping' of each hal controller api Remove the 'ping' verb of each hal controller api which won't be useful anymore. Rename action in configuration file to be able ping an api nevertheless. Change-Id: I5b1ce8f8cd83dc3e689c3bd676244477921ba20d Signed-off-by: Jonathan Aillet --- 4a-hal-references-boards-cfg/hal-4a-sample1.json | 2 +- 4a-hal-references-boards-cfg/hal-4a-sample2.json | 2 +- 4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/4a-hal-references-boards-cfg/hal-4a-sample1.json b/4a-hal-references-boards-cfg/hal-4a-sample1.json index a93a4be..c0644cc 100644 --- a/4a-hal-references-boards-cfg/hal-4a-sample1.json +++ b/4a-hal-references-boards-cfg/hal-4a-sample1.json @@ -29,7 +29,7 @@ "action": "api://4a-hal-manager#ping" }, { - "uid": "ping2", + "uid": "ping", "info": "Ping hal", "action": "api://4a-hal-manager#ping" } diff --git a/4a-hal-references-boards-cfg/hal-4a-sample2.json b/4a-hal-references-boards-cfg/hal-4a-sample2.json index 8448b4f..0706fd8 100644 --- a/4a-hal-references-boards-cfg/hal-4a-sample2.json +++ b/4a-hal-references-boards-cfg/hal-4a-sample2.json @@ -29,7 +29,7 @@ "action": "api://4a-hal-manager#ping" }, { - "uid": "ping2", + "uid": "ping", "info": "Ping hal", "action": "api://4a-hal-manager#ping" } diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c index 8bac074..119e6b6 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c @@ -27,7 +27,6 @@ #include #include "../4a-hal-utilities/4a-hal-utilities-verbs-loader.h" -#include "../4a-hal-manager/4a-hal-manager-cb.h" #include "4a-hal-controllers-api-loader.h" #include "4a-hal-controllers-cb.h" @@ -57,7 +56,6 @@ static CtlSectionT ctrlSections[] = static struct HalUtlApiVerb CtlHalDynApiStaticVerbs[] = { /* VERB'S NAME FUNCTION TO CALL SHORT DESCRIPTION */ - { .verb = "ping", .callback = HalMgrPing, .info = "Ping test for DynApi"}, { .verb = "list", .callback = HalCtlsListVerbs, .info = "List available verbs for this api"}, { .verb = NULL } // Marker for end of the array }; -- cgit 1.2.3-korg