summaryrefslogtreecommitdiffstats
path: root/filescan-utils.h
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2019-12-03 17:16:19 +0100
committerJonathan Aillet <jonathan.aillet@iot.bzh>2019-12-04 14:45:36 +0100
commit6d828a1b309685ad7f5d74abc0162c59fbbd3304 (patch)
tree9cefd7edde86a987bf8d7ffe89110ab43150ee9d /filescan-utils.h
parent4480e19e555318d04a8b63f8e5ef827b627ea408 (diff)
Add 'GetRunningBindingDirPath' function that returns the binding directory path (the path to the directory that contains the binding). FYI: - 'Binding directory path' is the path to the directory that contains a binding binding launched by the binder. - 'Binder root directory path' is the path specified at binder launch using '--rootdir' option. If no option is specified, binder root directory is set to the current directory. SPEC-AGL: SPEC-3009 Change-Id: I34b3d17710ebc2bf06541a00ca7f8d7189f6aa18 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'filescan-utils.h')
-rw-r--r--filescan-utils.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/filescan-utils.h b/filescan-utils.h
index f96d903..0783ebe 100644
--- a/filescan-utils.h
+++ b/filescan-utils.h
@@ -123,6 +123,16 @@ __attribute__((alias("GetAFBRootDirPath_v3")))
static char *GetBindingDirPath(afb_api_t api);
#endif
+/*
+ * @brief Get the Binding directory
+ *
+ * @param dynapi : Api use in binding
+ *
+ * @return char* string representing the path to binding directory.
+ * NULL if something wrong happened.
+ */
+extern char *GetRunningBindingDirPath(afb_api_t apiHandle);
+
/**
* @brief Get the environment directory colon separated path list. This take the
* prefix add the binder's name then the suffix as environment variable name and