diff mbox

[3/4] include: Add macro defining NFS plug-in soname

Message ID 20140319174533.40917.91599.stgit@seurat.1015granger.net
State Accepted
Headers show

Commit Message

Chuck Lever March 19, 2014, 5:45 p.m. UTC
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@oracle.com>
---
 src/include/nfs-plugin.h |    5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

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;