mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
domain_event: Drop virDomainEventMemoryDeviceSizeChangePtr
We dropped our private virXXXPtr typedefs in v7.3.0-rc1~229 but somehow v7.9.0-rc1~292 introduced one back: virDomainEventMemoryDeviceSizeChangePtr. There's no need for it and it's internal only. Drop it. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
fa048f88ef
commit
98216cead9
@ -284,7 +284,6 @@ struct _virDomainEventMemoryDeviceSizeChange {
|
||||
unsigned long long size;
|
||||
};
|
||||
typedef struct _virDomainEventMemoryDeviceSizeChange virDomainEventMemoryDeviceSizeChange;
|
||||
typedef virDomainEventMemoryDeviceSizeChange *virDomainEventMemoryDeviceSizeChangePtr;
|
||||
|
||||
static int
|
||||
virDomainEventsOnceInit(void)
|
||||
@ -554,7 +553,7 @@ virDomainEventMemoryFailureDispose(void *obj)
|
||||
static void
|
||||
virDomainEventMemoryDeviceSizeChangeDispose(void *obj)
|
||||
{
|
||||
virDomainEventMemoryDeviceSizeChangePtr event = obj;
|
||||
virDomainEventMemoryDeviceSizeChange *event = obj;
|
||||
VIR_DEBUG("obj=%p", event);
|
||||
|
||||
g_free(event->alias);
|
||||
@ -1692,7 +1691,7 @@ virDomainEventMemoryDeviceSizeChangeNew(int id,
|
||||
const char *alias,
|
||||
unsigned long long size)
|
||||
{
|
||||
virDomainEventMemoryDeviceSizeChangePtr ev;
|
||||
virDomainEventMemoryDeviceSizeChange *ev;
|
||||
|
||||
if (virDomainEventsInitialize() < 0)
|
||||
return NULL;
|
||||
@ -2033,9 +2032,9 @@ virDomainEventDispatchDefaultFunc(virConnectPtr conn,
|
||||
|
||||
case VIR_DOMAIN_EVENT_ID_MEMORY_DEVICE_SIZE_CHANGE:
|
||||
{
|
||||
virDomainEventMemoryDeviceSizeChangePtr memoryDeviceSizeChangeEvent;
|
||||
virDomainEventMemoryDeviceSizeChange *memoryDeviceSizeChangeEvent;
|
||||
|
||||
memoryDeviceSizeChangeEvent = (virDomainEventMemoryDeviceSizeChangePtr)event;
|
||||
memoryDeviceSizeChangeEvent = (virDomainEventMemoryDeviceSizeChange *)event;
|
||||
((virConnectDomainEventMemoryDeviceSizeChangeCallback)cb)(conn, dom,
|
||||
memoryDeviceSizeChangeEvent->alias,
|
||||
memoryDeviceSizeChangeEvent->size,
|
||||
|
Loading…
Reference in New Issue
Block a user