`pkg-config bluez` || bluez="no"
fi
if test "$bluez" = "yes" ; then
+ cat > $TMPC << EOF
+#include <bluetooth/bluetooth.h>
+int main(void) { return bt_error(0); }
+EOF
bluez_cflags=`pkg-config --cflags bluez`
bluez_libs=`pkg-config --libs bluez`
+ if $cc $ARCH_CFLAGS -o $TMPE ${OS_FLAGS} $bluez_cflags $TMPC \
+ $bluez_libs 2> /dev/null ; then
+ :
+ else
+ bluez="no"
+ fi
fi
##########################################
};
/* LMP layer emulation */
-void bt_submit_lmp(struct bt_device_s *bt, int length, uint8_t *data)
+static void bt_submit_lmp(struct bt_device_s *bt, int length, uint8_t *data)
{
int resp, resplen, error, op, tr;
uint8_t respdata[17];
return 0;
}
-void bt_hci_done(struct HCIInfo *info);
+static void bt_hci_done(struct HCIInfo *info);
static void bt_hci_destroy(struct bt_device_s *dev)
{
struct bt_hci_s *hci = hci_from_device(dev);
return &s->info;
}
-void bt_hci_done(struct HCIInfo *info)
+static void bt_hci_done(struct HCIInfo *info)
{
struct bt_hci_s *hci = hci_from_info(info);
int handle;