From aa872a08e289d3c3240ec93c8b70b061e260bd83 Mon Sep 17 00:00:00 2001 From: yidongmiao Date: Fri, 7 Apr 2017 17:01:42 +0800 Subject: BT: Update to support WebSocket modified: app/bluetooth/Bluetooth.qml modified: binding-bluetooth/binding-bluetooth.pro new file: binding-bluetooth/bluetooth-agent.c new file: binding-bluetooth/bluetooth-agent.h modified: binding-bluetooth/bluetooth-api.c modified: binding-bluetooth/bluetooth-api.h modified: binding-bluetooth/bluetooth-manager.c modified: binding-bluetooth/bluetooth-manager.h new file: binding-bluetooth/bluez-client.c new file: binding-bluetooth/bluez-client.h new file: binding-bluetooth/lib_agent.c new file: binding-bluetooth/lib_agent.h new file: binding-bluetooth/lib_bluez.c new file: binding-bluetooth/lib_bluez.h new file: binding-bluetooth/lib_ofono.c new file: binding-bluetooth/lib_ofono.h new file: binding-bluetooth/lib_ofono_modem.c new file: binding-bluetooth/lib_ofono_modem.h new file: binding-bluetooth/ofono-client.c new file: binding-bluetooth/ofono-client.h modified: Bluetooth.qml Change-Id: I18bc7ed86b6759d5b55a2662cf3ebd0d1e81b07f Signed-off-by: yidongmiao Jira identifier: SPEC-528 --- binding-bluetooth/bluetooth-api.h | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'binding-bluetooth/bluetooth-api.h') diff --git a/binding-bluetooth/bluetooth-api.h b/binding-bluetooth/bluetooth-api.h index 8a7e593..07e1875 100644 --- a/binding-bluetooth/bluetooth-api.h +++ b/binding-bluetooth/bluetooth-api.h @@ -18,33 +18,35 @@ #define BLUETOOTH_API_H - - -//#define _DEBUG -#ifdef _DEBUG -#define D_PRINTF(fmt, args...) \ - printf("[DEBUG][%s:%d:%s]"fmt, __FILE__, __LINE__, __FUNCTION__, ## args) -#define D_PRINTF_RAW(fmt, args...) \ - printf(""fmt, ## args) -#else /* ifdef _DEBUG */ -#define D_PRINTF(fmt, args...) -#define D_PRINTF_RAW(fmt, args...) -#endif /* ifdef _DEBUG */ -#define E_PRINTF(fmt, args...) \ - printf("[ERROR][%s:%d:%s]"fmt, __FILE__, __LINE__, __FUNCTION__, ## args) +#define LEFT_SHIFT(shift) (0x00000001ul << (shift) ) + +#define BD_NONE 0x00000000 +#define BD_PATH LEFT_SHIFT(0) +#define BD_ADDER LEFT_SHIFT(1) +#define BD_NAME LEFT_SHIFT(2) +#define BD_ALIAS LEFT_SHIFT(3) +#define BD_PAIRED LEFT_SHIFT(4) +#define BD_TRUSTED LEFT_SHIFT(5) +#define BD_BLOCKED LEFT_SHIFT(6) +#define BD_ACLCONNECTED LEFT_SHIFT(7) +#define BD_AVCONNECTED LEFT_SHIFT(8) +#define BD_HFPCONNECTED LEFT_SHIFT(9) +#define BD_LEGACYPAIRING LEFT_SHIFT(10) +#define BD_RSSI LEFT_SHIFT(11) /* -------------- PLUGIN DEFINITIONS ----------------- */ typedef struct { void *bt_server; /* handle to implementation */ - unsigned int index; /* currently selected media file */ + unsigned int index; /* currently selected media file */ } BtCtxHandleT; + #endif /* BLUETOOTH_API_H */ -/************************************** The End Of File **************************************/ +/****************************** The End Of File ******************************/ -- cgit 1.2.3-korg