Allow incremental access to hypervisor console log.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
Keir Fraser committed 2007-10-29 12:56:27 +00:00
1 parent 70ee40b004
commit ee41f1c835
8 files changed
+113 -49

No files matched your search

+6 -4
View File
@@ -716,17 +716,19 @@ static PyObject *pyxc_readconsolering(XcObject *self,
PyObject *args,
PyObject *kwds)
{
unsigned int clear = 0;
unsigned int clear = 0, index = 0, incremental = 0;
char _str[32768], *str = _str;
unsigned int count = 32768;
int ret;
static char *kwd_list[] = { "clear", NULL };
static char *kwd_list[] = { "clear", "index", "incremental", NULL };
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "|i", kwd_list, &clear) )
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "|iii", kwd_list,
&clear, &index, &incremental) )
return NULL;
ret = xc_readconsolering(self->xc_handle, &str, &count, clear);
ret = xc_readconsolering(self->xc_handle, &str, &count, clear,
incremental, &index);
if ( ret < 0 )
return pyxc_error_to_exception();
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.