u64 dom;
char *state_file;
- int progress = 1;
+ int progress = 1, live = 0;
unsigned int flags = 0;
- static char *kwd_list[] = { "dom", "state_file", "progress", NULL };
+ static char *kwd_list[] = { "dom", "state_file", "progress", "live", NULL };
- if ( !PyArg_ParseTupleAndKeywords(args, kwds, "Ls|i", kwd_list,
- &dom, &state_file, &progress) )
+ if ( !PyArg_ParseTupleAndKeywords(args, kwds, "Ls|ii", kwd_list,
+ &dom, &state_file, &progress, &live) )
return NULL;
- if ( progress )
- flags |= XCFLAGS_VERBOSE;
+ if (progress) flags |= XCFLAGS_VERBOSE;
+ if (live) flags |= XCFLAGS_LIVE;
- if (strncmp(state_file,"tcp:", strlen("tcp:")) == 0)
+ if ( strncmp(state_file,"tcp:", strlen("tcp:")) == 0 )
{
#define max_namelen 64
char server[max_namelen];