libkvm - Update for new dumps & minidumps
[dragonfly.git] / include / rpcsvc / bootparam_prot.h
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 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 #include <rpc/types.h>
16 #include <sys/time.h>
17 #include <sys/errno.h>
18 #include <sys/param.h>
19 #include <sys/syslimits.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 ((unsigned long)(100026))
73 #define BOOTPARAMVERS ((unsigned long)(1))
74
75 extern  void bootparamprog_1(struct svc_req *rqstp, SVCXPRT *transp);
76 #define BOOTPARAMPROC_WHOAMI ((unsigned long)(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 ((unsigned long)(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 /* the xdr functions */
85 extern  bool_t xdr_bp_machine_name_t(XDR *, bp_machine_name_t*);
86 extern  bool_t xdr_bp_path_t(XDR *, bp_path_t*);
87 extern  bool_t xdr_bp_fileid_t(XDR *, bp_fileid_t*);
88 extern  bool_t xdr_ip_addr_t(XDR *, ip_addr_t*);
89 extern  bool_t xdr_bp_address(XDR *, bp_address*);
90 extern  bool_t xdr_bp_whoami_arg(XDR *, bp_whoami_arg*);
91 extern  bool_t xdr_bp_whoami_res(XDR *, bp_whoami_res*);
92 extern  bool_t xdr_bp_getfile_arg(XDR *, bp_getfile_arg*);
93 extern  bool_t xdr_bp_getfile_res(XDR *, bp_getfile_res*);
94
95 #ifdef __cplusplus
96 }
97 #endif
98
99 #endif /* !_BOOTPARAM_PROT_H_RPCGEN */