mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-05 16:33:50 +00:00
qemu_agent: Drop destroy callback
After previous cleanups this callback is unused. Remove it. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
0a9cb29ba2
commit
e812213bc1
@ -28,8 +28,6 @@ typedef struct _qemuAgent qemuAgent;
|
|||||||
|
|
||||||
typedef struct _qemuAgentCallbacks qemuAgentCallbacks;
|
typedef struct _qemuAgentCallbacks qemuAgentCallbacks;
|
||||||
struct _qemuAgentCallbacks {
|
struct _qemuAgentCallbacks {
|
||||||
void (*destroy)(qemuAgent *mon,
|
|
||||||
virDomainObj *vm);
|
|
||||||
void (*eofNotify)(qemuAgent *mon,
|
void (*eofNotify)(qemuAgent *mon,
|
||||||
virDomainObj *vm);
|
virDomainObj *vm);
|
||||||
void (*errorNotify)(qemuAgent *mon,
|
void (*errorNotify)(qemuAgent *mon,
|
||||||
|
@ -193,17 +193,8 @@ qemuProcessHandleAgentError(qemuAgent *agent G_GNUC_UNUSED,
|
|||||||
virObjectUnlock(vm);
|
virObjectUnlock(vm);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void qemuProcessHandleAgentDestroy(qemuAgent *agent,
|
|
||||||
virDomainObj *vm)
|
|
||||||
{
|
|
||||||
VIR_DEBUG("Received destroy agent=%p vm=%p", agent, vm);
|
|
||||||
|
|
||||||
virObjectUnref(vm);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static qemuAgentCallbacks agentCallbacks = {
|
static qemuAgentCallbacks agentCallbacks = {
|
||||||
.destroy = qemuProcessHandleAgentDestroy,
|
|
||||||
.eofNotify = qemuProcessHandleAgentEOF,
|
.eofNotify = qemuProcessHandleAgentEOF,
|
||||||
.errorNotify = qemuProcessHandleAgentError,
|
.errorNotify = qemuProcessHandleAgentError,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user