summaryrefslogtreecommitdiffstats
path: root/ctl-lib/ctl-config.h
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-05-23 20:08:25 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-05-28 12:45:01 +0000
commit64671ea79fc6b4eb68126842339800b25549cd67 (patch)
tree504e3f238cf424fe9360e80e191a71e65d6e227c /ctl-lib/ctl-config.h
parent53bc4e413c01d55318e8ddc27e526755cfad53a7 (diff)
Handle more metadata in the controller.
Add fields that will be searched for during controller metadata section parsing. These fields are optional, so they will be copied in CtlConfigT if they are present. Otherwise, no error will be raised. The added fields are : - 'author' which should contain the author name of the configuration file. - 'date' which should contain the date of the configuration file last modification. Change-Id: Iab480533d85c4a52ea5f6a70fb6f9b8d0b866af4 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-config.h')
-rw-r--r--ctl-lib/ctl-config.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ctl-lib/ctl-config.h b/ctl-lib/ctl-config.h
index 5ad0e7b..68d0110 100644
--- a/ctl-lib/ctl-config.h
+++ b/ctl-lib/ctl-config.h
@@ -64,10 +64,12 @@ typedef struct ConfigSectionS {
} CtlSectionT;
typedef struct {
- const char* api;
- const char* uid;
+ const char *api;
+ const char *uid;
const char *info;
const char *version;
+ const char *author;
+ const char *date;
json_object *configJ;
json_object *requireJ;
CtlSectionT *sections;