- Add macros to distingish between requests and responses

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34999 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Ruiz Dorantes
2010-01-10 23:02:21 +00:00
parent 550d47d912
commit ee01456254
+6 -2
View File
@@ -37,8 +37,8 @@
#define htole32(x) (x) #define htole32(x) (x)
#define HZ 1000000 // us per second TODO: move somewhere more generic #define HZ 1000000 // us per second TODO: move somewhere more generic
#define bluetooth_l2cap_ertx_timeout (60*HZ) #define bluetooth_l2cap_ertx_timeout (60 * HZ)
#define bluetooth_l2cap_rtx_timeout (300*HZ) #define bluetooth_l2cap_rtx_timeout (300 * HZ)
/* /*
* Channel IDs are assigned relative to the instance of L2CAP node, i.e. * Channel IDs are assigned relative to the instance of L2CAP node, i.e.
@@ -294,6 +294,10 @@ typedef struct {
*/ */
} __attribute__ ((packed)) l2cap_info_rsp_cp; } __attribute__ ((packed)) l2cap_info_rsp_cp;
#define IS_SIGNAL_REQ(code) ((code & 1) == 0)
#define IS_SIGNAL_RSP(code) ((code & 1) == 1)
typedef union { typedef union {
/* L2CAP_CONNLESS_MTU */ /* L2CAP_CONNLESS_MTU */
struct { struct {