| 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 | * Copyright (c) 2010, Oracle America, Inc. |
| 17 | * |
| 18 | * Redistribution and use in source and binary forms, with or without |
| 19 | * modification, are permitted provided that the following conditions are |
| 20 | * met: |
| 21 | * |
| 22 | * * Redistributions of source code must retain the above copyright |
| 23 | * notice, this list of conditions and the following disclaimer. |
| 24 | * * Redistributions in binary form must reproduce the above |
| 25 | * copyright notice, this list of conditions and the following |
| 26 | * disclaimer in the documentation and/or other materials |
| 27 | * provided with the distribution. |
| 28 | * * Neither the name of the "Oracle America, Inc." nor the names of its |
| 29 | * contributors may be used to endorse or promote products derived |
| 30 | * from this software without specific prior written permission. |
| 31 | * |
| 32 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 33 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 34 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 35 | * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
| 36 | * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| 37 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 38 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE |
| 39 | * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 40 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 41 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
| 42 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 43 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 44 | */ |
| 45 | #include <rpcsvc/nis.h> |
| 46 | |
| 47 | typedef nis_object *obj_p; |
| 48 | |
| 49 | struct cback_data { |
| 50 | 	struct { |
| 51 | 		u_int entries_len; |
| 52 | 		obj_p *entries_val; |
| 53 | 	} entries; |
| 54 | }; |
| 55 | typedef struct cback_data cback_data; |
| 56 | |
| 57 | #define	CB_PROG ((unsigned long)(100302)) |
| 58 | #define	CB_VERS ((unsigned long)(1)) |
| 59 | |
| 60 | extern void cb_prog_1(struct svc_req *rqstp, SVCXPRT *transp); |
| 61 | #define	CBPROC_RECEIVE ((unsigned long)(1)) |
| 62 | extern bool_t * cbproc_receive_1(cback_data *, CLIENT *); |
| 63 | extern bool_t * cbproc_receive_1_svc(cback_data *, struct svc_req *); |
| 64 | #define	CBPROC_FINISH ((unsigned long)(2)) |
| 65 | extern void * cbproc_finish_1(void *, CLIENT *); |
| 66 | extern void * cbproc_finish_1_svc(void *, struct svc_req *); |
| 67 | #define	CBPROC_ERROR ((unsigned long)(3)) |
| 68 | extern void * cbproc_error_1(nis_error *, CLIENT *); |
| 69 | extern void * cbproc_error_1_svc(nis_error *, struct svc_req *); |
| 70 | extern int cb_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); |
| 71 | |
| 72 | /* the xdr functions */ |
| 73 | extern bool_t xdr_obj_p(XDR *, obj_p*); |
| 74 | extern bool_t xdr_cback_data(XDR *, cback_data*); |
| 75 | |
| 76 | #ifdef __cplusplus |
| 77 | } |
| 78 | #endif |
| 79 | |
| 80 | #endif /* !_NIS_CALLBACK_H_RPCGEN */ |