direct-io.hg

changeset 5649:fc4e10d0455a

Avoid repeated #define's in public headers.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Sat Jul 02 22:37:55 2005 +0000 (2005-07-02)
parents 2b6c1a809807
children 95685fbba2ca 99ff7c3435b2
files xen/include/public/io/blkif.h xen/include/public/io/domain_controller.h
line diff
     1.1 --- a/xen/include/public/io/blkif.h	Sat Jul 02 08:41:48 2005 +0000
     1.2 +++ b/xen/include/public/io/blkif.h	Sat Jul 02 22:37:55 2005 +0000
     1.3 @@ -11,7 +11,9 @@
     1.4  
     1.5  #include "ring.h"
     1.6  
     1.7 +#ifndef blkif_vdev_t
     1.8  #define blkif_vdev_t   u16
     1.9 +#endif
    1.10  #define blkif_sector_t u64
    1.11  
    1.12  #define BLKIF_OP_READ      0
     2.1 --- a/xen/include/public/io/domain_controller.h	Sat Jul 02 08:41:48 2005 +0000
     2.2 +++ b/xen/include/public/io/domain_controller.h	Sat Jul 02 22:37:55 2005 +0000
     2.3 @@ -87,10 +87,10 @@ typedef struct control_if {
     2.4  #define CMSG_BLKIF_FE_INTERFACE_DISCONNECT      34
     2.5  #define CMSG_BLKIF_FE_INTERFACE_QUERY           35
     2.6  
     2.7 -/* These are used by both front-end and back-end drivers. */
     2.8 +#ifndef blkif_vdev_t
     2.9  #define blkif_vdev_t   u16
    2.10 +#endif
    2.11  #define blkif_pdev_t   u32
    2.12 -#define blkif_sector_t u64
    2.13  
    2.14  /*
    2.15   * CMSG_BLKIF_FE_INTERFACE_STATUS: