# HG changeset patch
# User john.levon(a)sun.com
# Date 1229399267 28800
# Node ID 357ed6194907962940e31382fe988f3b64bd1968
# Parent 1d913a11d0b4df41c6a749ea34a5a2f37cb2c903
Fix register/deregister driver method declaration
Callback parameter should be of type virConnectDomainEventCallback.
Signed-off-by: John Levon <john.levon(a)sun.com>
diff --git a/src/driver.h b/src/driver.h
--- a/src/driver.h
+++ b/src/driver.h
@@ -282,14 +282,14 @@ typedef int
typedef int
(*virDrvDomainEventRegister)
(virConnectPtr conn,
- void *callback,
+ virConnectDomainEventCallback cb,
void *opaque,
virFreeCallback freecb);
typedef int
(*virDrvDomainEventDeregister)
(virConnectPtr conn,
- void *callback);
+ virConnectDomainEventCallback cb);
typedef int
(*virDrvDomainMigratePrepare2)
diff --git a/src/qemu_driver.c b/src/qemu_driver.c
--- a/src/qemu_driver.c
+++ b/src/qemu_driver.c
@@ -3751,7 +3751,7 @@ cleanup:
static int
qemudDomainEventRegister (virConnectPtr conn,
- void *callback,
+ virConnectDomainEventCallback callback,
void *opaque,
virFreeCallback freecb)
{
@@ -3768,7 +3768,7 @@ qemudDomainEventRegister (virConnectPtr
static int
qemudDomainEventDeregister (virConnectPtr conn,
- void *callback)
+ virConnectDomainEventCallback callback)
{
struct qemud_driver *driver = conn->privateData;
int ret;
diff --git a/src/remote_internal.c b/src/remote_internal.c
--- a/src/remote_internal.c
+++ b/src/remote_internal.c
@@ -4724,8 +4724,8 @@ remoteAuthPolkit (virConnectPtr conn, st
/*----------------------------------------------------------------------*/
static int remoteDomainEventRegister (virConnectPtr conn,
- void *callback ATTRIBUTE_UNUSED,
- void *opaque ATTRIBUTE_UNUSED,
+ virConnectDomainEventCallback callback,
+ void *opaque,
virFreeCallback freecb)
{
struct private_data *priv = conn->privateData;
@@ -4752,7 +4752,7 @@ static int remoteDomainEventRegister (vi
}
static int remoteDomainEventDeregister (virConnectPtr conn,
- void *callback ATTRIBUTE_UNUSED)
+ virConnectDomainEventCallback callback)
{
struct private_data *priv = conn->privateData;
diff --git a/src/xen_unified.c b/src/xen_unified.c
--- a/src/xen_unified.c
+++ b/src/xen_unified.c
@@ -1360,7 +1360,7 @@ xenUnifiedNodeGetFreeMemory (virConnectP
static int
xenUnifiedDomainEventRegister (virConnectPtr conn,
- void *callback,
+ virConnectDomainEventCallback callback,
void *opaque,
void (*freefunc)(void *))
{
@@ -1377,7 +1377,7 @@ xenUnifiedDomainEventRegister (virConnec
static int
xenUnifiedDomainEventDeregister (virConnectPtr conn,
- void *callback)
+ virConnectDomainEventCallback callback)
{
int ret;
GET_PRIVATE (conn);