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>2017-09-04 14:37:09 +0200
commitc98436f85a94d621ef7236b0f32360437fcf4abf (patch)
tree8efa735ea50ec44b8821224f031b20514402caac /filescan-utils.h
parentd8f02a120fc1c9a6b42d1c097c6fe1027d1215be (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
}