mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 21:15:20 +00:00
libxl: remove obsolete VIR_LIBXL_EVENT_CONST
In Xen 4.2 struct libxl_event_hooks had a member which was erroneously declared const. Since libvirt requires at least Xen 4.6, remove the dead code. Signed-off-by: Olaf Hering <olaf@aepfle.de> Reviewed-by: Jim Fehlig <jfehlig@suse.com>
This commit is contained in:
parent
b6a02345dc
commit
70492e33e3
@ -641,7 +641,7 @@ libxlDomainHandleDeath(libxlDriverPrivate *driver, virDomainObj *vm)
|
||||
* Handle previously registered domain event notification from libxenlight.
|
||||
*/
|
||||
void
|
||||
libxlDomainEventHandler(void *data, VIR_LIBXL_EVENT_CONST libxl_event *event)
|
||||
libxlDomainEventHandler(void *data, libxl_event *event)
|
||||
{
|
||||
libxlDriverPrivate *driver = data;
|
||||
libxl_shutdown_reason xl_reason = event->u.domain_shutdown.shutdown_reason;
|
||||
|
@ -117,20 +117,8 @@ void
|
||||
libxlDomainCleanup(libxlDriverPrivate *driver,
|
||||
virDomainObj *vm);
|
||||
|
||||
/*
|
||||
* Note: Xen 4.3 removed the const from the event handler signature.
|
||||
* Detect which signature to use based on
|
||||
* LIBXL_HAVE_NONCONST_EVENT_OCCURS_EVENT_ARG.
|
||||
*/
|
||||
#ifdef LIBXL_HAVE_NONCONST_EVENT_OCCURS_EVENT_ARG
|
||||
# define VIR_LIBXL_EVENT_CONST /* empty */
|
||||
#else
|
||||
# define VIR_LIBXL_EVENT_CONST const
|
||||
#endif
|
||||
|
||||
void
|
||||
libxlDomainEventHandler(void *data,
|
||||
VIR_LIBXL_EVENT_CONST libxl_event *event);
|
||||
libxlDomainEventHandler(void *data, libxl_event *event);
|
||||
|
||||
int
|
||||
libxlDomainAutoCoreDump(libxlDriverPrivate *driver,
|
||||
|
Loading…
x
Reference in New Issue
Block a user