mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
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>
This commit is contained in:
parent
57af4d7fbc
commit
7c9dcd6cab
2 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue