summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-05-23 21:15:54 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-10-08 15:51:00 +0200
commite7d27f6f456c0cd5e2c2e506928619520dbfe917 (patch)
tree28a45da160ca6c7e6a6a0f4dfb3a233a52d8a0f9
parente21766d185885a985ddf5b2f312171b3f81eb94e (diff)
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 <jonathan.aillet@iot.bzh>
-rw-r--r--4a-hal-references-boards-cfg/hal-4a-sample1.json2
-rw-r--r--4a-hal-references-boards-cfg/hal-4a-sample2.json2
-rw-r--r--4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c2
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 <ctl-config.h>
#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
};