[PATCH 04/12] qemu: Export caps cache APIs for tests

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

 



Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
---
 src/qemu/qemu_capabilities.c | 4 ++--
 src/qemu/qemu_capspriv.h     | 9 +++++++++
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index 862aed0..b6d1f5e 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -2781,7 +2781,7 @@ int virQEMUCapsProbeQMP(virQEMUCapsPtr qemuCaps,
  *   ...
  * </qemuCaps>
  */
-static int
+int
 virQEMUCapsLoadCache(virQEMUCapsPtr qemuCaps, const char *filename,
                      time_t *qemuctime, time_t *selfctime,
                      unsigned long *selfvers)
@@ -3019,7 +3019,7 @@ virQEMUCapsLoadCache(virQEMUCapsPtr qemuCaps, const char *filename,
 }
 
 
-static char *
+char *
 virQEMUCapsFormatCache(virQEMUCapsPtr qemuCaps,
                        time_t selfCTime,
                        unsigned long selfVersion)
diff --git a/src/qemu/qemu_capspriv.h b/src/qemu/qemu_capspriv.h
index 2a5d8d1..647aafa 100644
--- a/src/qemu/qemu_capspriv.h
+++ b/src/qemu/qemu_capspriv.h
@@ -45,4 +45,13 @@ virQEMUCapsNewForBinaryInternal(const char *binary,
                                 gid_t runGid,
                                 bool qmpOnly);
 
+int virQEMUCapsLoadCache(virQEMUCapsPtr qemuCaps,
+                         const char *filename,
+                         time_t *qemuctime,
+                         time_t *selfctime,
+                         unsigned long *selfvers);
+char *virQEMUCapsFormatCache(virQEMUCapsPtr qemuCaps,
+                             time_t selfCTime,
+                             unsigned long selfVersion);
+
 #endif
-- 
2.8.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[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]