Subversion Repositories Projects

Rev

Rev 127 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 127 Rev 130
1
 
1
 
2
#if !defined(BLUETOOTH_HANDLER_H)
2
#if !defined(BLUETOOTH_HANDLER_H)
3
#define BLUETOOTH_HANDLER_H
3
#define BLUETOOTH_HANDLER_H
-
 
4
 
4
 
5
 
-
 
6
#include <bluetooth/bluetooth.h>
5
#include <bluetooth/bluetooth.h>
7
#include <bluetooth/rfcomm.h>
6
#include <bluetooth/hci.h>
8
#include <bluetooth/hci.h>
7
#include <bluetooth/hci_lib.h>
9
#include <bluetooth/hci_lib.h>
8
 
10
 
9
#include <unistd.h>//for close() for socket
11
#include <unistd.h>//for close() for socket
10
 
12
 
11
#include <stdlib.h>
13
#include <stdlib.h>
-
 
14
 
-
 
15
 
-
 
16
#include <stdio.h>
-
 
17
#include <stdlib.h>
-
 
18
#include <fcntl.h>
-
 
19
 
-
 
20
 
-
 
21
 
-
 
22
#include <errno.h>
-
 
23
#include <sys/types.h>
-
 
24
#include <netinet/in.h>
-
 
25
#include <unistd.h>//for close() for socket
-
 
26
 
-
 
27
#include <string.h>
12
 
28
 
13
#define MAX_BT_DEVICES 3
29
#define MAX_BT_DEVICES 3
14
 
30
 
15
extern int bt_device_count;
31
extern int bt_device_count;
16
 
32
 
17
extern char names[MAX_BT_DEVICES][248];
33
extern char names[MAX_BT_DEVICES][248];
18
extern char addrs[MAX_BT_DEVICES][19];
34
extern char addrs[MAX_BT_DEVICES][19];
19
 
35
 
20
int scan_bt();
36
int scan_bt();
-
 
37
int bt_host_tick(int mk_fd);
-
 
38
int bt_host_init();
-
 
39
int bt_host_send(char RxBuffer[150],int len);
21
 
40
 
22
#endif
41
#endif
23
 
42