From c98436f85a94d621ef7236b0f32360437fcf4abf Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Mon, 4 Sep 2017 14:37:09 +0200 Subject: Retrieve binder rootdir and subfolder paths Change-Id: I064bf4831be40de70dab68b72489c4fdfc69e9c4 Signed-off-by: Romain Forlot --- filescan-utils.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'filescan-utils.h') 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 } -- cgit 1.2.3-korg