summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2008-11-19 16:19:36 +0000
committerDaniel P. Berrange <berrange@redhat.com>2008-11-19 16:19:36 +0000
commit16ba89098961d5be83f88a8b0db06c47414e967e (patch)
tree423ba9458b6050ae39d5dcfaddc7ebc16d157981
parent5b5ef1a97d284bbac288ed56e6c79459df3c1200 (diff)
downloadlibvirt-python-v6-16ba89098961d5be83f88a8b0db06c47414e967e.tar.gz
libvirt-python-v6-16ba89098961d5be83f88a8b0db06c47414e967e.tar.xz
libvirt-python-v6-16ba89098961d5be83f88a8b0db06c47414e967e.zip
Change public API for virEventAddHandle to allow multiple registrations per FD
-rw-r--r--libvir.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libvir.c b/libvir.c
index 3888af5..8fb9d60 100644
--- a/libvir.c
+++ b/libvir.c
@@ -1940,15 +1940,15 @@ static PyObject *
libvirt_virEventInvokeHandleCallback(PyObject *self ATTRIBUTE_UNUSED,
PyObject *args)
{
- int fd, event;
+ int watch, fd, event;
PyObject *py_f;
PyObject *py_opaque;
virEventHandleCallback cb;
void *opaque;
if (!PyArg_ParseTuple
- (args, (char *) "iiOO:virEventInvokeHandleCallback",
- &fd, &event, &py_f, &py_opaque
+ (args, (char *) "iiiOO:virEventInvokeHandleCallback",
+ &watch, &fd, &event, &py_f, &py_opaque
))
return VIR_PY_INT_FAIL;
@@ -1956,7 +1956,7 @@ libvirt_virEventInvokeHandleCallback(PyObject *self ATTRIBUTE_UNUSED,
opaque = (void *) PyvirVoidPtr_Get(py_opaque);
if(cb)
- cb (fd, event, opaque);
+ cb (watch, fd, event, opaque);
return VIR_PY_INT_SUCCESS;
}