Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: move Bluetooth stuff out of net.h
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
- Loading branch information
Showing
8 changed files
with
17 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ | |
*/ | ||
|
||
#include "qemu-common.h" | ||
#include "net.h" | ||
#include "bt-host.h" | ||
#include "main-loop.h" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
#ifndef BT_HOST_H | ||
#define BT_HOST_H | ||
|
||
struct HCIInfo; | ||
/* BT HCI info */ | ||
|
||
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); | ||
void (*acl_send)(struct HCIInfo *hci, const uint8_t *data, int len); | ||
void *opaque; | ||
void (*evt_recv)(void *opaque, const uint8_t *data, int len); | ||
void (*acl_recv)(void *opaque, const uint8_t *data, int len); | ||
}; | ||
|
||
/* bt-host.c */ | ||
struct HCIInfo *bt_host_hci(const char *id); | ||
struct HCIInfo *qemu_next_hci(void); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters