xref: /freebsd/include/rpcsvc/nis_callback.x (revision 5b31cc94b10d4bb7109c6b27940a0fc76a44a331)
1*8785398fSHiroki Sato %/*-
2*8785398fSHiroki Sato % * Copyright (c) 2010, Oracle America, Inc.
33b0f7467SBill Paul % *
4*8785398fSHiroki Sato % * Redistribution and use in source and binary forms, with or without
5*8785398fSHiroki Sato % * modification, are permitted provided that the following conditions are
6*8785398fSHiroki Sato % * met:
73b0f7467SBill Paul % *
8*8785398fSHiroki Sato % *     * Redistributions of source code must retain the above copyright
9*8785398fSHiroki Sato % *       notice, this list of conditions and the following disclaimer.
10*8785398fSHiroki Sato % *     * Redistributions in binary form must reproduce the above
11*8785398fSHiroki Sato % *       copyright notice, this list of conditions and the following
12*8785398fSHiroki Sato % *       disclaimer in the documentation and/or other materials
13*8785398fSHiroki Sato % *       provided with the distribution.
14*8785398fSHiroki Sato % *     * Neither the name of the "Oracle America, Inc." nor the names of its
15*8785398fSHiroki Sato % *       contributors may be used to endorse or promote products derived
16*8785398fSHiroki Sato % *       from this software without specific prior written permission.
173b0f7467SBill Paul % *
18*8785398fSHiroki Sato % *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19*8785398fSHiroki Sato % *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20*8785398fSHiroki Sato % *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21*8785398fSHiroki Sato % *   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22*8785398fSHiroki Sato % *   COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
23*8785398fSHiroki Sato % *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24*8785398fSHiroki Sato % *   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
25*8785398fSHiroki Sato % *   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26*8785398fSHiroki Sato % *   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27*8785398fSHiroki Sato % *   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28*8785398fSHiroki Sato % *   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29*8785398fSHiroki Sato % *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
303b0f7467SBill Paul % */
313b0f7467SBill Paul 
323b0f7467SBill Paul /*
333b0f7467SBill Paul  *	nis_callback.x
343b0f7467SBill Paul  *
353b0f7467SBill Paul  *	Copyright (c) 1988-1992 Sun Microsystems Inc
363b0f7467SBill Paul  *	All Rights Reserved.
373b0f7467SBill Paul  */
383b0f7467SBill Paul 
393b0f7467SBill Paul /*
403b0f7467SBill Paul  *
413b0f7467SBill Paul  * RPCL description of the Callback Service.
423b0f7467SBill Paul  */
433b0f7467SBill Paul 
443b0f7467SBill Paul #ifdef RPC_HDR
453b0f7467SBill Paul %#include <rpcsvc/nis.h>
463b0f7467SBill Paul #endif
473b0f7467SBill Paul #ifdef RPC_XDR
483b0f7467SBill Paul #ifdef SOLARIS
493b0f7467SBill Paul %#include "nis_clnt.h"
503b0f7467SBill Paul #else
513b0f7467SBill Paul %#include "nis.h"
523b0f7467SBill Paul #endif
533b0f7467SBill Paul #endif
543b0f7467SBill Paul 
553b0f7467SBill Paul typedef nis_object	*obj_p;
563b0f7467SBill Paul 
573b0f7467SBill Paul struct cback_data {
583b0f7467SBill Paul 	obj_p		entries<>;	/* List of objects */
593b0f7467SBill Paul };
603b0f7467SBill Paul 
613b0f7467SBill Paul program CB_PROG {
623b0f7467SBill Paul 	version CB_VERS {
633b0f7467SBill Paul 		bool	CBPROC_RECEIVE(cback_data) = 1;
643b0f7467SBill Paul 		void	CBPROC_FINISH(void) = 2;
653b0f7467SBill Paul 		void	CBPROC_ERROR(nis_error) = 3;
663b0f7467SBill Paul 	} = 1;
673b0f7467SBill Paul } = 100302;
68