summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@cardoe.com>2013-11-13 18:12:24 -0500
committerDaniel P. Berrange <berrange@redhat.com>2013-11-22 14:20:42 +0000
commit1646b17b1dcc3dd1cc8de4beb91c720fa8f98de4 (patch)
tree77254432556c3a777200ab45169e62f1a1c04b9a
parent11cd2b733616c6ea664bb9870d939be72b5f9a02 (diff)
downloadlibvirt-python-v7-1646b17b1dcc3dd1cc8de4beb91c720fa8f98de4.tar.gz
libvirt-python-v7-1646b17b1dcc3dd1cc8de4beb91c720fa8f98de4.tar.xz
libvirt-python-v7-1646b17b1dcc3dd1cc8de4beb91c720fa8f98de4.zip
virTypedParams* API appeared in 1.0.2 and used in 1.1.0
When building against versions of libvirt prior to 1.0.2, we can not provide wrappers for virTypedParams* APIs. In addition we don't need to have the helper APIs until 1.1.0 when the first API we wrap starts to use them.
-rw-r--r--libvirt-override.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libvirt-override.c b/libvirt-override.c
index 89c4739..8a6438b 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -254,7 +254,9 @@ cleanup:
return NULL;
}
-
+/* While these appeared in libvirt in 1.0.2, we only
+ * need them in the python from 1.1.0 onwards */
+#if LIBVIR_CHECK_VERSION(1, 1, 0)
typedef struct {
const char *name;
int type;
@@ -406,6 +408,7 @@ cleanup:
virTypedParamsFree(params, n);
return ret;
}
+#endif /* LIBVIR_CHECK_VERSION(1, 1, 0) */
/*