[libvirt] [libvirt-python PATCHv2 37/44] virTypedParams* API appeared in 1.0.2

Doug Goldstein cardoe at cardoe.com
Tue Nov 19 19:35:56 UTC 2013


When building against versions of libvirt prior to 1.0.2, we can not
provide wrappers for virTypedParams* APIs.
---
 libvirt-override.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libvirt-override.c b/libvirt-override.c
index 951ad29..06956f4 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -254,7 +254,7 @@ cleanup:
     return NULL;
 }
 
-
+#if LIBVIR_CHECK_VERSION(1, 0, 2)
 typedef struct {
     const char *name;
     int type;
@@ -406,6 +406,7 @@ cleanup:
     virTypedParamsFree(params, n);
     return ret;
 }
+#endif /* LIBVIR_CHECK_VERSION(1, 0, 2) */
 
 
 /*
-- 
1.8.3.2




More information about the libvir-list mailing list