summaryrefslogtreecommitdiffstats
path: root/filescan-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'filescan-utils.c')
-rw-r--r--filescan-utils.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/filescan-utils.c b/filescan-utils.c
index 6c6cf84..236e192 100644
--- a/filescan-utils.c
+++ b/filescan-utils.c
@@ -151,7 +151,7 @@ const char* GetBinderName()
return binderName;
}
-char *GetBindingDirPath_(int fd)
+char *GetAFBRootDirPathUsingFd(int fd)
{
// A file description should not be greater than 999.999.999
char fd_link[CONTROL_MAXPATH_LEN];
@@ -170,6 +170,15 @@ char *GetBindingDirPath_(int fd)
return strndup(retdir, sizeof(retdir));
}
+char *GetAFBRootDirPath(afb_api_t apiHandle)
+{
+ int fd;
+
+ fd = afb_api_rootdir_get_fd(apiHandle);
+
+ return GetAFBRootDirPathUsingFd(fd);
+}
+