ia64/xen-unstable

view tools/xfrd/xdr.h @ 1921:24ecc060e9d7

bitkeeper revision 1.1108.21.1 (41062740xHG36OEbpVAmVX5N9WCaNw)

make vmlinuz really stripped
author cl349@freefall.cl.cam.ac.uk
date Tue Jul 27 09:58:24 2004 +0000 (2004-07-27)
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_ */