mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
libxc: provide XENCTRL_HAS_XC_INTERFACE feature test macro
This makes it easier for out-of-tree callers to tell which version of the libxc interface this version of xenctrl.h provides. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Ian Campbell <Ian.Campbell@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
92585dd6a9
commit
3bbbb0c96c
1 file changed
+10
@@ -88,6 +88,16 @@
|
||||
#endif
|
||||
|
||||
|
||||
#define XENCTRL_HAS_XC_INTERFACE 1
|
||||
/* In Xen 4.0 and earlier, xc_interface_open and xc_evtchn_open would
|
||||
* both return ints being the file descriptor. In 4.1 and later, they
|
||||
* return an xc_interface* and xc_evtchn*, respectively - ie, a
|
||||
* pointer to an opaque struct. This #define is provided in 4.1 and
|
||||
* later, allowing out-of-tree callers to more easily distinguish
|
||||
* between, and be compatible with, both versions.
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* GENERAL
|
||||
*
|
||||
|
||||