Commit 3e8b225b authored by Daniel P. Berrange's avatar Daniel P. Berrange

Add compat for 2.4.0 release

Signed-off-by: default avatarDaniel P. Berrange <[email protected]>
parent 4a36d9f7
......@@ -6,19 +6,8 @@ Make sure to have `libvirt-dev` package (or the development files otherwise some
## Version Support
The minimum required version of libvirt is **2.4.0**. Due to the
API/ABI compatibility promise of libvirt, more recent versions of
libvirt should work too.
The master branch of libvirt-go will always aim to support all
the APIs present in the master branch of the libvirt core library
API. At time of release, a tag will be created, so applications
that need build compatibility with an older version of libvirt
should checkout the tag corresponding to the version that they
require. This policy is appies from version 2.4.0 onwards. If
compatibility is required against a version of libvirt prior to
2.4.0, it will be necessary to create a branch and strip out
APIs.
The libvirt go package provides API coverage for libvirt versions
from 2.4.0 onwards, through conditional compilation of newer APIs.
## Documentation
......
......@@ -4,7 +4,7 @@ package libvirt
#cgo pkg-config: libvirt
#include <libvirt/libvirt.h>
#include <libvirt/virterror.h>
#include <stdlib.h>
#include "error_compat.h"
void ignoreErrorFunc(void *userData, virErrorPtr error) {
// no-op
......
#ifndef LIBVIRT_GO_ERROR_COMPAT_H__
#define LIBVIRT_GO_ERROR_COMPAT_H__
/* 2.5.0 */
#ifndef VIR_ERR_LIBSSH
#define VIR_ERR_LIBSSH 98
#endif
#ifndef VIR_FROM_LIBSSH
#define VIR_FROM_LIBSSH 66
#endif
#endif /* LIBVIRT_GO_ERROR_COMPAT_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment