|
From: Willy S. <sag...@us...> - 2002-04-08 16:44:58
|
The following file was modified in linux/include/linux/bluetooth:
Name Old version New version Tag Comment
---- ----------- ----------- --- -------
bnep.h 1.5 1.6=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Added some new messages
The diff of the modified file(s):
--- bnep.h 8 Mar 2002 09:37:19 -0000 1.5
+++ bnep.h 8 Apr 2002 10:03:36 -0000 1.6
@@ -125,6 +125,12 @@
#define BNEP_MAX_MCAST_FILTER_RANGES 5
=20
/****************** TYPE DEFINITION SECTION ******************************=
***/
+#define ETH_ALEN 6
+
+typedef struct macaddr=20
+{
+ unsigned char addr[ETH_ALEN];
+} __attribute__ ((packed)) macaddr;
=20
/* structure used to reserve space in at bt_tx_buf for hci and l2cap heade=
rs */
typedef struct bnep_tx_buf=20
@@ -253,6 +259,72 @@
u16 bnep_response_msg;
} __attribute__ ((packed)) bnep_filter_response_msg;
=20
+
+/* BNEP proc messages */
+#ifdef BNEP_PROC
+typedef struct disconnect_msg
+{
+ u16 type;
+ u16 len;
+ void *reserved;
+ u16 connection_id;
+ macaddr addr;
+} __attribute__ ((packed)) disconnect_msg;
+
+
+typedef struct connect_msg
+{
+ u16 type;
+ u16 len;
+ void *reserved;
+ u16 connection_id;
+ macaddr addr;
+} __attribute__ ((packed)) connect_msg;
+
+
+typedef struct disconnected_msg
+{
+ u16 type;
+ u16 len;
+ void *reserved;
+ u16 connection_id;
+ macaddr addr;
+} __attribute__ ((packed)) disconnected_msg;
+
+
+typedef struct connected_msg
+{
+ u16 type;
+ u16 len;
+ void *reserved;
+ u16 connection_id;
+ macaddr addr;
+} __attribute__ ((packed)) connected_msg;
+
+typedef struct handover_req_msg
+{
+ u16 type;
+ u16 len;
+ void *reserved;
+ u16 connection_id;
+ macaddr addr;
+ u8 nap_bd_addr[6];
+ u16 time_window;
+ u16 time_delay;=20
+} __attribute__ ((packed)) handover_req_msg;
+
+
+typedef struct handover_rsp_msg
+{
+ u16 type;
+ u16 len;
+ void *reserved;
+ u16 connection_id;
+ macaddr addr;
+} __attribute__ ((packed)) handover_rsp_msg;
+#endif
+
+
/****************** EXPORTED FUNCTION DECLARATION SECTION ****************=
***/
=20
int bnep_init_module(void);
@@ -260,7 +332,7 @@
void bnep_init(void);
void bnep_shutdown(void);
u32 bnep_connect_req(u8* bd_addr);
-void bnep_disconnect_req(u8 line);
+u32 bnep_disconnect_req(u8* bd_addr);
u32 bnep_test(u8 *p);
void bnep_set_mac_address_all(u8 *addr);
s32 bnep_set_multicast_filter(u8 *filter);
@@ -268,6 +340,16 @@
=20
s32 bnep_status_create_proc_file(void);
s32 bnep_status_remove_proc_file(void);
+
+#ifdef BNEP_PROC
+s32 bnep_create_proc_file(void);
+static s32 bnep_remove_proc_file(void);
+
+s32 bnep_disconnected_msg(macaddr *addr);
+s32 bnep_connected_msg(macaddr *addr);
+s32 bnep_handover_req_received_msg(macaddr *addr);
+s32 bnep_handover_rsp_received_msg(macaddr *addr);
+#endif
=20
#endif
/****************** END OF FILE bnep.h ***********************************=
***/
|