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

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



Signed-off-by: Jiri Denemark <jdenemar redhat com>
---
 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


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