]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - support/include/rpcmisc.h
statd: Support TI-RPC statd listener
[nfs-utils.git] / support / include / rpcmisc.h
index 35c5011934183d222c8f1332e44cbbeb5ffdb29d..1b8f411ea8cc847c8bd2c23c1d576a5fbd487790 100644 (file)
@@ -41,8 +41,12 @@ struct rpc_dtable {
                (xdrproc_t)xdr_##res_type, sizeof(res_type), \
        }
 
-
-int            makesock(int port, int proto);
+void           nfs_svc_unregister(const rpcprog_t program,
+                               const rpcvers_t version);
+unsigned int   nfs_svc_create(char *name, const rpcprog_t program,
+                               const rpcvers_t version,
+                               void (*dispatch)(struct svc_req *, SVCXPRT *),
+                               const uint16_t port);
 void           rpc_init(char *name, int prog, int vers,
                                void (*dispatch)(struct svc_req *, SVCXPRT *),
                                int defport);
@@ -54,5 +58,14 @@ extern int   _rpcpmstart;
 extern int     _rpcfdtype;
 extern int     _rpcsvcdirty;
 
+static inline struct sockaddr_in *nfs_getrpccaller_in(SVCXPRT *xprt)
+{
+       return (struct sockaddr_in *)svc_getcaller(xprt);
+}
+
+static inline struct sockaddr *nfs_getrpccaller(SVCXPRT *xprt)
+{
+       return (struct sockaddr *)svc_getcaller(xprt);
+}
 
 #endif /* RPCMISC_H */