]> git.decadent.org.uk Git - nfs-utils.git/blob - tests/nsm_client/nlm_sm_inter.h
Imported Upstream version 1.2.8
[nfs-utils.git] / tests / nsm_client / nlm_sm_inter.h
1 /*
2  * Please do not edit this file.
3  * It was generated using rpcgen.
4  */
5
6 #ifndef _NLM_SM_INTER_H_RPCGEN
7 #define _NLM_SM_INTER_H_RPCGEN
8
9 #include <rpc/rpc.h>
10
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 #define SM_MAXSTRLEN 1024
17 #define SM_PRIV_SIZE 16
18
19 struct nlm_sm_notify {
20         char *mon_name;
21         int state;
22         char priv[SM_PRIV_SIZE];
23 };
24 typedef struct nlm_sm_notify nlm_sm_notify;
25
26 #define NLM_SM_PROG 100021
27 #define NLM_SM_VERS3 3
28
29 #if defined(__STDC__) || defined(__cplusplus)
30 #define NLM_SM_NOTIFY 16
31 extern  void * nlm_sm_notify_3(struct nlm_sm_notify *, CLIENT *);
32 extern  void * nlm_sm_notify_3_svc(struct nlm_sm_notify *, struct svc_req *);
33 extern int nlm_sm_prog_3_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
34
35 #else /* K&R C */
36 #define NLM_SM_NOTIFY 16
37 extern  void * nlm_sm_notify_3();
38 extern  void * nlm_sm_notify_3_svc();
39 extern int nlm_sm_prog_3_freeresult ();
40 #endif /* K&R C */
41 #define NLM_SM_VERS4 4
42
43 #if defined(__STDC__) || defined(__cplusplus)
44 extern  void * nlm_sm_notify_4(struct nlm_sm_notify *, CLIENT *);
45 extern  void * nlm_sm_notify_4_svc(struct nlm_sm_notify *, struct svc_req *);
46 extern int nlm_sm_prog_4_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
47
48 #else /* K&R C */
49 extern  void * nlm_sm_notify_4();
50 extern  void * nlm_sm_notify_4_svc();
51 extern int nlm_sm_prog_4_freeresult ();
52 #endif /* K&R C */
53
54 /* the xdr functions */
55
56 #if defined(__STDC__) || defined(__cplusplus)
57 extern  bool_t xdr_nlm_sm_notify (XDR *, nlm_sm_notify*);
58
59 #else /* K&R C */
60 extern bool_t xdr_nlm_sm_notify ();
61
62 #endif /* K&R C */
63
64 #ifdef __cplusplus
65 }
66 #endif
67
68 #endif /* !_NLM_SM_INTER_H_RPCGEN */