diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2013-09-02 11:41:37 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2013-09-15 09:36:57 +0300 |
commit | cfe25e2bcada943984e27ee63918fd75dc4563ac (patch) | |
tree | e36b6687e83453d4a44595f85fa3668e17be3b06 /include/qemu | |
parent | 636228a887c4d5c0dc313bbf936de969b420a91a (diff) | |
download | qemu-cfe25e2bcada943984e27ee63918fd75dc4563ac.zip qemu-cfe25e2bcada943984e27ee63918fd75dc4563ac.tar.gz qemu-cfe25e2bcada943984e27ee63918fd75dc4563ac.tar.bz2 |
range: add Range to typedefs
will help simplify header dependencies.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/qemu')
-rw-r--r-- | include/qemu/range.h | 2 | ||||
-rw-r--r-- | include/qemu/typedefs.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/qemu/range.h b/include/qemu/range.h index b76cc0d..4a0780d 100644 --- a/include/qemu/range.h +++ b/include/qemu/range.h @@ -2,6 +2,7 @@ #define QEMU_RANGE_H #include <inttypes.h> +#include <qemu/typedefs.h> /* * 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 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. * Undefined for ranges that wrap around 0. */ diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h index 3205540..a4c1b84 100644 --- a/include/qemu/typedefs.h +++ b/include/qemu/typedefs.h @@ -68,5 +68,6 @@ typedef struct QEMUSGList QEMUSGList; typedef struct SHPCDevice SHPCDevice; typedef struct FWCfgState FWCfgState; typedef struct PcGuestInfo PcGuestInfo; +typedef struct Range Range; #endif /* QEMU_TYPEDEFS_H */ |