8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-31 06:43:02 +01:00
firebird-mirror/src/common/xdr_proto.h

54 lines
1.9 KiB
C
Raw Normal View History

2001-05-23 15:26:42 +02:00
/*
2008-12-05 01:56:15 +01:00
* PROGRAM: JRD Remote Server
2001-05-23 15:26:42 +02:00
* MODULE: xdr_proto.h
* DESCRIPTION: Prototype Header file for xdr.cpp
2001-05-23 15:26:42 +02:00
*
* The contents of this file are subject to the Interbase Public
* License Version 1.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy
* of the License at http://www.Inprise.com/IPL.html
*
* Software distributed under the License is distributed on an
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
* or implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code was created by Inprise Corporation
* and its predecessors. Portions created by Inprise Corporation are
* Copyright (C) Inprise Corporation.
*
* All Rights Reserved.
* Contributor(s): ______________________________________.
*/
#ifndef REMOTE_XDR_PROTO_H
#define REMOTE_XDR_PROTO_H
2010-10-12 10:02:57 +02:00
#include "../common/xdr.h"
2001-12-24 03:51:06 +01:00
// 15 Jan 2003. Nickolay Samofatov
2007-04-01 04:04:58 +02:00
// Functions below need to have C++ linkage to avoid name clash with
// standard XDR. Firebird XDR is NOT compatible with Sun XDR at interface level
2001-05-23 15:26:42 +02:00
bool_t xdr_bool (XDR *, int *);
2004-02-02 12:02:12 +01:00
bool_t xdr_bytes (XDR *, SCHAR**, u_int *, u_int);
bool_t xdr_double (XDR *, double *);
2009-01-16 10:55:38 +01:00
bool_t xdr_enum (XDR *, xdr_op *);
bool_t xdr_float (XDR *, float *);
bool_t xdr_free (xdrproc_t proc, SCHAR *objp);
bool_t xdr_int (XDR *, int *);
bool_t xdr_long (XDR *, SLONG *);
2009-01-16 10:55:38 +01:00
bool_t xdrmem_create (XDR *, SCHAR *, u_int, xdr_op);
bool_t xdr_opaque (XDR *, SCHAR *, u_int);
bool_t xdr_short (XDR *, SSHORT *);
2004-02-02 12:02:12 +01:00
bool_t xdr_string (XDR *, SCHAR**, u_int);
bool_t xdr_u_int (XDR *, u_int *);
bool_t xdr_u_long (XDR *, ULONG *);
bool_t xdr_u_short (XDR *, u_short *);
2009-01-16 10:55:38 +01:00
int xdr_union (XDR *, xdr_op *, SCHAR *, struct xdr_discrim *, xdrproc_t);
bool_t xdr_wrapstring (XDR *, SCHAR **);
bool_t xdr_hyper(XDR *, void *);
SLONG getOperation(const void* data, size_t size);
2009-08-15 13:46:48 +02:00
#endif // REMOTE_XDR_PROTO_H