range: add Range to typedefs
will help simplify header dependencies. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
636228a887
commit
cfe25e2bca
@ -2,6 +2,7 @@
|
|||||||
#define QEMU_RANGE_H
|
#define QEMU_RANGE_H
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <qemu/typedefs.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Operations on 64 bit address ranges.
|
* Operations on 64 bit address ranges.
|
||||||
@ -15,7 +16,6 @@ struct Range {
|
|||||||
uint64_t begin; /* First byte of the range, or 0 if empty. */
|
uint64_t begin; /* First byte of the range, or 0 if empty. */
|
||||||
uint64_t end; /* 1 + the last byte. 0 if range empty or ends at ~0x0LL. */
|
uint64_t end; /* 1 + the last byte. 0 if range empty or ends at ~0x0LL. */
|
||||||
};
|
};
|
||||||
typedef struct Range Range;
|
|
||||||
|
|
||||||
/* Get last byte of a range from offset + length.
|
/* Get last byte of a range from offset + length.
|
||||||
* Undefined for ranges that wrap around 0. */
|
* Undefined for ranges that wrap around 0. */
|
||||||
|
@ -68,5 +68,6 @@ typedef struct QEMUSGList QEMUSGList;
|
|||||||
typedef struct SHPCDevice SHPCDevice;
|
typedef struct SHPCDevice SHPCDevice;
|
||||||
typedef struct FWCfgState FWCfgState;
|
typedef struct FWCfgState FWCfgState;
|
||||||
typedef struct PcGuestInfo PcGuestInfo;
|
typedef struct PcGuestInfo PcGuestInfo;
|
||||||
|
typedef struct Range Range;
|
||||||
|
|
||||||
#endif /* QEMU_TYPEDEFS_H */
|
#endif /* QEMU_TYPEDEFS_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user