xref: /btstack/src/hci_transport_h4.c (revision 3363fde1ec81b4a9bf5f7fa572d3f5fff2120cca)
1 /*
2  *  hci_h4_transport.c
3  *
4  *  Created by Matthias Ringwald on 4/29/09.
5  *
6  */
7 
8 #include "hci_h4_transport.h"
9 
10 // prototypes
11 static int    open(void *transport_config){
12     return 0;
13 }
14 
15 static int    close(){
16     return 0;
17 }
18 
19 static int    send_cmd_packet(void *packet, int size){
20     return 0;
21 }
22 
23 static int    send_acl_packet(void *packet, int size){
24     return 0;
25 }
26 
27 static void   register_event_packet_handler(void (*handler)(void *packet, int size)){
28 }
29 static void   register_acl_packet_handler  (void (*handler)(void *packet, int size)){
30 }
31 
32 static int    get_fd() {
33     return -1;
34 }
35 
36 static int    handle_data() {
37     return 0;
38 }
39 
40 static const char * get_transport_name(){
41     return "H4";
42 }
43 
44 // private data
45 
46 typedef struct {
47 } hci_h4_transport_private_t;
48 
49 // single instance
50 hci_transport_t hci_h4_transport = {
51     open,
52     close,
53     send_cmd_packet,
54     send_acl_packet,
55     register_acl_packet_handler,
56     register_event_packet_handler,
57     get_fd,
58     handle_data,
59     get_transport_name
60 };
61