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 <[email protected]> --- 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; _______________________________________________ fedfs-utils-devel mailing list [email protected] https://oss.oracle.com/mailman/listinfo/fedfs-utils-devel
