]> Git Repo - qemu.git/commitdiff
hw/bt: Remove HCIInfo from "qemu/typedefs.h"
authorPhilippe Mathieu-Daudé <[email protected]>
Fri, 11 Jan 2019 14:08:49 +0000 (15:08 +0100)
committerThomas Huth <[email protected]>
Tue, 22 Jan 2019 04:14:32 +0000 (05:14 +0100)
Files requiring HCIInfo already include "sysemu/bt.h".

To clean "qemu/typedefs.h", move the declaration to "sysemu/bt.h"
(removing the forward declaration).

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Thomas Huth <[email protected]>
include/qemu/typedefs.h
include/sysemu/bt.h

index 38d0e423320a777a99c6e2a981a69c2787e62c27..d17f289650af3a143e981b83db66c454f4177ae9 100644 (file)
@@ -35,7 +35,6 @@ typedef struct FWCfgEntry FWCfgEntry;
 typedef struct FWCfgIoState FWCfgIoState;
 typedef struct FWCfgMemState FWCfgMemState;
 typedef struct FWCfgState FWCfgState;
-typedef struct HCIInfo HCIInfo;
 typedef struct HVFX86EmulatorState HVFX86EmulatorState;
 typedef struct I2CBus I2CBus;
 typedef struct I2SCodec I2SCodec;
index ddb05cd1090581ca5072cb9936b65bf8901b931e..2fd8c0f14bfdd2243e83925c8dbb4d7dd6670511 100644 (file)
@@ -3,7 +3,7 @@
 
 /* BT HCI info */
 
-struct HCIInfo {
+typedef struct HCIInfo {
     int (*bdaddr_set)(struct HCIInfo *hci, const uint8_t *bd_addr);
     void (*cmd_send)(struct HCIInfo *hci, const uint8_t *data, int len);
     void (*sco_send)(struct HCIInfo *hci, const uint8_t *data, int len);
@@ -11,7 +11,7 @@ struct HCIInfo {
     void *opaque;
     void (*evt_recv)(void *opaque, const uint8_t *data, int len);
     void (*acl_recv)(void *opaque, const uint8_t *data, int len);
-};
+} HCIInfo;
 
 /* bt-host.c */
 struct HCIInfo *bt_host_hci(const char *id);
This page took 0.023269 seconds and 4 git commands to generate.