1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-12-06 00:23:47 +03:00

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
This commit is contained in:
Doug Goldstein
2013-11-18 17:02:49 -05:00
committed by Daniel P. Berrange
parent ac89e8177d
commit 4d083fbf60
2 changed files with 52 additions and 0 deletions

View File

@@ -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__ */