Take maintenance for libnfs
[deb_libnfs.git] / nsm / libnfs-raw-nsm.h
CommitLineData
ee872606
RRS
1/*
2 * Please do not edit this file.
3 * It was generated using rpcgen.
4 */
5
6#ifndef _NSM_H_RPCGEN
7#define _NSM_H_RPCGEN
8
9
10
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16#define NSM_MAXSTRLEN 1024
17
18enum nsmstat1 {
19 NSM_STAT_SUCC = 0,
20 NSM_STAT_FAIL = 1,
21};
22typedef enum nsmstat1 nsmstat1;
23
24struct nsm_my_id {
25 char *my_name;
26 int my_prog;
27 int my_vers;
28 int my_proc;
29};
30typedef struct nsm_my_id nsm_my_id;
31
32struct nsm_mon_id {
33 char *mon_name;
34 struct nsm_my_id my_id;
35};
36typedef struct nsm_mon_id nsm_mon_id;
37
38struct NSM1_STATres {
39 nsmstat1 res;
40 int state;
41};
42typedef struct NSM1_STATres NSM1_STATres;
43
44struct NSM1_STATargs {
45 char *mon_name;
46};
47typedef struct NSM1_STATargs NSM1_STATargs;
48
49struct NSM1_MONres {
50 nsmstat1 res;
51 int state;
52};
53typedef struct NSM1_MONres NSM1_MONres;
54
55struct NSM1_MONargs {
56 struct nsm_mon_id mon_id;
57 char priv[16];
58};
59typedef struct NSM1_MONargs NSM1_MONargs;
60
61struct NSM1_UNMONres {
62 int state;
63};
64typedef struct NSM1_UNMONres NSM1_UNMONres;
65
66struct NSM1_UNMONargs {
67 struct nsm_mon_id mon_id;
68};
69typedef struct NSM1_UNMONargs NSM1_UNMONargs;
70
71struct NSM1_UNMONALLres {
72 int state;
73};
74typedef struct NSM1_UNMONALLres NSM1_UNMONALLres;
75
76struct NSM1_UNMONALLargs {
77 struct nsm_my_id my_id;
78};
79typedef struct NSM1_UNMONALLargs NSM1_UNMONALLargs;
80
81struct NSM1_NOTIFYargs {
82 char *mon_name;
83 int state;
84};
85typedef struct NSM1_NOTIFYargs NSM1_NOTIFYargs;
86
87#define NSM_PROGRAM 100024
88#define NSM_V1 1
89
90#if defined(__STDC__) || defined(__cplusplus)
91#define NSM1_NULL 0
92extern void * nsm1_null_1(void *, CLIENT *);
93extern void * nsm1_null_1_svc(void *, struct svc_req *);
94#define NSM1_STAT 1
95extern struct NSM1_STATres * nsm1_stat_1(struct NSM1_STATargs *, CLIENT *);
96extern struct NSM1_STATres * nsm1_stat_1_svc(struct NSM1_STATargs *, struct svc_req *);
97#define NSM1_MON 2
98extern struct NSM1_MONres * nsm1_mon_1(struct NSM1_MONargs *, CLIENT *);
99extern struct NSM1_MONres * nsm1_mon_1_svc(struct NSM1_MONargs *, struct svc_req *);
100#define NSM1_UNMON 3
101extern struct NSM1_UNMONres * nsm1_unmon_1(struct NSM1_UNMONargs *, CLIENT *);
102extern struct NSM1_UNMONres * nsm1_unmon_1_svc(struct NSM1_UNMONargs *, struct svc_req *);
103#define NSM1_UNMON_ALL 4
104extern struct NSM1_UNMONALLres * nsm1_unmon_all_1(struct NSM1_UNMONALLargs *, CLIENT *);
105extern struct NSM1_UNMONALLres * nsm1_unmon_all_1_svc(struct NSM1_UNMONALLargs *, struct svc_req *);
106#define NSM1_SIMU_CRASH 5
107extern void * nsm1_simu_crash_1(void *, CLIENT *);
108extern void * nsm1_simu_crash_1_svc(void *, struct svc_req *);
109#define NSM1_NOTIFY 6
110extern void * nsm1_notify_1(struct NSM1_NOTIFYargs *, CLIENT *);
111extern void * nsm1_notify_1_svc(struct NSM1_NOTIFYargs *, struct svc_req *);
112extern int nsm_program_1_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
113
114#else /* K&R C */
115#define NSM1_NULL 0
116extern void * nsm1_null_1();
117extern void * nsm1_null_1_svc();
118#define NSM1_STAT 1
119extern struct NSM1_STATres * nsm1_stat_1();
120extern struct NSM1_STATres * nsm1_stat_1_svc();
121#define NSM1_MON 2
122extern struct NSM1_MONres * nsm1_mon_1();
123extern struct NSM1_MONres * nsm1_mon_1_svc();
124#define NSM1_UNMON 3
125extern struct NSM1_UNMONres * nsm1_unmon_1();
126extern struct NSM1_UNMONres * nsm1_unmon_1_svc();
127#define NSM1_UNMON_ALL 4
128extern struct NSM1_UNMONALLres * nsm1_unmon_all_1();
129extern struct NSM1_UNMONALLres * nsm1_unmon_all_1_svc();
130#define NSM1_SIMU_CRASH 5
131extern void * nsm1_simu_crash_1();
132extern void * nsm1_simu_crash_1_svc();
133#define NSM1_NOTIFY 6
134extern void * nsm1_notify_1();
135extern void * nsm1_notify_1_svc();
136extern int nsm_program_1_freeresult ();
137#endif /* K&R C */
138
139/* the zdr functions */
140
141#if defined(__STDC__) || defined(__cplusplus)
142extern bool_t zdr_nsmstat1 (ZDR *, nsmstat1*);
143extern bool_t zdr_nsm_my_id (ZDR *, nsm_my_id*);
144extern bool_t zdr_nsm_mon_id (ZDR *, nsm_mon_id*);
145extern bool_t zdr_NSM1_STATres (ZDR *, NSM1_STATres*);
146extern bool_t zdr_NSM1_STATargs (ZDR *, NSM1_STATargs*);
147extern bool_t zdr_NSM1_MONres (ZDR *, NSM1_MONres*);
148extern bool_t zdr_NSM1_MONargs (ZDR *, NSM1_MONargs*);
149extern bool_t zdr_NSM1_UNMONres (ZDR *, NSM1_UNMONres*);
150extern bool_t zdr_NSM1_UNMONargs (ZDR *, NSM1_UNMONargs*);
151extern bool_t zdr_NSM1_UNMONALLres (ZDR *, NSM1_UNMONALLres*);
152extern bool_t zdr_NSM1_UNMONALLargs (ZDR *, NSM1_UNMONALLargs*);
153extern bool_t zdr_NSM1_NOTIFYargs (ZDR *, NSM1_NOTIFYargs*);
154
155#else /* K&R C */
156extern bool_t zdr_nsmstat1 ();
157extern bool_t zdr_nsm_my_id ();
158extern bool_t zdr_nsm_mon_id ();
159extern bool_t zdr_NSM1_STATres ();
160extern bool_t zdr_NSM1_STATargs ();
161extern bool_t zdr_NSM1_MONres ();
162extern bool_t zdr_NSM1_MONargs ();
163extern bool_t zdr_NSM1_UNMONres ();
164extern bool_t zdr_NSM1_UNMONargs ();
165extern bool_t zdr_NSM1_UNMONALLres ();
166extern bool_t zdr_NSM1_UNMONALLargs ();
167extern bool_t zdr_NSM1_NOTIFYargs ();
168
169#endif /* K&R C */
170
171#ifdef __cplusplus
172}
173#endif
174
175#endif /* !_NSM_H_RPCGEN */