]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - support/include/nfsrpc.h
libexport.a: Allow client_init() to fail instead of exit
[nfs-utils.git] / support / include / nfsrpc.h
index b3cdb8c44f3357e3753a9019e6938bab924fd405..6ebefcac530ba1b55ea2a3d192d96e889b15d2e7 100644 (file)
@@ -79,6 +79,18 @@ extern CLIENT                *nfs_get_priv_rpcclient( const struct sockaddr *,
                                const rpcprog_t, const rpcvers_t,
                                struct timeval *);
 
+/*
+ * Convert a netid to a protocol number and protocol family
+ */
+extern int             nfs_get_proto(const char *netid, sa_family_t *family,
+                               unsigned long *protocol);
+
+/*
+ * Convert a protocol family and protocol name to a netid
+ */
+extern char            *nfs_get_netid(const sa_family_t family,
+                               const unsigned long protocol);
+
 /*
  * Convert a socket address to a universal address
  */
@@ -148,4 +160,7 @@ extern int          nfs_rpc_ping(const struct sockaddr *sap,
                                const unsigned short protocol,
                                const struct timeval *timeout);
 
-#endif /* __NFS_UTILS_NFSRPC_H */
+/* create AUTH_SYS handle with no supplemental groups */
+extern AUTH *                   nfs_authsys_create(void);
+
+#endif /* !__NFS_UTILS_NFSRPC_H */