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