[droid] Support building for android
[deb_libnfs.git] / nlm / libnfs-raw-nlm.h
CommitLineData
763cd6e3
RS
1/*
2 * Please do not edit this file.
3 * It was generated using rpcgen.
4 */
5
6#ifndef _NLM_H_RPCGEN
7#define _NLM_H_RPCGEN
8
9
10
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
252aa90d
CF
16#if defined(ANDROID)
17typedef long long int quad_t;
18typedef long long unsigned u_quad_t;
19#endif
763cd6e3
RS
20
21struct nlm_fh4 {
22 struct {
23 u_int data_len;
24 char *data_val;
25 } data;
26};
27typedef struct nlm_fh4 nlm_fh4;
28
29typedef char *nlm4_oh;
30
31struct nlm_cookie {
32 struct {
33 u_int data_len;
34 char *data_val;
35 } data;
36};
37typedef struct nlm_cookie nlm_cookie;
38
39enum nlmstat4 {
40 NLM4_GRANTED = 0,
41 NLM4_DENIED = 1,
42 NLM4_DENIED_NOLOCKS = 2,
43 NLM4_BLOCKED = 3,
44 NLM4_DENIED_GRACE_PERIOD = 4,
45 NLM4_DEADLCK = 5,
46 NLM4_ROFS = 6,
47 NLM4_STALE_FH = 7,
48 NLM4_FBIG = 8,
49 NLM4_FAILED = 9,
50};
51typedef enum nlmstat4 nlmstat4;
52
53struct nlm4_holder {
54 bool_t exclusive;
55 u_int svid;
56 nlm4_oh oh;
57 u_quad_t l_offset;
58 u_quad_t l_len;
59};
60typedef struct nlm4_holder nlm4_holder;
61#define NLM_MAXNAME 256
62
63struct nlm4_lock {
64 char *caller_name;
65 struct nlm_fh4 fh;
66 nlm4_oh oh;
67 u_int svid;
68 u_quad_t l_offset;
69 u_quad_t l_len;
70};
71typedef struct nlm4_lock nlm4_lock;
72
73struct nlm4_share {
74 char *caller_name;
75 struct nlm_fh4 fh;
76 nlm4_oh oh;
77 u_int mode;
78 u_int access;
79};
80typedef struct nlm4_share nlm4_share;
81
82struct nlm4_testres_denied {
83 nlm4_holder holder;
84};
85typedef struct nlm4_testres_denied nlm4_testres_denied;
86
87struct nlm4_testreply {
88 nlmstat4 status;
89 union {
90 nlm4_testres_denied lock;
91 } nlm4_testreply_u;
92};
93typedef struct nlm4_testreply nlm4_testreply;
94
95struct NLM4_TESTres {
96 nlm_cookie cookie;
97 nlm4_testreply reply;
98};
99typedef struct NLM4_TESTres NLM4_TESTres;
100
101struct NLM4_TESTargs {
102 nlm_cookie cookie;
103 bool_t exclusive;
104 nlm4_lock lock;
105};
106typedef struct NLM4_TESTargs NLM4_TESTargs;
107
108struct NLM4_CANCres {
109 nlm_cookie cookie;
110 nlmstat4 status;
111};
112typedef struct NLM4_CANCres NLM4_CANCres;
113
114struct NLM4_CANCargs {
115 nlm_cookie cookie;
116 bool_t block;
117 bool_t exclusive;
118 nlm4_lock lock;
119};
120typedef struct NLM4_CANCargs NLM4_CANCargs;
121
122struct NLM4_UNLOCKres {
123 nlm_cookie cookie;
124 nlmstat4 status;
125};
126typedef struct NLM4_UNLOCKres NLM4_UNLOCKres;
127
128struct NLM4_UNLOCKargs {
129 nlm_cookie cookie;
130 nlm4_lock lock;
131};
132typedef struct NLM4_UNLOCKargs NLM4_UNLOCKargs;
133
134struct NLM4_LOCKres {
135 nlm_cookie cookie;
136 nlmstat4 status;
137};
138typedef struct NLM4_LOCKres NLM4_LOCKres;
139
140struct NLM4_LOCKargs {
141 nlm_cookie cookie;
142 bool_t block;
143 bool_t exclusive;
144 nlm4_lock lock;
145 bool_t reclaim;
146 int state;
147};
148typedef struct NLM4_LOCKargs NLM4_LOCKargs;
149
150struct NLM4_GRANTEDargs {
151 nlm_cookie cookie;
152 bool_t exclusive;
153 nlm4_lock lock;
154};
155typedef struct NLM4_GRANTEDargs NLM4_GRANTEDargs;
156
157struct NLM4_GRANTEDres {
158 nlm_cookie cookie;
159 nlmstat4 status;
160};
161typedef struct NLM4_GRANTEDres NLM4_GRANTEDres;
162
163#define NLM_PROGRAM 100021
164#define NLM_V4 4
165
166#if defined(__STDC__) || defined(__cplusplus)
167#define NLM4_NULL 0
168extern void * nlm4_null_4(void *, CLIENT *);
169extern void * nlm4_null_4_svc(void *, struct svc_req *);
170#define NLM4_TEST 1
171extern NLM4_TESTres * nlm4_test_4(NLM4_TESTargs *, CLIENT *);
172extern NLM4_TESTres * nlm4_test_4_svc(NLM4_TESTargs *, struct svc_req *);
173#define NLM4_LOCK 2
174extern NLM4_LOCKres * nlm4_lock_4(NLM4_LOCKargs *, CLIENT *);
175extern NLM4_LOCKres * nlm4_lock_4_svc(NLM4_LOCKargs *, struct svc_req *);
176#define NLM4_CANCEL 3
177extern NLM4_CANCres * nlm4_cancel_4(NLM4_CANCargs *, CLIENT *);
178extern NLM4_CANCres * nlm4_cancel_4_svc(NLM4_CANCargs *, struct svc_req *);
179#define NLM4_UNLOCK 4
180extern NLM4_UNLOCKres * nlm4_unlock_4(NLM4_UNLOCKargs *, CLIENT *);
181extern NLM4_UNLOCKres * nlm4_unlock_4_svc(NLM4_UNLOCKargs *, struct svc_req *);
182#define NLM4_GRANT 5
183extern NLM4_GRANTEDres * nlm4_grant_4(NLM4_GRANTEDargs *, CLIENT *);
184extern NLM4_GRANTEDres * nlm4_grant_4_svc(NLM4_GRANTEDargs *, struct svc_req *);
185#define NLM4_TEST_MSG 6
186extern void * nlm4_test_msg_4(NLM4_TESTargs *, CLIENT *);
187extern void * nlm4_test_msg_4_svc(NLM4_TESTargs *, struct svc_req *);
188#define NLM4_LOCK_MSG 7
189extern void * nlm4_lock_msg_4(NLM4_LOCKargs *, CLIENT *);
190extern void * nlm4_lock_msg_4_svc(NLM4_LOCKargs *, struct svc_req *);
191#define NLM4_CANCEL_MSG 8
192extern void * nlm4_cancel_msg_4(NLM4_CANCargs *, CLIENT *);
193extern void * nlm4_cancel_msg_4_svc(NLM4_CANCargs *, struct svc_req *);
194#define NLM4_UNLOCK_MSG 9
195extern void * nlm4_unlock_msg_4(NLM4_UNLOCKargs *, CLIENT *);
196extern void * nlm4_unlock_msg_4_svc(NLM4_UNLOCKargs *, struct svc_req *);
197#define NLM4_GRANT_MSG 10
198extern void * nlm4_grant_msg_4(NLM4_GRANTEDargs *, CLIENT *);
199extern void * nlm4_grant_msg_4_svc(NLM4_GRANTEDargs *, struct svc_req *);
200#define NLM4_TEST_RES 11
201extern void * nlm4_test_res_4(NLM4_TESTres *, CLIENT *);
202extern void * nlm4_test_res_4_svc(NLM4_TESTres *, struct svc_req *);
203#define NLM4_LOCK_RES 12
204extern void * nlm4_lock_res_4(NLM4_LOCKres *, CLIENT *);
205extern void * nlm4_lock_res_4_svc(NLM4_LOCKres *, struct svc_req *);
206#define NLM4_CANCEL_RES 13
207extern void * nlm4_cancel_res_4(NLM4_CANCres *, CLIENT *);
208extern void * nlm4_cancel_res_4_svc(NLM4_CANCres *, struct svc_req *);
209#define NLM4_UNLOCK_RES 14
210extern void * nlm4_unlock_res_4(NLM4_UNLOCKres *, CLIENT *);
211extern void * nlm4_unlock_res_4_svc(NLM4_UNLOCKres *, struct svc_req *);
212#define NLM4_GRANT_RES 15
213extern void * nlm4_grant_res_4(NLM4_GRANTEDres *, CLIENT *);
214extern void * nlm4_grant_res_4_svc(NLM4_GRANTEDres *, struct svc_req *);
215extern int nlm_program_4_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
216
217#else /* K&R C */
218#define NLM4_NULL 0
219extern void * nlm4_null_4();
220extern void * nlm4_null_4_svc();
221#define NLM4_TEST 1
222extern NLM4_TESTres * nlm4_test_4();
223extern NLM4_TESTres * nlm4_test_4_svc();
224#define NLM4_LOCK 2
225extern NLM4_LOCKres * nlm4_lock_4();
226extern NLM4_LOCKres * nlm4_lock_4_svc();
227#define NLM4_CANCEL 3
228extern NLM4_CANCres * nlm4_cancel_4();
229extern NLM4_CANCres * nlm4_cancel_4_svc();
230#define NLM4_UNLOCK 4
231extern NLM4_UNLOCKres * nlm4_unlock_4();
232extern NLM4_UNLOCKres * nlm4_unlock_4_svc();
233#define NLM4_GRANT 5
234extern NLM4_GRANTEDres * nlm4_grant_4();
235extern NLM4_GRANTEDres * nlm4_grant_4_svc();
236#define NLM4_TEST_MSG 6
237extern void * nlm4_test_msg_4();
238extern void * nlm4_test_msg_4_svc();
239#define NLM4_LOCK_MSG 7
240extern void * nlm4_lock_msg_4();
241extern void * nlm4_lock_msg_4_svc();
242#define NLM4_CANCEL_MSG 8
243extern void * nlm4_cancel_msg_4();
244extern void * nlm4_cancel_msg_4_svc();
245#define NLM4_UNLOCK_MSG 9
246extern void * nlm4_unlock_msg_4();
247extern void * nlm4_unlock_msg_4_svc();
248#define NLM4_GRANT_MSG 10
249extern void * nlm4_grant_msg_4();
250extern void * nlm4_grant_msg_4_svc();
251#define NLM4_TEST_RES 11
252extern void * nlm4_test_res_4();
253extern void * nlm4_test_res_4_svc();
254#define NLM4_LOCK_RES 12
255extern void * nlm4_lock_res_4();
256extern void * nlm4_lock_res_4_svc();
257#define NLM4_CANCEL_RES 13
258extern void * nlm4_cancel_res_4();
259extern void * nlm4_cancel_res_4_svc();
260#define NLM4_UNLOCK_RES 14
261extern void * nlm4_unlock_res_4();
262extern void * nlm4_unlock_res_4_svc();
263#define NLM4_GRANT_RES 15
264extern void * nlm4_grant_res_4();
265extern void * nlm4_grant_res_4_svc();
266extern int nlm_program_4_freeresult ();
267#endif /* K&R C */
268
269/* the zdr functions */
270
271#if defined(__STDC__) || defined(__cplusplus)
272extern bool_t zdr_nlm_fh4 (ZDR *, nlm_fh4*);
273extern bool_t zdr_nlm4_oh (ZDR *, nlm4_oh*);
274extern bool_t zdr_nlm_cookie (ZDR *, nlm_cookie*);
275extern bool_t zdr_nlmstat4 (ZDR *, nlmstat4*);
276extern bool_t zdr_nlm4_holder (ZDR *, nlm4_holder*);
277extern bool_t zdr_nlm4_lock (ZDR *, nlm4_lock*);
278extern bool_t zdr_nlm4_share (ZDR *, nlm4_share*);
279extern bool_t zdr_nlm4_testres_denied (ZDR *, nlm4_testres_denied*);
280extern bool_t zdr_nlm4_testreply (ZDR *, nlm4_testreply*);
281extern bool_t zdr_NLM4_TESTres (ZDR *, NLM4_TESTres*);
282extern bool_t zdr_NLM4_TESTargs (ZDR *, NLM4_TESTargs*);
283extern bool_t zdr_NLM4_CANCres (ZDR *, NLM4_CANCres*);
284extern bool_t zdr_NLM4_CANCargs (ZDR *, NLM4_CANCargs*);
285extern bool_t zdr_NLM4_UNLOCKres (ZDR *, NLM4_UNLOCKres*);
286extern bool_t zdr_NLM4_UNLOCKargs (ZDR *, NLM4_UNLOCKargs*);
287extern bool_t zdr_NLM4_LOCKres (ZDR *, NLM4_LOCKres*);
288extern bool_t zdr_NLM4_LOCKargs (ZDR *, NLM4_LOCKargs*);
289extern bool_t zdr_NLM4_GRANTEDargs (ZDR *, NLM4_GRANTEDargs*);
290extern bool_t zdr_NLM4_GRANTEDres (ZDR *, NLM4_GRANTEDres*);
291
292#else /* K&R C */
293extern bool_t zdr_nlm_fh4 ();
294extern bool_t zdr_nlm4_oh ();
295extern bool_t zdr_nlm_cookie ();
296extern bool_t zdr_nlmstat4 ();
297extern bool_t zdr_nlm4_holder ();
298extern bool_t zdr_nlm4_lock ();
299extern bool_t zdr_nlm4_share ();
300extern bool_t zdr_nlm4_testres_denied ();
301extern bool_t zdr_nlm4_testreply ();
302extern bool_t zdr_NLM4_TESTres ();
303extern bool_t zdr_NLM4_TESTargs ();
304extern bool_t zdr_NLM4_CANCres ();
305extern bool_t zdr_NLM4_CANCargs ();
306extern bool_t zdr_NLM4_UNLOCKres ();
307extern bool_t zdr_NLM4_UNLOCKargs ();
308extern bool_t zdr_NLM4_LOCKres ();
309extern bool_t zdr_NLM4_LOCKargs ();
310extern bool_t zdr_NLM4_GRANTEDargs ();
311extern bool_t zdr_NLM4_GRANTEDres ();
312
313#endif /* K&R C */
314
315#ifdef __cplusplus
316}
317#endif
318
319#endif /* !_NLM_H_RPCGEN */