summaryrefslogtreecommitdiffstats
path: root/4a-hal
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-05-23 20:23:23 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-10-08 15:51:00 +0200
commit3026b78b990e26aec9bf53d5c6579f116fd06b6b (patch)
treedbe83278b83550f1c6eeb4ecd1933c7b86f82342 /4a-hal
parent5a2853b996f025b1d331ecbc9c5c136398343f4a (diff)
Remove sections id in sections callbacks structure
Remove sections id in sections callbacks structure because it's not mandatory anymore (it's even harder to add a section with these ids). Change-Id: I04caa1c83137e4165c023207d2b58376c176c248 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal')
-rw-r--r--4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c11
1 files changed, 5 insertions, 6 deletions
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 eb023a1..a862fbd 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
@@ -41,12 +41,11 @@ afb_dynapi *AFB_default;
// Config Section definition
static CtlSectionT ctrlSections[] =
{
- [CTL_SECTION_PLUGIN] = {.key="plugins" , .loadCB= PluginConfig},
- [CTL_SECTION_ONLOAD] = {.key="onload" , .loadCB= OnloadConfig},
- [CTL_SECTION_CONTROL] = {.key="controls", .loadCB= ControlConfig},
- [CTL_SECTION_EVENT] = {.key="events" , .loadCB= EventConfig},
-
- [CTL_SECTION_ENDTAG] = {.key=NULL}
+ {.key="plugins" , .loadCB= PluginConfig},
+ {.key="onload" , .loadCB= OnloadConfig},
+ {.key="controls", .loadCB= ControlConfig},
+ {.key="events" , .loadCB= EventConfig},
+ {.key=NULL}
};
/*******************************************************************************