rac_private.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1990,1998 by Sun Microsystems, Inc.
* All rights reserved.
*/
#ifndef _RAC_PRIVATE_H
#define _RAC_PRIVATE_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/netconfig.h>
#include <rpc/rpc.h>
/*
* These defines, and the following structure represent RAC implementation
* details and may not be relied upon in the future.
*/
#define CLRAC_DROP 999 /* drop previous call and destroy RAC handle */
#define CLRAC_POLL 998 /* check status of asynchronous call */
#define CLRAC_RECV 997 /* receive results of a previous rac_send() */
#define CLRAC_SEND 996 /* initiate asynchronous call and return */
struct rac_send_req {
rpcproc_t proc;
xdrproc_t xargs;
void *argsp;
xdrproc_t xresults;
void *resultsp;
struct timeval timeout;
void *handle; /* result of rac_send */
};
#ifndef MIN
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#endif
extern void free_pollinfo(void *);
extern void free_pkt(void *);
extern uint32_t ri_to_xid(void *);
extern int pkt_vc_read(void **, char *, int);
extern void *pkt_vc_poll(int, void **);
extern void xdrrec_resetinput(XDR *);
extern struct netbuf *__rpcb_findaddr(rpcprog_t, rpcvers_t,
const struct netconfig *, const char *, CLIENT **);
#ifdef __cplusplus
}
#endif
#endif /* _RAC_PRIVATE_H */