mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
qemumonitortestutils: Add VIR_AUTOPTR support
Upcoming tests are going to use VIR_AUTOPTR to simplify test cleanup. Signed-off-by: Eric Blake <eblake@redhat.com> Acked-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
1134fd6289
commit
2ea60b6f7e
@ -24,6 +24,7 @@
|
||||
# include "qemu/qemu_conf.h"
|
||||
# include "qemu/qemu_monitor.h"
|
||||
# include "qemu/qemu_agent.h"
|
||||
# include "virautoclean.h"
|
||||
|
||||
typedef struct _qemuMonitorTest qemuMonitorTest;
|
||||
typedef qemuMonitorTest *qemuMonitorTestPtr;
|
||||
@ -102,4 +103,6 @@ qemuMonitorPtr qemuMonitorTestGetMonitor(qemuMonitorTestPtr test);
|
||||
qemuAgentPtr qemuMonitorTestGetAgent(qemuMonitorTestPtr test);
|
||||
virDomainObjPtr qemuMonitorTestGetDomainObj(qemuMonitorTestPtr test);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(qemuMonitorTest, qemuMonitorTestFree);
|
||||
|
||||
#endif /* LIBVIRT_QEMUMONITORTESTUTILS_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user