mirror of https://gitee.com/openkylin/libvirt.git
qemu_process.h: register AUTOPTR_CLEANUP_FUNC for qemuProcessQMPPtr
Next patches will use g_autoptr() in qemuProcessQMPPtr pointers for some cleanups in QMP code. Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Message-Id: <20200717211556.1024748-2-danielhb413@gmail.com> Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
5c50d1dda5
commit
b677f0dbe0
|
@ -234,5 +234,6 @@ qemuProcessQMPPtr qemuProcessQMPNew(const char *binary,
|
||||||
bool forceTCG);
|
bool forceTCG);
|
||||||
|
|
||||||
void qemuProcessQMPFree(qemuProcessQMPPtr proc);
|
void qemuProcessQMPFree(qemuProcessQMPPtr proc);
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(qemuProcessQMP, qemuProcessQMPFree);
|
||||||
|
|
||||||
int qemuProcessQMPStart(qemuProcessQMPPtr proc);
|
int qemuProcessQMPStart(qemuProcessQMPPtr proc);
|
||||||
|
|
Loading…
Reference in New Issue