From 3af432199d6ab8ff956ed6e658a5a938ce57ce97 Mon Sep 17 00:00:00 2001 From: Jiri Denemark Date: Thu, 28 Apr 2016 15:01:02 +0200 Subject: [PATCH] qemu: Export caps cache APIs for tests Signed-off-by: Jiri Denemark --- 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 f51923b6fd..30dc33a5d3 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -2781,7 +2781,7 @@ int virQEMUCapsProbeQMP(virQEMUCapsPtr 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 2a5d8d1503..647aafa343 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 -- GitLab