Subversion Repositories Projects

Rev

Rev 130 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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