ia64/xen-unstable

view tools/xfrd/xdr.h @ 1820:3d4f8eb89670

bitkeeper revision 1.1106.1.2 (40faa780dekT3E5arFwcbQDu1MbX6g)

Cleaned up Xen's instruction emulator.
author kaf24@scramble.cl.cam.ac.uk
date Sun Jul 18 16:38:24 2004 +0000 (2004-07-18)
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_ */