mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Avoid repeated #define's in public headers.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
e27fcf3739
commit
fe39b61fe4
2 files changed
+4
-2
No files matched your search
@@ -11,7 +11,9 @@
|
||||
|
||||
#include "ring.h"
|
||||
|
||||
#ifndef blkif_vdev_t
|
||||
#define blkif_vdev_t u16
|
||||
#endif
|
||||
#define blkif_sector_t u64
|
||||
|
||||
#define BLKIF_OP_READ 0
|
||||
|
||||
@@ -87,10 +87,10 @@ typedef struct control_if {
|
||||
#define CMSG_BLKIF_FE_INTERFACE_DISCONNECT 34
|
||||
#define CMSG_BLKIF_FE_INTERFACE_QUERY 35
|
||||
|
||||
/* These are used by both front-end and back-end drivers. */
|
||||
#ifndef blkif_vdev_t
|
||||
#define blkif_vdev_t u16
|
||||
#endif
|
||||
#define blkif_pdev_t u32
|
||||
#define blkif_sector_t u64
|
||||
|
||||
/*
|
||||
* CMSG_BLKIF_FE_INTERFACE_STATUS:
|
||||
|
||||