Add myself for packaging copyright and some minor tweaks
[deb_libnfs.git] / nsm / libnfs-raw-nsm.h
CommitLineData
f1f22dbf
RRS
1/*
2Copyright (c) 2014, Ronnie Sahlberg
3All rights reserved.
4
5Redistribution and use in source and binary forms, with or without
6modification, are permitted provided that the following conditions are met:
7
81. Redistributions of source code must retain the above copyright notice, this
9 list of conditions and the following disclaimer.
102. Redistributions in binary form must reproduce the above copyright notice,
11 this list of conditions and the following disclaimer in the documentation
12 and/or other materials provided with the distribution.
13
14THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
18ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24
25The views and conclusions contained in the software and documentation are those
26of the authors and should not be interpreted as representing official policies,
27either expressed or implied, of the FreeBSD Project.
28*/
29
ee872606
RRS
30/*
31 * Please do not edit this file.
32 * It was generated using rpcgen.
33 */
34
35#ifndef _NSM_H_RPCGEN
36#define _NSM_H_RPCGEN
37
38
39
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
45#define NSM_MAXSTRLEN 1024
46
47enum nsmstat1 {
48 NSM_STAT_SUCC = 0,
49 NSM_STAT_FAIL = 1,
50};
51typedef enum nsmstat1 nsmstat1;
52
53struct nsm_my_id {
54 char *my_name;
55 int my_prog;
56 int my_vers;
57 int my_proc;
58};
59typedef struct nsm_my_id nsm_my_id;
60
61struct nsm_mon_id {
62 char *mon_name;
63 struct nsm_my_id my_id;
64};
65typedef struct nsm_mon_id nsm_mon_id;
66
67struct NSM1_STATres {
68 nsmstat1 res;
69 int state;
70};
71typedef struct NSM1_STATres NSM1_STATres;
72
73struct NSM1_STATargs {
74 char *mon_name;
75};
76typedef struct NSM1_STATargs NSM1_STATargs;
77
78struct NSM1_MONres {
79 nsmstat1 res;
80 int state;
81};
82typedef struct NSM1_MONres NSM1_MONres;
83
84struct NSM1_MONargs {
85 struct nsm_mon_id mon_id;
86 char priv[16];
87};
88typedef struct NSM1_MONargs NSM1_MONargs;
89
90struct NSM1_UNMONres {
91 int state;
92};
93typedef struct NSM1_UNMONres NSM1_UNMONres;
94
95struct NSM1_UNMONargs {
96 struct nsm_mon_id mon_id;
97};
98typedef struct NSM1_UNMONargs NSM1_UNMONargs;
99
100struct NSM1_UNMONALLres {
101 int state;
102};
103typedef struct NSM1_UNMONALLres NSM1_UNMONALLres;
104
105struct NSM1_UNMONALLargs {
106 struct nsm_my_id my_id;
107};
108typedef struct NSM1_UNMONALLargs NSM1_UNMONALLargs;
109
110struct NSM1_NOTIFYargs {
111 char *mon_name;
112 int state;
113};
114typedef struct NSM1_NOTIFYargs NSM1_NOTIFYargs;
115
116#define NSM_PROGRAM 100024
117#define NSM_V1 1
118
119#if defined(__STDC__) || defined(__cplusplus)
120#define NSM1_NULL 0
121extern void * nsm1_null_1(void *, CLIENT *);
122extern void * nsm1_null_1_svc(void *, struct svc_req *);
123#define NSM1_STAT 1
124extern struct NSM1_STATres * nsm1_stat_1(struct NSM1_STATargs *, CLIENT *);
125extern struct NSM1_STATres * nsm1_stat_1_svc(struct NSM1_STATargs *, struct svc_req *);
126#define NSM1_MON 2
127extern struct NSM1_MONres * nsm1_mon_1(struct NSM1_MONargs *, CLIENT *);
128extern struct NSM1_MONres * nsm1_mon_1_svc(struct NSM1_MONargs *, struct svc_req *);
129#define NSM1_UNMON 3
130extern struct NSM1_UNMONres * nsm1_unmon_1(struct NSM1_UNMONargs *, CLIENT *);
131extern struct NSM1_UNMONres * nsm1_unmon_1_svc(struct NSM1_UNMONargs *, struct svc_req *);
132#define NSM1_UNMON_ALL 4
133extern struct NSM1_UNMONALLres * nsm1_unmon_all_1(struct NSM1_UNMONALLargs *, CLIENT *);
134extern struct NSM1_UNMONALLres * nsm1_unmon_all_1_svc(struct NSM1_UNMONALLargs *, struct svc_req *);
135#define NSM1_SIMU_CRASH 5
136extern void * nsm1_simu_crash_1(void *, CLIENT *);
137extern void * nsm1_simu_crash_1_svc(void *, struct svc_req *);
138#define NSM1_NOTIFY 6
139extern void * nsm1_notify_1(struct NSM1_NOTIFYargs *, CLIENT *);
140extern void * nsm1_notify_1_svc(struct NSM1_NOTIFYargs *, struct svc_req *);
141extern int nsm_program_1_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
142
143#else /* K&R C */
144#define NSM1_NULL 0
145extern void * nsm1_null_1();
146extern void * nsm1_null_1_svc();
147#define NSM1_STAT 1
148extern struct NSM1_STATres * nsm1_stat_1();
149extern struct NSM1_STATres * nsm1_stat_1_svc();
150#define NSM1_MON 2
151extern struct NSM1_MONres * nsm1_mon_1();
152extern struct NSM1_MONres * nsm1_mon_1_svc();
153#define NSM1_UNMON 3
154extern struct NSM1_UNMONres * nsm1_unmon_1();
155extern struct NSM1_UNMONres * nsm1_unmon_1_svc();
156#define NSM1_UNMON_ALL 4
157extern struct NSM1_UNMONALLres * nsm1_unmon_all_1();
158extern struct NSM1_UNMONALLres * nsm1_unmon_all_1_svc();
159#define NSM1_SIMU_CRASH 5
160extern void * nsm1_simu_crash_1();
161extern void * nsm1_simu_crash_1_svc();
162#define NSM1_NOTIFY 6
163extern void * nsm1_notify_1();
164extern void * nsm1_notify_1_svc();
165extern int nsm_program_1_freeresult ();
166#endif /* K&R C */
167
168/* the zdr functions */
169
170#if defined(__STDC__) || defined(__cplusplus)
171extern bool_t zdr_nsmstat1 (ZDR *, nsmstat1*);
172extern bool_t zdr_nsm_my_id (ZDR *, nsm_my_id*);
173extern bool_t zdr_nsm_mon_id (ZDR *, nsm_mon_id*);
174extern bool_t zdr_NSM1_STATres (ZDR *, NSM1_STATres*);
175extern bool_t zdr_NSM1_STATargs (ZDR *, NSM1_STATargs*);
176extern bool_t zdr_NSM1_MONres (ZDR *, NSM1_MONres*);
177extern bool_t zdr_NSM1_MONargs (ZDR *, NSM1_MONargs*);
178extern bool_t zdr_NSM1_UNMONres (ZDR *, NSM1_UNMONres*);
179extern bool_t zdr_NSM1_UNMONargs (ZDR *, NSM1_UNMONargs*);
180extern bool_t zdr_NSM1_UNMONALLres (ZDR *, NSM1_UNMONALLres*);
181extern bool_t zdr_NSM1_UNMONALLargs (ZDR *, NSM1_UNMONALLargs*);
182extern bool_t zdr_NSM1_NOTIFYargs (ZDR *, NSM1_NOTIFYargs*);
183
184#else /* K&R C */
185extern bool_t zdr_nsmstat1 ();
186extern bool_t zdr_nsm_my_id ();
187extern bool_t zdr_nsm_mon_id ();
188extern bool_t zdr_NSM1_STATres ();
189extern bool_t zdr_NSM1_STATargs ();
190extern bool_t zdr_NSM1_MONres ();
191extern bool_t zdr_NSM1_MONargs ();
192extern bool_t zdr_NSM1_UNMONres ();
193extern bool_t zdr_NSM1_UNMONargs ();
194extern bool_t zdr_NSM1_UNMONALLres ();
195extern bool_t zdr_NSM1_UNMONALLargs ();
196extern bool_t zdr_NSM1_NOTIFYargs ();
197
198#endif /* K&R C */
199
200#ifdef __cplusplus
201}
202#endif
203
204#endif /* !_NSM_H_RPCGEN */