---
libvirt-override.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libvirt-override.c b/libvirt-override.c
index b3de8fc..e7df899 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -6751,6 +6751,7 @@ libvirt_virDomainSendKey(PyObject *self ATTRIBUTE_UNUSED,
return py_retval;
}
+#if LIBVIR_CHECK_VERSION(1,0,3)
static PyObject *
libvirt_virDomainMigrateGetCompressionCache(PyObject *self ATTRIBUTE_UNUSED,
PyObject *args)
@@ -6777,6 +6778,7 @@ libvirt_virDomainMigrateGetCompressionCache(PyObject *self
ATTRIBUTE_UNUSED,
return libvirt_ulonglongWrap(cacheSize);
}
+#endif /* LIBVIR_CHECK_VERSION(1,0,3) */
static PyObject *
libvirt_virDomainMigrateGetMaxSpeed(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
@@ -7347,7 +7349,9 @@ static PyMethodDef libvirtMethods[] = {
{(char *) "virDomainSetBlockIoTune", libvirt_virDomainSetBlockIoTune,
METH_VARARGS, NULL},
{(char *) "virDomainGetBlockIoTune", libvirt_virDomainGetBlockIoTune,
METH_VARARGS, NULL},
{(char *) "virDomainSendKey", libvirt_virDomainSendKey, METH_VARARGS,
NULL},
+#if LIBVIR_CHECK_VERSION(1,0,3)
{(char *) "virDomainMigrateGetCompressionCache",
libvirt_virDomainMigrateGetCompressionCache, METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(1,0,3) */
{(char *) "virDomainMigrateGetMaxSpeed",
libvirt_virDomainMigrateGetMaxSpeed, METH_VARARGS, NULL},
#if LIBVIR_CHECK_VERSION(1,1,0)
{(char *) "virDomainMigrate3", libvirt_virDomainMigrate3, METH_VARARGS,
NULL},
--
1.8.3.2