提交 3af43219 编写于 作者: J Jiri Denemark

qemu: Export caps cache APIs for tests

Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
上级 dccb2629
...@@ -2781,7 +2781,7 @@ int virQEMUCapsProbeQMP(virQEMUCapsPtr qemuCaps, ...@@ -2781,7 +2781,7 @@ int virQEMUCapsProbeQMP(virQEMUCapsPtr qemuCaps,
* ... * ...
* </qemuCaps> * </qemuCaps>
*/ */
static int int
virQEMUCapsLoadCache(virQEMUCapsPtr qemuCaps, const char *filename, virQEMUCapsLoadCache(virQEMUCapsPtr qemuCaps, const char *filename,
time_t *qemuctime, time_t *selfctime, time_t *qemuctime, time_t *selfctime,
unsigned long *selfvers) unsigned long *selfvers)
...@@ -3019,7 +3019,7 @@ virQEMUCapsLoadCache(virQEMUCapsPtr qemuCaps, const char *filename, ...@@ -3019,7 +3019,7 @@ virQEMUCapsLoadCache(virQEMUCapsPtr qemuCaps, const char *filename,
} }
static char * char *
virQEMUCapsFormatCache(virQEMUCapsPtr qemuCaps, virQEMUCapsFormatCache(virQEMUCapsPtr qemuCaps,
time_t selfCTime, time_t selfCTime,
unsigned long selfVersion) unsigned long selfVersion)
......
...@@ -45,4 +45,13 @@ virQEMUCapsNewForBinaryInternal(const char *binary, ...@@ -45,4 +45,13 @@ virQEMUCapsNewForBinaryInternal(const char *binary,
gid_t runGid, gid_t runGid,
bool qmpOnly); 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 #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册