libkvm - Update for new dumps & minidumps
[dragonfly.git] / include / rpcsvc / nis_callback.h
1 /*
2  * Please do not edit this file.
3  * It was generated using rpcgen.
4  */
5
6 #ifndef _NIS_CALLBACK_H_RPCGEN
7 #define _NIS_CALLBACK_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  * @(#)nis_callback.x   1.7     94/05/03 SMI
45  * $FreeBSD: src/include/rpcsvc/nis_callback.x,v 1.3 1999/08/27 23:45:09 peter Exp $
46  * $DragonFly: src/include/rpcsvc/nis_callback.x,v 1.2 2003/06/17 04:25:58 dillon Exp $
47  */
48 #include <rpcsvc/nis.h>
49
50 typedef nis_object *obj_p;
51
52 struct cback_data {
53         struct {
54                 u_int entries_len;
55                 obj_p *entries_val;
56         } entries;
57 };
58 typedef struct cback_data cback_data;
59
60 #define CB_PROG ((unsigned long)(100302))
61 #define CB_VERS ((unsigned long)(1))
62
63 extern  void cb_prog_1(struct svc_req *rqstp, SVCXPRT *transp);
64 #define CBPROC_RECEIVE ((unsigned long)(1))
65 extern  bool_t * cbproc_receive_1(cback_data *, CLIENT *);
66 extern  bool_t * cbproc_receive_1_svc(cback_data *, struct svc_req *);
67 #define CBPROC_FINISH ((unsigned long)(2))
68 extern  void * cbproc_finish_1(void *, CLIENT *);
69 extern  void * cbproc_finish_1_svc(void *, struct svc_req *);
70 #define CBPROC_ERROR ((unsigned long)(3))
71 extern  void * cbproc_error_1(nis_error *, CLIENT *);
72 extern  void * cbproc_error_1_svc(nis_error *, struct svc_req *);
73 extern int cb_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
74
75 /* the xdr functions */
76 extern  bool_t xdr_obj_p(XDR *, obj_p*);
77 extern  bool_t xdr_cback_data(XDR *, cback_data*);
78
79 #ifdef __cplusplus
80 }
81 #endif
82
83 #endif /* !_NIS_CALLBACK_H_RPCGEN */