ia64/xen-unstable

view tools/xfrd/xdr.h @ 2422:2274a0386cc9

bitkeeper revision 1.1159.69.5 (4138e882jA1YaR_OfTfNHe_uT4PDIg)

trivial
author iap10@labyrinth.cl.cam.ac.uk
date Fri Sep 03 21:56:18 2004 +0000 (2004-09-03)
parents 0e23f01219c6
children
line source
1 #ifndef _XUTIL_XDR_H_
2 #define _XUTIL_XDR_H_
3 #include "iostream.h"
4 #include "sxpr.h"
6 int pack_type(IOStream *io, unsigned short x);
8 int unpack_type(IOStream *io, unsigned short *x);
10 int pack_bool(IOStream *io, int x);
12 int unpack_bool(IOStream *io, int *x);
14 int pack_uint(IOStream *out, unsigned int x);
16 int unpack_uint(IOStream *in, unsigned int *x);
18 int pack_string(IOStream *out, Sxpr x);
20 int unpack_string(IOStream *in, Sxpr *x);
22 int pack_cons(IOStream *out, Sxpr x);
24 int unpack_cons(IOStream *in, Sxpr *x);
26 int pack_sxpr(IOStream *out, Sxpr x);
28 int unpack_sxpr(IOStream *in, Sxpr *x);
30 #endif /* _XUTIL_XDR_H_ */