diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2020-08-25 15:20:12 -0400 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2020-08-27 14:04:54 -0400 |
commit | 7c9dcd6cabfa96ea2a89dd12041f3e63aa20a09c (patch) | |
tree | 32f8a6643e30f4da63f58648c17946389d926cd1 /include/block | |
parent | 57af4d7fbcd0e9cf28f35d9480c0831d5657d9f2 (diff) | |
download | qemu-7c9dcd6cabfa96ea2a89dd12041f3e63aa20a09c.zip qemu-7c9dcd6cabfa96ea2a89dd12041f3e63aa20a09c.tar.gz qemu-7c9dcd6cabfa96ea2a89dd12041f3e63aa20a09c.tar.bz2 |
throttle-groups: Move ThrottleGroup typedef to header
Move typedef closer to the type check macros, to make it easier
to convert the code to OBJECT_DEFINE_TYPE() in the future.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Tested-By: Roman Bolshakov <r.bolshakov@yadro.com>
Message-Id: <20200825192110.3528606-17-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r-- | include/block/throttle-groups.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/throttle-groups.h b/include/block/throttle-groups.h index 712a8e6..5e77db7 100644 --- a/include/block/throttle-groups.h +++ b/include/block/throttle-groups.h @@ -59,6 +59,7 @@ typedef struct ThrottleGroupMember { } ThrottleGroupMember; #define TYPE_THROTTLE_GROUP "throttle-group" +typedef struct ThrottleGroup ThrottleGroup; #define THROTTLE_GROUP(obj) OBJECT_CHECK(ThrottleGroup, (obj), TYPE_THROTTLE_GROUP) const char *throttle_group_get_name(ThrottleGroupMember *tgm); |