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>2018-12-13 14:12:02 +0100
commit0d3acdd1ac876a1de4893d534ba6fc438045c93d (patch)
treea38db43e495634ee58f42dec139dd26cdd6e1bc0 /filescan-utils.h
parent7624af807d9c3574f36d015fc7b894e0e321f884 (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