diff --git a/src/qemu/qemu_blockjob.c b/src/qemu/qemu_blockjob.c index 3a4e364a8dff4b228a6fb19b9be231a43b3a92ba..71bb143ea267362f9e07d2932a7ab03b9477fd6e 100644 --- a/src/qemu/qemu_blockjob.c +++ b/src/qemu/qemu_blockjob.c @@ -88,7 +88,7 @@ qemuBlockJobDataOnceInit(void) VIR_ONCE_GLOBAL_INIT(qemuBlockJobData); -static qemuBlockJobDataPtr +qemuBlockJobDataPtr qemuBlockJobDataNew(qemuBlockJobType type, const char *name) { @@ -111,7 +111,7 @@ qemuBlockJobDataNew(qemuBlockJobType type, } -static int +int qemuBlockJobRegister(qemuBlockJobDataPtr job, virDomainObjPtr vm, virDomainDiskDefPtr disk) diff --git a/src/qemu/qemu_blockjob.h b/src/qemu/qemu_blockjob.h index 77298a4bead06c9d5371cc0b4485c4fd6279d953..fe16badbc8f863d4bb20a4f76d9043cc80bf53b2 100644 --- a/src/qemu/qemu_blockjob.h +++ b/src/qemu/qemu_blockjob.h @@ -82,6 +82,16 @@ struct _qemuBlockJobData { int newstate; /* qemuBlockjobState, subset of events emitted by qemu */ }; +int +qemuBlockJobRegister(qemuBlockJobDataPtr job, + virDomainObjPtr vm, + virDomainDiskDefPtr disk) + ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2); + +qemuBlockJobDataPtr +qemuBlockJobDataNew(qemuBlockJobType type, + const char *name) + ATTRIBUTE_NONNULL(2); qemuBlockJobDataPtr qemuBlockJobDiskNew(virDomainObjPtr vm,