summaryrefslogtreecommitdiffstats
path: root/libvirt-utils.h
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@cardoe.com>2013-11-18 17:02:49 -0500
committerDaniel P. Berrange <berrange@redhat.com>2013-11-21 16:37:07 +0000
commit11bd03727fdd10b8764e9c08157f8a77d015cf4b (patch)
tree7b10cf862804bdef4970d6421e94815c29bda4f9 /libvirt-utils.h
parent90d1c56af5a942ae58ddd1dcb3ccc0b72097a589 (diff)
downloadlibvirt-python-v7-11bd03727fdd10b8764e9c08157f8a77d015cf4b.tar.gz
libvirt-python-v7-11bd03727fdd10b8764e9c08157f8a77d015cf4b.tar.xz
libvirt-python-v7-11bd03727fdd10b8764e9c08157f8a77d015cf4b.zip
Import some virTypedParams* APIs from libvirt
virTypedParamsClear() and virTypedParamsFree() were introduced in libvirt 1.0.2. In an effort to keep the code clean bring these two functions to libvirt-python if we're building against a version of libvirt that's older than 1.0.2
Diffstat (limited to 'libvirt-utils.h')
-rw-r--r--libvirt-utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libvirt-utils.h b/libvirt-utils.h
index 447e81f..0517f9c 100644
--- a/libvirt-utils.h
+++ b/libvirt-utils.h
@@ -200,4 +200,10 @@ int virFileClose(int *fdptr)
# define VIR_FORCE_CLOSE(FD) \
ignore_value(virFileClose(&(FD)))
+# if ! LIBVIR_CHECK_VERSION(1, 0, 2)
+void virTypedParamsClear(virTypedParameterPtr params, int nparams);
+
+void virTypedParamsFree(virTypedParameterPtr params, int nparams);
+# endif /* ! LIBVIR_CHECK_VERSION(1, 0, 2) */
+
#endif /* __LIBVIRT_UTILS_H__ */