[fedfs-utils] [PATCH 3/4] include: Add macro defining NFS plug-in soname
Chuck Lever
chuck.lever at oracle.com
Wed Mar 19 10:45:33 PDT 2014
Plug-in consumers should not be required to open-code the name
of the plug-in library. Consumers should discover the library name
somehow, and adding a macro in the header that defines the API seems
like a straightforward approach.
We specify the library soname here because the soname must always
change when the API version number (JP_API_VERSION) is bumped.
Eventually JP_API_VERSION can be deprecated.
Signed-off-by: Chuck Lever <chuck.lever at oracle.com>
---
src/include/nfs-plugin.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/include/nfs-plugin.h b/src/include/nfs-plugin.h
index 60d2993..f43833a 100644
--- a/src/include/nfs-plugin.h
+++ b/src/include/nfs-plugin.h
@@ -42,6 +42,11 @@ __BEGIN_DECLS
#define JP_API_VERSION (1)
/**
+ * NFS plug-in library soname; passed to dlopen(3)
+ */
+#define JP_NFSPLUGIN_SONAME "libnfsjunct.so.0"
+
+/**
* A set of NFS FS locations
*/
struct nfs_fsloc_set;
More information about the fedfs-utils-devel
mailing list