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