Fix domain events callback type (John Levon)

This commit is contained in:
Daniel P. Berrange 2008-12-17 21:48:20 +00:00
parent bd31fa766a
commit b5259e7e11
5 changed files with 16 additions and 9 deletions

View File

@ -1,3 +1,10 @@
Wed Dec 17 21:45:39 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
Use correct type for domain events callbacks args (John Levon)
* src/driver.h, src/qemu_driver.c, src/remote_internal.c,
src/xen_unified.c: s/void */virConnectDomainEventCallback/
for domain events callbacks
Wed Dec 17 21:41:39 GMT 2008 Daniel P. Berrange <berrange@redhat.com> Wed Dec 17 21:41:39 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
* src/libvirt_sym.version.in: Remove non-existant symbols * src/libvirt_sym.version.in: Remove non-existant symbols

View File

@ -282,14 +282,14 @@ typedef unsigned long long
typedef int typedef int
(*virDrvDomainEventRegister) (*virDrvDomainEventRegister)
(virConnectPtr conn, (virConnectPtr conn,
void *callback, virConnectDomainEventCallback cb,
void *opaque, void *opaque,
virFreeCallback freecb); virFreeCallback freecb);
typedef int typedef int
(*virDrvDomainEventDeregister) (*virDrvDomainEventDeregister)
(virConnectPtr conn, (virConnectPtr conn,
void *callback); virConnectDomainEventCallback cb);
typedef int typedef int
(*virDrvDomainMigratePrepare2) (*virDrvDomainMigratePrepare2)

View File

@ -3767,7 +3767,7 @@ cleanup:
static int static int
qemudDomainEventRegister (virConnectPtr conn, qemudDomainEventRegister (virConnectPtr conn,
void *callback, virConnectDomainEventCallback callback,
void *opaque, void *opaque,
virFreeCallback freecb) virFreeCallback freecb)
{ {
@ -3784,7 +3784,7 @@ qemudDomainEventRegister (virConnectPtr conn,
static int static int
qemudDomainEventDeregister (virConnectPtr conn, qemudDomainEventDeregister (virConnectPtr conn,
void *callback) virConnectDomainEventCallback callback)
{ {
struct qemud_driver *driver = conn->privateData; struct qemud_driver *driver = conn->privateData;
int ret; int ret;

View File

@ -4724,8 +4724,8 @@ remoteAuthPolkit (virConnectPtr conn, struct private_data *priv, int in_open,
/*----------------------------------------------------------------------*/ /*----------------------------------------------------------------------*/
static int remoteDomainEventRegister (virConnectPtr conn, static int remoteDomainEventRegister (virConnectPtr conn,
void *callback ATTRIBUTE_UNUSED, virConnectDomainEventCallback callback,
void *opaque ATTRIBUTE_UNUSED, void *opaque,
virFreeCallback freecb) virFreeCallback freecb)
{ {
struct private_data *priv = conn->privateData; struct private_data *priv = conn->privateData;
@ -4752,7 +4752,7 @@ static int remoteDomainEventRegister (virConnectPtr conn,
} }
static int remoteDomainEventDeregister (virConnectPtr conn, static int remoteDomainEventDeregister (virConnectPtr conn,
void *callback ATTRIBUTE_UNUSED) virConnectDomainEventCallback callback)
{ {
struct private_data *priv = conn->privateData; struct private_data *priv = conn->privateData;

View File

@ -1360,7 +1360,7 @@ xenUnifiedNodeGetFreeMemory (virConnectPtr conn)
static int static int
xenUnifiedDomainEventRegister (virConnectPtr conn, xenUnifiedDomainEventRegister (virConnectPtr conn,
void *callback, virConnectDomainEventCallback callback,
void *opaque, void *opaque,
void (*freefunc)(void *)) void (*freefunc)(void *))
{ {
@ -1377,7 +1377,7 @@ xenUnifiedDomainEventRegister (virConnectPtr conn,
static int static int
xenUnifiedDomainEventDeregister (virConnectPtr conn, xenUnifiedDomainEventDeregister (virConnectPtr conn,
void *callback) virConnectDomainEventCallback callback)
{ {
int ret; int ret;
GET_PRIVATE (conn); GET_PRIVATE (conn);