mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Start of code to talk to migration daemon to do migrate. Initial checkin of the migration daemon, xfrd.
31 lines
628 B
C
31 lines
628 B
C
#ifndef _XUTIL_XDR_H_
|
|
#define _XUTIL_XDR_H_
|
|
#include "iostream.h"
|
|
#include "sxpr.h"
|
|
|
|
int pack_type(IOStream *io, unsigned short x);
|
|
|
|
int unpack_type(IOStream *io, unsigned short *x);
|
|
|
|
int pack_bool(IOStream *io, int x);
|
|
|
|
int unpack_bool(IOStream *io, int *x);
|
|
|
|
int pack_uint(IOStream *out, unsigned int x);
|
|
|
|
int unpack_uint(IOStream *in, unsigned int *x);
|
|
|
|
int pack_string(IOStream *out, Sxpr x);
|
|
|
|
int unpack_string(IOStream *in, Sxpr *x);
|
|
|
|
int pack_cons(IOStream *out, Sxpr x);
|
|
|
|
int unpack_cons(IOStream *in, Sxpr *x);
|
|
|
|
int pack_sxpr(IOStream *out, Sxpr x);
|
|
|
|
int unpack_sxpr(IOStream *in, Sxpr *x);
|
|
|
|
#endif /* _XUTIL_XDR_H_ */
|