aboutsummaryrefslogtreecommitdiffstats
path: root/filescan-utils.h
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-09-08 11:53:44 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-09-08 12:22:18 +0200
commit691f6397954929689a1e9434e31940192c2358bc (patch)
treea38db43e495634ee58f42dec139dd26cdd6e1bc0 /filescan-utils.h
parent0ac08beab3581b9b1beecc1cf8debb96ec0c804d (diff)
More reliable GetBindingDirsPath function.
Only return a wanted directory path not a complex structure. Change-Id: I5b5a1dea2c55ee6a76dbbbd52c3ebfdd684255e5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'filescan-utils.h')
-rw-r--r--filescan-utils.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/filescan-utils.h b/filescan-utils.h
index e038330..738be27 100644
--- a/filescan-utils.h
+++ b/filescan-utils.h
@@ -44,19 +44,19 @@ typedef enum {
CTL_SCAN_RECURSIVE=1,
} CtlScanDirModeT;
-typedef struct bpath {
- char rootdir[CONTROL_MAXPATH_LEN];
- char bindir[CONTROL_MAXPATH_LEN];
- char etcdir[CONTROL_MAXPATH_LEN];
- char datadir[CONTROL_MAXPATH_LEN];
- char libdir[CONTROL_MAXPATH_LEN];
- char httpdir[CONTROL_MAXPATH_LEN];
-} BPaths;
+typedef enum {
+ ROOT_DIR=0,
+ BIN_DIR=1,
+ ETC_DIR=2,
+ DATA_DIR=3,
+ LIB_DIR=4,
+ HTTP_DIR=5
+} BindingDirsT
PUBLIC const char *GetMidleName(const char*name);
PUBLIC const char *GetBinderName();
PUBLIC json_object* ScanForConfig (const char* searchPath, CtlScanDirModeT mode, const char *pre, const char *ext);
-PUBLIC BPaths GetBindingDirsPath();
+PUBLIC const char *GetBindingDirPath(BindingDirsT dir);
#ifdef __cplusplus