libkvm - Update for new dumps & minidumps
[dragonfly.git] / include / rpcsvc / ypupdate_prot.h
1 /*
2  * Please do not edit this file.
3  * It was generated using rpcgen.
4  */
5
6 #ifndef _YPUPDATE_PROT_H_RPCGEN
7 #define _YPUPDATE_PROT_H_RPCGEN
8
9 #include <rpc/rpc.h>
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 /*
16  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
17  * unrestricted use provided that this legend is included on all tape
18  * media and as a part of the software program in whole or part.  Users
19  * may copy or modify Sun RPC without charge, but are not authorized
20  * to license or distribute it to anyone else except as part of a product or
21  * program developed by the user or with the express written consent of
22  * Sun Microsystems, Inc.
23  *
24  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
25  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
26  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
27  *
28  * Sun RPC is provided with no support and without any obligation on the
29  * part of Sun Microsystems, Inc. to assist in its use, correction,
30  * modification or enhancement.
31  *
32  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
33  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
34  * OR ANY PART THEREOF.
35  *
36  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
37  * or profits or other special, indirect and consequential damages, even if
38  * Sun has been advised of the possibility of such damages.
39  *
40  * Sun Microsystems, Inc.
41  * 2550 Garcia Avenue
42  * Mountain View, California  94043
43  *
44  * from @(#)ypupdate_prot.x     1.3 91/03/11 TIRPC 1.0
45  * $FreeBSD: src/include/rpcsvc/ypupdate_prot.x,v 1.3 1999/08/27 23:45:13 peter Exp $
46  * $DragonFly: src/include/rpcsvc/ypupdate_prot.x,v 1.2 2003/06/17 04:25:58 dillon Exp $
47  */
48 /*
49  * Copyright (c) 1986, 1990 by Sun Microsystems, Inc.
50  */
51
52 /*
53  * Compiled from ypupdate_prot.x using rpcgen
54  * This is NOT source code!
55  * DO NOT EDIT THIS FILE!
56  */
57
58 #ifndef _rpcsvc_ypupdate_prot_h
59 #define _rpcsvc_ypupdate_prot_h
60
61 #define MAXMAPNAMELEN 255
62 #define MAXYPDATALEN 1023
63 #define MAXERRMSGLEN 255
64
65 typedef struct {
66         u_int yp_buf_len;
67         char *yp_buf_val;
68 } yp_buf;
69
70 struct ypupdate_args {
71         char *mapname;
72         yp_buf key;
73         yp_buf datum;
74 };
75 typedef struct ypupdate_args ypupdate_args;
76
77 struct ypdelete_args {
78         char *mapname;
79         yp_buf key;
80 };
81 typedef struct ypdelete_args ypdelete_args;
82
83 #endif /* !_rpcsvc_ypupdate_prot_h */
84
85 #define YPU_PROG ((unsigned long)(100028))
86 #define YPU_VERS ((unsigned long)(1))
87
88 extern  void ypu_prog_1(struct svc_req *rqstp, SVCXPRT *transp);
89 #define YPU_CHANGE ((unsigned long)(1))
90 extern  u_int * ypu_change_1(ypupdate_args *, CLIENT *);
91 extern  u_int * ypu_change_1_svc(ypupdate_args *, struct svc_req *);
92 #define YPU_INSERT ((unsigned long)(2))
93 extern  u_int * ypu_insert_1(ypupdate_args *, CLIENT *);
94 extern  u_int * ypu_insert_1_svc(ypupdate_args *, struct svc_req *);
95 #define YPU_DELETE ((unsigned long)(3))
96 extern  u_int * ypu_delete_1(ypdelete_args *, CLIENT *);
97 extern  u_int * ypu_delete_1_svc(ypdelete_args *, struct svc_req *);
98 #define YPU_STORE ((unsigned long)(4))
99 extern  u_int * ypu_store_1(ypupdate_args *, CLIENT *);
100 extern  u_int * ypu_store_1_svc(ypupdate_args *, struct svc_req *);
101 extern int ypu_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
102
103 /* the xdr functions */
104 extern  bool_t xdr_yp_buf(XDR *, yp_buf*);
105 extern  bool_t xdr_ypupdate_args(XDR *, ypupdate_args*);
106 extern  bool_t xdr_ypdelete_args(XDR *, ypdelete_args*);
107
108 #ifdef __cplusplus
109 }
110 #endif
111
112 #endif /* !_YPUPDATE_PROT_H_RPCGEN */