summaryrefslogtreecommitdiffstats
path: root/bluetooth-api.h
diff options
context:
space:
mode:
authoryidongmiao <yidong.miao@cn.alps.com>2017-04-07 17:01:42 +0800
committeryidongmiao <yidong.miao@cn.alps.com>2017-04-19 09:56:40 +0800
commitab372c543ed9783336fe2bc25a83f47991d1a055 (patch)
treea4c5cf2672c1251982fdf5e8fad8e819be3276dd /bluetooth-api.h
parent562c232a4c172aa1f6fcf11765531c464f5c832a (diff)
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 <yidong.miao@cn.alps.com> Jira identifier: SPEC-528
Diffstat (limited to 'bluetooth-api.h')
-rw-r--r--bluetooth-api.h34
1 files changed, 18 insertions, 16 deletions
diff --git a/bluetooth-api.h b/bluetooth-api.h
index 8a7e593..07e1875 100644
--- a/bluetooth-api.h
+++ b/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 ******************************/