diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2008-11-19 16:19:36 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2008-11-19 16:19:36 +0000 |
commit | 16ba89098961d5be83f88a8b0db06c47414e967e (patch) | |
tree | 423ba9458b6050ae39d5dcfaddc7ebc16d157981 | |
parent | 5b5ef1a97d284bbac288ed56e6c79459df3c1200 (diff) | |
download | libvirt-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |