diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2017-05-12 21:51:59 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2017-05-12 21:51:59 +0000 |
commit | fa4479274ac0b6b5ce0652c7f758041c52a509aa (patch) | |
tree | 2e5150acc62b0d9f3fc2af20a4487f5daf51171e /binding-bluetooth/bluetooth-api.h | |
parent | 7be5ebd1174af9b695c39b2cf66f77cb171b99e7 (diff) | |
parent | aa872a08e289d3c3240ec93c8b70b061e260bd83 (diff) |
Merge "BT: Update to support WebSocket"
Diffstat (limited to 'binding-bluetooth/bluetooth-api.h')
-rw-r--r-- | binding-bluetooth/bluetooth-api.h | 34 |
1 files changed, 18 insertions, 16 deletions
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 ******************************/ |