xref: /utopia/UTPA2-700.0.x/projects/tools/lint/mips-linux-gnu_include/rpcsvc/bootparam_prot.h (revision 53ee8cc121a030b8d368113ac3e966b4705770ef)
1*53ee8cc1Swenshuai.xi /*
2*53ee8cc1Swenshuai.xi  * Please do not edit this file.
3*53ee8cc1Swenshuai.xi  * It was generated using rpcgen.
4*53ee8cc1Swenshuai.xi  */
5*53ee8cc1Swenshuai.xi 
6*53ee8cc1Swenshuai.xi #ifndef _BOOTPARAM_PROT_H_RPCGEN
7*53ee8cc1Swenshuai.xi #define _BOOTPARAM_PROT_H_RPCGEN
8*53ee8cc1Swenshuai.xi 
9*53ee8cc1Swenshuai.xi #include <rpc/rpc.h>
10*53ee8cc1Swenshuai.xi 
11*53ee8cc1Swenshuai.xi 
12*53ee8cc1Swenshuai.xi #ifdef __cplusplus
13*53ee8cc1Swenshuai.xi extern "C" {
14*53ee8cc1Swenshuai.xi #endif
15*53ee8cc1Swenshuai.xi 
16*53ee8cc1Swenshuai.xi #include <rpc/types.h>
17*53ee8cc1Swenshuai.xi #include <sys/time.h>
18*53ee8cc1Swenshuai.xi #include <sys/errno.h>
19*53ee8cc1Swenshuai.xi #include <nfs/nfs.h>
20*53ee8cc1Swenshuai.xi #define MAX_MACHINE_NAME 255
21*53ee8cc1Swenshuai.xi #define MAX_PATH_LEN 1024
22*53ee8cc1Swenshuai.xi #define MAX_FILEID 32
23*53ee8cc1Swenshuai.xi #define IP_ADDR_TYPE 1
24*53ee8cc1Swenshuai.xi 
25*53ee8cc1Swenshuai.xi typedef char *bp_machine_name_t;
26*53ee8cc1Swenshuai.xi 
27*53ee8cc1Swenshuai.xi typedef char *bp_path_t;
28*53ee8cc1Swenshuai.xi 
29*53ee8cc1Swenshuai.xi typedef char *bp_fileid_t;
30*53ee8cc1Swenshuai.xi 
31*53ee8cc1Swenshuai.xi struct ip_addr_t {
32*53ee8cc1Swenshuai.xi 	char net;
33*53ee8cc1Swenshuai.xi 	char host;
34*53ee8cc1Swenshuai.xi 	char lh;
35*53ee8cc1Swenshuai.xi 	char impno;
36*53ee8cc1Swenshuai.xi };
37*53ee8cc1Swenshuai.xi typedef struct ip_addr_t ip_addr_t;
38*53ee8cc1Swenshuai.xi 
39*53ee8cc1Swenshuai.xi struct bp_address {
40*53ee8cc1Swenshuai.xi 	int address_type;
41*53ee8cc1Swenshuai.xi 	union {
42*53ee8cc1Swenshuai.xi 		ip_addr_t ip_addr;
43*53ee8cc1Swenshuai.xi 	} bp_address_u;
44*53ee8cc1Swenshuai.xi };
45*53ee8cc1Swenshuai.xi typedef struct bp_address bp_address;
46*53ee8cc1Swenshuai.xi 
47*53ee8cc1Swenshuai.xi struct bp_whoami_arg {
48*53ee8cc1Swenshuai.xi 	bp_address client_address;
49*53ee8cc1Swenshuai.xi };
50*53ee8cc1Swenshuai.xi typedef struct bp_whoami_arg bp_whoami_arg;
51*53ee8cc1Swenshuai.xi 
52*53ee8cc1Swenshuai.xi struct bp_whoami_res {
53*53ee8cc1Swenshuai.xi 	bp_machine_name_t client_name;
54*53ee8cc1Swenshuai.xi 	bp_machine_name_t domain_name;
55*53ee8cc1Swenshuai.xi 	bp_address router_address;
56*53ee8cc1Swenshuai.xi };
57*53ee8cc1Swenshuai.xi typedef struct bp_whoami_res bp_whoami_res;
58*53ee8cc1Swenshuai.xi 
59*53ee8cc1Swenshuai.xi struct bp_getfile_arg {
60*53ee8cc1Swenshuai.xi 	bp_machine_name_t client_name;
61*53ee8cc1Swenshuai.xi 	bp_fileid_t file_id;
62*53ee8cc1Swenshuai.xi };
63*53ee8cc1Swenshuai.xi typedef struct bp_getfile_arg bp_getfile_arg;
64*53ee8cc1Swenshuai.xi 
65*53ee8cc1Swenshuai.xi struct bp_getfile_res {
66*53ee8cc1Swenshuai.xi 	bp_machine_name_t server_name;
67*53ee8cc1Swenshuai.xi 	bp_address server_address;
68*53ee8cc1Swenshuai.xi 	bp_path_t server_path;
69*53ee8cc1Swenshuai.xi };
70*53ee8cc1Swenshuai.xi typedef struct bp_getfile_res bp_getfile_res;
71*53ee8cc1Swenshuai.xi 
72*53ee8cc1Swenshuai.xi #define BOOTPARAMPROG 100026
73*53ee8cc1Swenshuai.xi #define BOOTPARAMVERS 1
74*53ee8cc1Swenshuai.xi 
75*53ee8cc1Swenshuai.xi #if defined(__STDC__) || defined(__cplusplus)
76*53ee8cc1Swenshuai.xi #define BOOTPARAMPROC_WHOAMI 1
77*53ee8cc1Swenshuai.xi extern  bp_whoami_res * bootparamproc_whoami_1(bp_whoami_arg *, CLIENT *);
78*53ee8cc1Swenshuai.xi extern  bp_whoami_res * bootparamproc_whoami_1_svc(bp_whoami_arg *, struct svc_req *);
79*53ee8cc1Swenshuai.xi #define BOOTPARAMPROC_GETFILE 2
80*53ee8cc1Swenshuai.xi extern  bp_getfile_res * bootparamproc_getfile_1(bp_getfile_arg *, CLIENT *);
81*53ee8cc1Swenshuai.xi extern  bp_getfile_res * bootparamproc_getfile_1_svc(bp_getfile_arg *, struct svc_req *);
82*53ee8cc1Swenshuai.xi extern int bootparamprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
83*53ee8cc1Swenshuai.xi 
84*53ee8cc1Swenshuai.xi #else /* K&R C */
85*53ee8cc1Swenshuai.xi #define BOOTPARAMPROC_WHOAMI 1
86*53ee8cc1Swenshuai.xi extern  bp_whoami_res * bootparamproc_whoami_1();
87*53ee8cc1Swenshuai.xi extern  bp_whoami_res * bootparamproc_whoami_1_svc();
88*53ee8cc1Swenshuai.xi #define BOOTPARAMPROC_GETFILE 2
89*53ee8cc1Swenshuai.xi extern  bp_getfile_res * bootparamproc_getfile_1();
90*53ee8cc1Swenshuai.xi extern  bp_getfile_res * bootparamproc_getfile_1_svc();
91*53ee8cc1Swenshuai.xi extern int bootparamprog_1_freeresult ();
92*53ee8cc1Swenshuai.xi #endif /* K&R C */
93*53ee8cc1Swenshuai.xi 
94*53ee8cc1Swenshuai.xi /* the xdr functions */
95*53ee8cc1Swenshuai.xi 
96*53ee8cc1Swenshuai.xi #if defined(__STDC__) || defined(__cplusplus)
97*53ee8cc1Swenshuai.xi extern  bool_t xdr_bp_machine_name_t (XDR *, bp_machine_name_t*);
98*53ee8cc1Swenshuai.xi extern  bool_t xdr_bp_path_t (XDR *, bp_path_t*);
99*53ee8cc1Swenshuai.xi extern  bool_t xdr_bp_fileid_t (XDR *, bp_fileid_t*);
100*53ee8cc1Swenshuai.xi extern  bool_t xdr_ip_addr_t (XDR *, ip_addr_t*);
101*53ee8cc1Swenshuai.xi extern  bool_t xdr_bp_address (XDR *, bp_address*);
102*53ee8cc1Swenshuai.xi extern  bool_t xdr_bp_whoami_arg (XDR *, bp_whoami_arg*);
103*53ee8cc1Swenshuai.xi extern  bool_t xdr_bp_whoami_res (XDR *, bp_whoami_res*);
104*53ee8cc1Swenshuai.xi extern  bool_t xdr_bp_getfile_arg (XDR *, bp_getfile_arg*);
105*53ee8cc1Swenshuai.xi extern  bool_t xdr_bp_getfile_res (XDR *, bp_getfile_res*);
106*53ee8cc1Swenshuai.xi 
107*53ee8cc1Swenshuai.xi #else /* K&R C */
108*53ee8cc1Swenshuai.xi extern bool_t xdr_bp_machine_name_t ();
109*53ee8cc1Swenshuai.xi extern bool_t xdr_bp_path_t ();
110*53ee8cc1Swenshuai.xi extern bool_t xdr_bp_fileid_t ();
111*53ee8cc1Swenshuai.xi extern bool_t xdr_ip_addr_t ();
112*53ee8cc1Swenshuai.xi extern bool_t xdr_bp_address ();
113*53ee8cc1Swenshuai.xi extern bool_t xdr_bp_whoami_arg ();
114*53ee8cc1Swenshuai.xi extern bool_t xdr_bp_whoami_res ();
115*53ee8cc1Swenshuai.xi extern bool_t xdr_bp_getfile_arg ();
116*53ee8cc1Swenshuai.xi extern bool_t xdr_bp_getfile_res ();
117*53ee8cc1Swenshuai.xi 
118*53ee8cc1Swenshuai.xi #endif /* K&R C */
119*53ee8cc1Swenshuai.xi 
120*53ee8cc1Swenshuai.xi #ifdef __cplusplus
121*53ee8cc1Swenshuai.xi }
122*53ee8cc1Swenshuai.xi #endif
123*53ee8cc1Swenshuai.xi 
124*53ee8cc1Swenshuai.xi #endif /* !_BOOTPARAM_PROT_H_RPCGEN */
125