diff options
| author | Eduardo Habkost <ehabkost@redhat.com> | 2020-08-25 15:20:11 -0400 |
|---|---|---|
| committer | Eduardo Habkost <ehabkost@redhat.com> | 2020-08-27 14:04:54 -0400 |
| commit | 57af4d7fbcd0e9cf28f35d9480c0831d5657d9f2 (patch) | |
| tree | 33554bf0d6f3e4009454f2b8566750e26d02078a /hw/net/tulip.h | |
| parent | 79f6cf7e5976886d24276afc1fd4a0039e8f5972 (diff) | |
| download | focaccia-qemu-57af4d7fbcd0e9cf28f35d9480c0831d5657d9f2.tar.gz focaccia-qemu-57af4d7fbcd0e9cf28f35d9480c0831d5657d9f2.zip | |
tulip: Move TulipState 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-16-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/net/tulip.h')
| -rw-r--r-- | hw/net/tulip.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/net/tulip.h b/hw/net/tulip.h index 5271aad8d5..c3fcd4d4e1 100644 --- a/hw/net/tulip.h +++ b/hw/net/tulip.h @@ -5,6 +5,7 @@ #include "net/net.h" #define TYPE_TULIP "tulip" +typedef struct TULIPState TULIPState; #define TULIP(obj) OBJECT_CHECK(TULIPState, (obj), TYPE_TULIP) #define CSR(_x) ((_x) << 3) |