ia64/xen-unstable
changeset 6038:8727c784c07d
The C interface no longer has a priority arg, but the python interface
still takes one (and just doesn't use it). Noone uses it anyway, so
nothing should break by taking it away.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
still takes one (and just doesn't use it). Noone uses it anyway, so
nothing should break by taking it away.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Fri Aug 05 09:02:58 2005 +0000 (2005-08-05) |
parents | 78a2f9cbd5b3 |
children | 9faafa21bf98 |
files | tools/python/xen/lowlevel/xs/xs.c |
line diff
1.1 --- a/tools/python/xen/lowlevel/xs/xs.c Fri Aug 05 09:02:09 2005 +0000 1.2 +++ b/tools/python/xen/lowlevel/xs/xs.c Fri Aug 05 09:02:58 2005 +0000 1.3 @@ -343,7 +343,6 @@ static PyObject *xspy_set_permissions(Py 1.4 #define xspy_watch_doc "\n" \ 1.5 "Watch a path, get notifications when it changes.\n" \ 1.6 " path [string] : xenstore path.\n" \ 1.7 - " priority [int] : watch priority (default 0).\n" \ 1.8 " token [string] : returned in watch notification.\n" \ 1.9 "\n" \ 1.10 "Returns: [int] 0 on success.\n" \ 1.11 @@ -352,10 +351,9 @@ static PyObject *xspy_set_permissions(Py 1.12 1.13 static PyObject *xspy_watch(PyObject *self, PyObject *args, PyObject *kwds) 1.14 { 1.15 - static char *kwd_spec[] = { "path", "priority", "token", NULL }; 1.16 + static char *kwd_spec[] = { "path", "token", NULL }; 1.17 static char *arg_spec = "s|is"; 1.18 char *path = NULL; 1.19 - int priority = 0; 1.20 char *token = ""; 1.21 1.22 struct xs_handle *xh = xshandle(self); 1.23 @@ -365,7 +363,7 @@ static PyObject *xspy_watch(PyObject *se 1.24 if (!xh) 1.25 goto exit; 1.26 if (!PyArg_ParseTupleAndKeywords(args, kwds, arg_spec, kwd_spec, 1.27 - &path, &priority, &token)) 1.28 + &path, &token)) 1.29 goto exit; 1.30 xsval = xs_watch(xh, path, token); 1.31 val = pyvalue_int(xsval);