ia64/xen-unstable

changeset 8952:602bf0aa15ab

Define constants for XENVER char array sizes. Allows Linux
users to avoid using the typedefs directly.

Signed-off-by: Mike Day <ncmike@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Feb 21 18:29:28 2006 +0100 (2006-02-21)
parents f33e537c4ac5
children 2f515e08edfc
files xen/include/public/version.h
line diff
     1.1 --- a/xen/include/public/version.h	Tue Feb 21 18:23:35 2006 +0100
     1.2 +++ b/xen/include/public/version.h	Tue Feb 21 18:29:28 2006 +0100
     1.3 @@ -18,6 +18,7 @@
     1.4  /* arg == xen_extraversion_t. */
     1.5  #define XENVER_extraversion 1
     1.6  typedef char xen_extraversion_t[16];
     1.7 +#define XEN_EXTRAVERSION_LEN (sizeof(xen_extraversion_t))
     1.8  
     1.9  /* arg == xen_compile_info_t. */
    1.10  #define XENVER_compile_info 2
    1.11 @@ -30,9 +31,11 @@ typedef struct xen_compile_info {
    1.12  
    1.13  #define XENVER_capabilities 3
    1.14  typedef char xen_capabilities_info_t[1024];
    1.15 +#define XEN_CAPABILITIES_INFO_LEN (sizeof(xen_capabilities_info_t))
    1.16  
    1.17  #define XENVER_changeset 4
    1.18  typedef char xen_changeset_info_t[64];
    1.19 +#define XEN_CHANGESET_INFO_LEN (sizeof(xen_changeset_info_t))
    1.20  
    1.21  #define XENVER_platform_parameters 5
    1.22  typedef struct xen_platform_parameters {