aboutsummaryrefslogtreecommitdiffstats
path: root/filescan-utils.h
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-07-19 11:56:36 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-13 14:12:02 +0100
commitdd085dc34cddd93faa63ed49a3159c7ec0a242dd (patch)
tree0991f517baa3c09e763b7d848cc4f69ed0e7811b /filescan-utils.h
parent8e336b0822974695493a45445ec16908bd0c19c8 (diff)
Fix: use of GetBindingDirPath without dynapi
For classic binding < 3 without dynapi this fix the error at compile time about conflicting type for this function. This worked on eel and previous version because 'struct dynapi' was declared and available for version 2 but now since binder is in V3 then it isn't the case so function signature is not valid anymore. Change-Id: I135a723d21d70b8c54f4cab1c534210757318ed0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'filescan-utils.h')
-rw-r--r--filescan-utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/filescan-utils.h b/filescan-utils.h
index bf8fb53..64ecfb9 100644
--- a/filescan-utils.h
+++ b/filescan-utils.h
@@ -86,7 +86,11 @@ extern json_object* ScanForConfig (const char* searchPath, CtlScanDirModeT mode,
*
* @return char* string representing the path to binding root directory.
*/
+#if(AFB_BINDING_VERSION == 0 && defined(AFB_BINDING_WANT_DYNAPI))
extern char *GetBindingDirPath(struct afb_dynapi *dynapi);
+#else
+extern char *GetBindingDirPath();
+#endif
/**
* @brief Get the environment directory colon separated path list. This take the