From 3026b78b990e26aec9bf53d5c6579f116fd06b6b Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Wed, 23 May 2018 20:23:23 +0200 Subject: 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 --- 4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to '4a-hal') 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} }; /******************************************************************************* -- cgit 1.2.3-korg