From: Christopher Harrison Date: Thu, 30 Jul 2015 10:05:34 +0000 (+0100) Subject: Added fuse_pkgversion function X-Git-Tag: fuse-3.0.0pre0~71^2~1 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7d687b939d42f46b7493a3ea7ace83dd0aef4091;p=qemu-gpiodev%2Flibfuse.git Added fuse_pkgversion function Returns the full PACKAGE_VERSION string, per autoconf --- 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; +}