debuggers.hg

changeset 22870:f346343cb978

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>
author Ian Jackson <ian.jackson@eu.citrix.com>
date Thu Jan 27 14:59:04 2011 +0000 (2011-01-27)
parents 48008a2cbc1e
children 969f26450ad5
files tools/libxc/xenctrl.h
line diff
     1.1 --- a/tools/libxc/xenctrl.h	Thu Jan 27 11:31:46 2011 +0000
     1.2 +++ b/tools/libxc/xenctrl.h	Thu Jan 27 14:59:04 2011 +0000
     1.3 @@ -88,6 +88,16 @@
     1.4  #endif
     1.5  
     1.6  
     1.7 +#define XENCTRL_HAS_XC_INTERFACE 1
     1.8 +/* In Xen 4.0 and earlier, xc_interface_open and xc_evtchn_open would
     1.9 + * both return ints being the file descriptor.  In 4.1 and later, they
    1.10 + * return an xc_interface* and xc_evtchn*, respectively - ie, a
    1.11 + * pointer to an opaque struct.  This #define is provided in 4.1 and
    1.12 + * later, allowing out-of-tree callers to more easily distinguish
    1.13 + * between, and be compatible with, both versions.
    1.14 + */
    1.15 +
    1.16 +
    1.17  /*
    1.18   *  GENERAL
    1.19   *