From 7d687b939d42f46b7493a3ea7ace83dd0aef4091 Mon Sep 17 00:00:00 2001 From: Christopher Harrison Date: Thu, 30 Jul 2015 11:05:34 +0100 Subject: [PATCH] Added fuse_pkgversion function Returns the full PACKAGE_VERSION string, per autoconf --- include/fuse_common.h | 7 +++++++ lib/helper.c | 4 ++++ 2 files changed, 11 insertions(+) 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 @@ -268,6 +268,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 * 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; +} -- 2.30.2