Index: src/virsh.c =================================================================== RCS file: /data/cvs/libvirt/src/virsh.c,v retrieving revision 1.76 diff -u -p -r1.76 virsh.c --- src/virsh.c 23 May 2007 15:09:19 -0000 1.76 +++ src/virsh.c 29 May 2007 06:34:40 -0000 @@ -235,6 +235,9 @@ static void *_vshMalloc(vshControl * ctl static void *_vshCalloc(vshControl * ctl, size_t nmemb, size_t sz, const char *filename, int line); #define vshCalloc(_ctl, _nmemb, _sz) _vshCalloc(_ctl, _nmemb, _sz, __FILE__, __LINE__) +static void *_vshRealloc(vshControl * ctl, void *ptr, size_t sz, const char *filename, int line); +#define vshRealloc(_ctl, _ptr, _sz) _vshRealloc(_ctl, _ptr, _sz, __FILE__, __LINE__) + static char *_vshStrdup(vshControl * ctl, const char *s, const char *filename, int line); #define vshStrdup(_ctl, _s) _vshStrdup(_ctl, _s, __FILE__, __LINE__) @@ -2541,6 +2544,521 @@ cmdDetachDevice(vshControl * ctl, vshCmd /* + * "attach-interface" command + */ +static vshCmdInfo info_attach_interface[] = { + {"syntax", "attach-interface [--target ] [--mac ] [--script