Commit 5ef4efa426d69643d51fc98afcee662bef6a2839

Authored by aurel32
1 parent 419bafa5

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 <jan.kiszka@siemens.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6809 c046a42c-6fe2-441c-8c8c-71466251a162
bt-host.c
@@ -22,6 +22,7 @@ @@ -22,6 +22,7 @@
22 #include "qemu-char.h" 22 #include "qemu-char.h"
23 #include "sysemu.h" 23 #include "sysemu.h"
24 #include "net.h" 24 #include "net.h"
  25 +#include "bt-host.h"
25 26
26 #ifndef _WIN32 27 #ifndef _WIN32
27 # include <errno.h> 28 # include <errno.h>
bt-host.h 0 → 100644
  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
@@ -112,9 +112,6 @@ void bt_device_done(struct bt_device_s *dev); @@ -112,9 +112,6 @@ void bt_device_done(struct bt_device_s *dev);
112 /* bt-hci.c */ 112 /* bt-hci.c */
113 struct HCIInfo *bt_new_hci(struct bt_scatternet_s *net); 113 struct HCIInfo *bt_new_hci(struct bt_scatternet_s *net);
114 114
115 -/* bt-host.c */  
116 -struct HCIInfo *bt_host_hci(const char *id);  
117 -  
118 /* bt-vhci.c */ 115 /* bt-vhci.c */
119 void bt_vhci_init(struct HCIInfo *info); 116 void bt_vhci_init(struct HCIInfo *info);
120 117
@@ -138,6 +138,7 @@ int main(int argc, char **argv) @@ -138,6 +138,7 @@ int main(int argc, char **argv)
138 #include "hw/isa.h" 138 #include "hw/isa.h"
139 #include "hw/baum.h" 139 #include "hw/baum.h"
140 #include "hw/bt.h" 140 #include "hw/bt.h"
  141 +#include "bt-host.h"
141 #include "net.h" 142 #include "net.h"
142 #include "monitor.h" 143 #include "monitor.h"
143 #include "console.h" 144 #include "console.h"