mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
Rename virDomainEventCallback to virObjectEventCallback
The event callbacks will be generalized to handle events for any object type.
This commit is contained in:
parent
b775b48e94
commit
f95b1921a1
@ -43,7 +43,7 @@ typedef virDomainMeta *virDomainMetaPtr;
|
||||
struct _virDomainEventCallbackList {
|
||||
unsigned int nextID;
|
||||
unsigned int count;
|
||||
virDomainEventCallbackPtr *callbacks;
|
||||
virObjectEventCallbackPtr *callbacks;
|
||||
};
|
||||
|
||||
struct _virDomainEventQueue {
|
||||
@ -63,7 +63,7 @@ struct _virDomainEventState {
|
||||
virMutex lock;
|
||||
};
|
||||
|
||||
struct _virDomainEventCallback {
|
||||
struct _virObjectEventCallback {
|
||||
int callbackID;
|
||||
int eventID;
|
||||
virConnectPtr conn;
|
||||
@ -355,7 +355,7 @@ virDomainEventCallbackListAddID(virConnectPtr conn,
|
||||
virFreeCallback freecb,
|
||||
int *callbackID)
|
||||
{
|
||||
virDomainEventCallbackPtr event;
|
||||
virObjectEventCallbackPtr event;
|
||||
size_t i;
|
||||
int ret = 0;
|
||||
|
||||
@ -1366,7 +1366,7 @@ cleanup:
|
||||
|
||||
|
||||
static int virDomainEventDispatchMatchCallback(virDomainEventPtr event,
|
||||
virDomainEventCallbackPtr cb)
|
||||
virObjectEventCallbackPtr cb)
|
||||
{
|
||||
if (!cb)
|
||||
return 0;
|
||||
|
@ -28,8 +28,8 @@
|
||||
|
||||
# include "domain_conf.h"
|
||||
|
||||
typedef struct _virDomainEventCallback virDomainEventCallback;
|
||||
typedef virDomainEventCallback *virDomainEventCallbackPtr;
|
||||
typedef struct _virObjectEventCallback virObjectEventCallback;
|
||||
typedef virObjectEventCallback *virObjectEventCallbackPtr;
|
||||
|
||||
typedef struct _virDomainEventCallbackList virDomainEventCallbackList;
|
||||
typedef virDomainEventCallbackList *virDomainEventCallbackListPtr;
|
||||
|
Loading…
Reference in New Issue
Block a user