]> xenbits.xensource.com Git - qemu-upstream-4.5-testing.git/commitdiff
range: add Range to typedefs
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 2 Sep 2013 08:41:37 +0000 (11:41 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 15 Sep 2013 06:36:57 +0000 (09:36 +0300)
will help simplify header dependencies.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/qemu/range.h
include/qemu/typedefs.h

index b76cc0df0933fb1fd6a2d788aa65b6d74c14076f..4a0780d4eb39f1154b47770a63feba4eaea27f19 100644 (file)
@@ -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. */
index 320554005957549825ff6ab020ddd548381efb55..a4c1b84d69879e54ffacad0e64204d998f8ca2dc 100644 (file)
@@ -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 */