Skip to content

Commit 5ef4efa

Browse files
author
aurel32
committed
Clean build: Add bt-host.h
Silence compiler warning by providing proper CONFIG_BLUEZ-independent header for the bt-host API. Signed-off-by: Jan Kiszka <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6809 c046a42c-6fe2-441c-8c8c-71466251a162
1 parent 419bafa commit 5ef4efa

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

bt-host.c

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "qemu-char.h"
2323
#include "sysemu.h"
2424
#include "net.h"
25+
#include "bt-host.h"
2526

2627
#ifndef _WIN32
2728
# include <errno.h>

bt-host.h

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#ifndef BT_HOST_H
2+
#define BT_HOST_H
3+
4+
struct HCIInfo;
5+
6+
/* bt-host.c */
7+
struct HCIInfo *bt_host_hci(const char *id);
8+
9+
#endif

hw/bt.h

-3
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ void bt_device_done(struct bt_device_s *dev);
112112
/* bt-hci.c */
113113
struct HCIInfo *bt_new_hci(struct bt_scatternet_s *net);
114114

115-
/* bt-host.c */
116-
struct HCIInfo *bt_host_hci(const char *id);
117-
118115
/* bt-vhci.c */
119116
void bt_vhci_init(struct HCIInfo *info);
120117

vl.c

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ int main(int argc, char **argv)
138138
#include "hw/isa.h"
139139
#include "hw/baum.h"
140140
#include "hw/bt.h"
141+
#include "bt-host.h"
141142
#include "net.h"
142143
#include "monitor.h"
143144
#include "console.h"

0 commit comments

Comments
 (0)