]> rtime.felk.cvut.cz Git - tiny-bt.git/blobdiff - src/hil2cap.h
Removed files not present and bachelor thesis CD
[tiny-bt.git] / src / hil2cap.h
diff --git a/src/hil2cap.h b/src/hil2cap.h
deleted file mode 100644 (file)
index b3375fd..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-//
-// C++ Interface: hil2cap
-//
-// Description: 
-//
-//
-// Author: root <root@ubuntu>, (C) 2008
-//
-// Copyright: See COPYING file that comes with this distribution
-//
-//
-#ifndef __HIL2CAP
-#define __HIL2CAP
-
-#include"hcidriver.h"
-#include<asm/types.h>
-#include<sys/socket.h>
-#include<errno.h>
-
-/* Connection states */
-#define DISCONNECTED   0
-#define CONNECTED      1
-
-/* CMD\EVT states*/
-#define FREE           0
-#define ESTABLISHED    1
-#define PERMANENT      2
-#define DONE           3
-
-/* CMD ocf and ogf */
-
-#define INQUIRY_CMD_OP                 0x0104
-#define INQUIRY_CANCEL_CMD_OP          0x0204
-#define CREATE_CONNECTION_CMD_OP       0x0504
-#define ACCEPT_CONNECTION_REQ          0x0904
-#define DISCONNECT_CMD_OP              0x0604
-#define REMOTE_NAME_REQUEST_CMD_OP     0x1904
-#define RESET_CMD_OP                   0x030C
-#define        WRITE_LOCAL_NAME_CMD_OP         0x130C
-#define        READ_LOCAL_NAME_CMD_OP          0x140C
-#define READ_BD_ADDR_CMD_OP            0x0910
-
-
-#define MAX_CMD_STATE_REQUEST 0x0F
-#define MAX_EVT_COUNT  128
-typedef struct{
-       __u8 actual_status;
-       __u8 id;
-       __u16 req_opcode;
-       __u8 evt_code;//codes of expected ansver event,command status event will be accepted everytime
-       void (*p_serv_rutine)(void); 
-
-} __attribute__((packed)) cmd_state_request;
-
-typedef struct{
-       __u8 actual_status;
-       __u16 id;
-       __u8 evt_code;
-       int (*p_serv_rutine)(void *p_recbuf, int dd, struct hci_filter *p_pf, int *p_fchanged);
-} __attribute__((packed)) incoming_evt;
-
-typedef struct{
-       __u16 con_id;
-       __u8 con_state;
-       struct hci_dev_info master;
-       struct hci_dev_info slave;
-       uint16_t handle;
-       int socket_fd;
-}connection_hci;
-
-
-extern int create_master_connection(connection_hci *p_connection);
-extern int show_all_local_dev(struct hci_dev_info *master);
-extern int show_all_remote_dev(struct hci_dev_info *master, bt_address *p_remadrar,int *p_remd_count);
-
-extern int l2cap_call_cmd(__u16 ocf_ogf,int dd, void *p_param);
-
-extern int req_fcn_add(cmd_state_request *p_req);
-extern void req_fcn_remove(void);
-
-extern void *rutine_catch_bd_addr(void *arg);
-
-
-
-
-#endif