xref: /freebsd/include/rpcsvc/nis_callback.x (revision 5b31cc94)
18785398fSHiroki Sato %/*-
28785398fSHiroki Sato % * Copyright (c) 2010, Oracle America, Inc.
33b0f7467SBill Paul % *
48785398fSHiroki Sato % * Redistribution and use in source and binary forms, with or without
58785398fSHiroki Sato % * modification, are permitted provided that the following conditions are
68785398fSHiroki Sato % * met:
73b0f7467SBill Paul % *
88785398fSHiroki Sato % *     * Redistributions of source code must retain the above copyright
98785398fSHiroki Sato % *       notice, this list of conditions and the following disclaimer.
108785398fSHiroki Sato % *     * Redistributions in binary form must reproduce the above
118785398fSHiroki Sato % *       copyright notice, this list of conditions and the following
128785398fSHiroki Sato % *       disclaimer in the documentation and/or other materials
138785398fSHiroki Sato % *       provided with the distribution.
148785398fSHiroki Sato % *     * Neither the name of the "Oracle America, Inc." nor the names of its
158785398fSHiroki Sato % *       contributors may be used to endorse or promote products derived
168785398fSHiroki Sato % *       from this software without specific prior written permission.
173b0f7467SBill Paul % *
188785398fSHiroki Sato % *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
198785398fSHiroki Sato % *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
208785398fSHiroki Sato % *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
218785398fSHiroki Sato % *   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
228785398fSHiroki Sato % *   COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
238785398fSHiroki Sato % *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
248785398fSHiroki Sato % *   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
258785398fSHiroki Sato % *   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
268785398fSHiroki Sato % *   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
278785398fSHiroki Sato % *   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
288785398fSHiroki Sato % *   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
298785398fSHiroki 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