[PATCH 4/9] qemu: move virQEMUSaveDataFree auto decl to header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In order to use it in qemu_driver.c which has of plenty of
virQEMUSaveDataFree calls.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@xxxxxxxxxxxxx>
---
 src/qemu/qemu_saveimage.c | 1 -
 src/qemu/qemu_saveimage.h | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_saveimage.c b/src/qemu/qemu_saveimage.c
index e14e2987f1..e03b79c303 100644
--- a/src/qemu/qemu_saveimage.c
+++ b/src/qemu/qemu_saveimage.c
@@ -88,7 +88,6 @@ virQEMUSaveDataFree(virQEMUSaveData *data)
     g_free(data);
 }
 
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(virQEMUSaveData, virQEMUSaveDataFree);
 
 /**
  * This function steals @domXML on success.
diff --git a/src/qemu/qemu_saveimage.h b/src/qemu/qemu_saveimage.h
index 45c5f35e11..0710426742 100644
--- a/src/qemu/qemu_saveimage.h
+++ b/src/qemu/qemu_saveimage.h
@@ -112,3 +112,4 @@ virQEMUSaveDataNew(char *domXML,
 
 void
 virQEMUSaveDataFree(virQEMUSaveData *data);
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(virQEMUSaveData, virQEMUSaveDataFree);
-- 
2.27.0




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux