/* * rpc_xdr.h * * $Id: rpc_xdr.h,v 1.14 2001/04/16 23:48:18 kirk Exp $ */ /* Copyright (c) 1990-2001, Research Systems Inc. All rights reserved. This software includes information which is proprietary to and a trade secret of Research Systems, Inc. It is not to be disclosed to anyone outside of this organization. Reproduction by any means whatsoever is prohibited without express written permission. */ #ifndef _RPC_IDL_XDR_ #define _RPC_IDL_XDR_ /* * Nothing here yet */ /* On 64-bit systems, use xdr_int() instead of xdr_long() */ #ifdef LONG_NOT_32 #define XDR_LONG xdr_int #define XDR_U_LONG xdr_u_int #else #define XDR_LONG xdr_long #define XDR_U_LONG xdr_u_long #endif bool_t IDL_RPC_xdr_line_s (XDR *xdrs, IDL_RPC_LINE_S *pLine); bool_t IDL_RPC_xdr_variable(XDR *xdrs, IDL_RPC_VARIABLE *pVar); bool_t IDL_RPC_xdr_vptr(XDR *xdrs, IDL_VPTR *pVar); static bool_t IDL_RPC_xdr_array(XDR *xdrsp, IDL_VPTR pVar); #if defined(sgi) || defined(_AIX) || defined(LINUX_X86) || defined(WIN32) || defined(__MACOS__) #define IDL_XDR_FAKE_L64 /* * IEEE machines that lack the 64-bit integer functions. * We emulate them in this module. These XDR types are needed. */ typedef IDL_ULONG64 u_longlong_t; typedef IDL_LONG64 longlong_t; #endif /* * Define the function used to pass IDL strings around. Note: Added * a compile time check to make sure that if IDL string lenght changes * in the future, a compiler error is thrown. */ #if IDL_STRING_MAX_SLEN == 0x7fffffff #define XDR_IDL_SLEN xdr_int #else #error IDL String length has changed. Check the string xdr code in rpc_xdr.c #endif #endif /* _RPC_IDL_XDR_ */