1272850Shrs%/*-
2272850Shrs% * Copyright (c) 2010, Oracle America, Inc.
326206Swpaul% *
4272850Shrs% * Redistribution and use in source and binary forms, with or without
5272850Shrs% * modification, are permitted provided that the following conditions are
6272850Shrs% * met:
726206Swpaul% *
8272850Shrs% *     * Redistributions of source code must retain the above copyright
9272850Shrs% *       notice, this list of conditions and the following disclaimer.
10272850Shrs% *     * Redistributions in binary form must reproduce the above
11272850Shrs% *       copyright notice, this list of conditions and the following
12272850Shrs% *       disclaimer in the documentation and/or other materials
13272850Shrs% *       provided with the distribution.
14272850Shrs% *     * Neither the name of the "Oracle America, Inc." nor the names of its
15272850Shrs% *       contributors may be used to endorse or promote products derived
16272850Shrs% *       from this software without specific prior written permission.
1726206Swpaul% *
18272850Shrs% *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19272850Shrs% *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20272850Shrs% *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21272850Shrs% *   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22272850Shrs% *   COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
23272850Shrs% *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24272850Shrs% *   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
25272850Shrs% *   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26272850Shrs% *   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27272850Shrs% *   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28272850Shrs% *   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29272850Shrs% *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3026206Swpaul% */
3126206Swpaul
3226206Swpaul/*
3326206Swpaul *	nis_callback.x
3426206Swpaul *
3526206Swpaul *	Copyright (c) 1988-1992 Sun Microsystems Inc
3626206Swpaul *	All Rights Reserved.
3726206Swpaul */
3826206Swpaul
3926206Swpaul/* From: %#pragma ident	"@(#)nis_callback.x	1.7	94/05/03 SMI" */
4026206Swpaul
4126206Swpaul#ifndef RPC_HDR
42114629Sobrien%#include <sys/cdefs.h>
43114629Sobrien%__FBSDID("$FreeBSD$");
4426206Swpaul#endif
4526206Swpaul
4626206Swpaul/*
4726206Swpaul * "@(#)zns_cback.x 1.2 90/09/10 Copyr 1990 Sun Micro"
4826206Swpaul *
4926206Swpaul * RPCL description of the Callback Service.
5026206Swpaul */
5126206Swpaul
5226206Swpaul#ifdef RPC_HDR
5326206Swpaul%#include <rpcsvc/nis.h>
5426206Swpaul#endif
5526206Swpaul#ifdef RPC_XDR
5626206Swpaul#ifdef SOLARIS
5726206Swpaul%#include "nis_clnt.h"
5826206Swpaul#else
5926206Swpaul%#include "nis.h"
6026206Swpaul#endif
6126206Swpaul#endif
6226206Swpaul
6326206Swpaultypedef nis_object	*obj_p;
6426206Swpaul
6526206Swpaulstruct cback_data {
6626206Swpaul	obj_p		entries<>;	/* List of objects */
6726206Swpaul};
6826206Swpaul
6926206Swpaulprogram CB_PROG {
7026206Swpaul	version CB_VERS {
7126206Swpaul		bool	CBPROC_RECEIVE(cback_data) = 1;
7226206Swpaul		void	CBPROC_FINISH(void) = 2;
7326206Swpaul		void	CBPROC_ERROR(nis_error) = 3;
7426206Swpaul	} = 1;
7526206Swpaul} = 100302;
76