summaryrefslogtreecommitdiffstats
path: root/filescan-utils.h
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-09-04 14:37:09 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-13 14:12:02 +0100
commit6b4e6d0da9db9829455431059878e9eaae2cfa03 (patch)
tree8efa735ea50ec44b8821224f031b20514402caac /filescan-utils.h
parent5d5262cc12a1b0d8b72048225030f9bcef7a1da4 (diff)
Retrieve binder rootdir and subfolder paths
Change-Id: I064bf4831be40de70dab68b72489c4fdfc69e9c4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'filescan-utils.h')
-rw-r--r--filescan-utils.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/filescan-utils.h b/filescan-utils.h
index b6111e2..e038330 100644
--- a/filescan-utils.h
+++ b/filescan-utils.h
@@ -39,15 +39,25 @@
#define CONTROL_MAXPATH_LEN 255
#endif
-// ctl-misc.c
typedef enum {
CTL_SCAN_FLAT=0,
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;
+
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();
+
#ifdef __cplusplus
}