aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/fuse_common.h7
-rw-r--r--lib/helper.c4
2 files changed, 11 insertions, 0 deletions
diff --git a/include/fuse_common.h b/include/fuse_common.h
index 28dfc0b..beb44c7 100644
--- a/include/fuse_common.h
+++ b/include/fuse_common.h
@@ -269,6 +269,13 @@ int fuse_daemonize(int foreground);
int fuse_version(void);
/**
+ * Get the full package version string of the library
+ *
+ * @return the package version
+ */
+const char *fuse_pkgversion(void);
+
+/**
* Destroy poll handle
*
* @param ph the poll handle
diff --git a/lib/helper.c b/lib/helper.c
index e5550c9..2690334 100644
--- a/lib/helper.c
+++ b/lib/helper.c
@@ -332,3 +332,7 @@ int fuse_version(void)
return FUSE_VERSION;
}
+const char *fuse_pkgversion(void)
+{
+ return PACKAGE_VERSION;
+}