mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +00:00
qemu: add qemuDomainVideoPrivate
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
3dbf3941ad
commit
ca60ecfa8c
@ -1309,6 +1309,43 @@ qemuDomainNetworkPrivateDispose(void *obj ATTRIBUTE_UNUSED)
|
||||
}
|
||||
|
||||
|
||||
static virClassPtr qemuDomainVideoPrivateClass;
|
||||
static void qemuDomainVideoPrivateDispose(void *obj);
|
||||
|
||||
|
||||
static int
|
||||
qemuDomainVideoPrivateOnceInit(void)
|
||||
{
|
||||
if (!VIR_CLASS_NEW(qemuDomainVideoPrivate, virClassForObject()))
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
VIR_ONCE_GLOBAL_INIT(qemuDomainVideoPrivate);
|
||||
|
||||
|
||||
static virObjectPtr
|
||||
qemuDomainVideoPrivateNew(void)
|
||||
{
|
||||
qemuDomainVideoPrivatePtr priv;
|
||||
|
||||
if (qemuDomainVideoPrivateInitialize() < 0)
|
||||
return NULL;
|
||||
|
||||
if (!(priv = virObjectNew(qemuDomainVideoPrivateClass)))
|
||||
return NULL;
|
||||
|
||||
return (virObjectPtr) priv;
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
qemuDomainVideoPrivateDispose(void *obj ATTRIBUTE_UNUSED)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/* qemuDomainSecretPlainSetup:
|
||||
* @secinfo: Pointer to secret info
|
||||
* @usageType: The virSecretUsageType
|
||||
@ -3668,6 +3705,7 @@ virDomainXMLPrivateDataCallbacks virQEMUDriverPrivateDataCallbacks = {
|
||||
.vsockNew = qemuDomainVsockPrivateNew,
|
||||
.graphicsNew = qemuDomainGraphicsPrivateNew,
|
||||
.networkNew = qemuDomainNetworkPrivateNew,
|
||||
.videoNew = qemuDomainVideoPrivateNew,
|
||||
.parse = qemuDomainObjPrivateXMLParse,
|
||||
.format = qemuDomainObjPrivateXMLFormat,
|
||||
.getParseOpaque = qemuDomainObjPrivateXMLGetParseOpaque,
|
||||
|
@ -501,6 +501,18 @@ struct _qemuDomainVsockPrivate {
|
||||
};
|
||||
|
||||
|
||||
#define QEMU_DOMAIN_VIDEO_PRIVATE(dev) \
|
||||
((qemuDomainVideoPrivatePtr) (dev)->privateData)
|
||||
|
||||
typedef struct _qemuDomainVideoPrivate qemuDomainVideoPrivate;
|
||||
typedef qemuDomainVideoPrivate *qemuDomainVideoPrivatePtr;
|
||||
struct _qemuDomainVideoPrivate {
|
||||
virObject parent;
|
||||
|
||||
bool tmp_to_remove;
|
||||
};
|
||||
|
||||
|
||||
#define QEMU_DOMAIN_GRAPHICS_PRIVATE(dev) \
|
||||
((qemuDomainGraphicsPrivatePtr) (dev)->privateData)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user