also compile example/test.c - not working otherwise

This commit is contained in:
matthias.ringwald 2009-07-14 20:41:14 +00:00
parent 37ac922291
commit fd7ed8d4e2
5 changed files with 21 additions and 11 deletions

View File

@ -1,5 +1,5 @@
AUTOMAKE_OPTIONS = foreign
SUBDIRS = src
SUBDIRS = src example
iphone_ip=@IPHONE_IP@
install-iphone: src/BTdaemon

View File

@ -125,5 +125,4 @@ fi
AC_SUBST(IPHONE_IP)
AC_SUBST(HAVE_LIBUSB)
AC_OUTPUT(Makefile)
AC_OUTPUT(src/Makefile)
AC_OUTPUT(Makefile src/Makefile example/Makefile)

View File

@ -9,18 +9,24 @@
#include "btstack.h"
// init BTstack library
int bt_open();
int bt_open(){
}
// stop using BTstack library
int bt_close();
int bt_close(){
}
// send hci cmd packet
int hci_send_cmd(hci_cmd_t *cmd, ...);
int bt_send_cmd(hci_cmd_t *cmd, ...){
}
// send hci acl packet
int hci_send_acl_packet(uint8_t *packet, int size);
int bt_send_acl_packet(uint8_t *packet, int size){
}
// register packet and event handler
void bt_register_event_packet_handler(void (*handler)(uint8_t *packet, int size));
void bt_register_acl_packet_handler (void (*handler)(uint8_t *packet, int size));
void bt_register_event_packet_handler(void (*handler)(uint8_t *packet, int size)){
}
void bt_register_acl_packet_handler (void (*handler)(uint8_t *packet, int size)){
}

View File

@ -7,6 +7,9 @@
*
*/
#pragma once
#include "hci.h"
// init BTstack library
int bt_open();
@ -14,10 +17,10 @@ int bt_open();
int bt_close();
// send hci cmd packet
int hci_send_cmd(hci_cmd_t *cmd, ...);
int bt_send_cmd(hci_cmd_t *cmd, ...);
// send hci acl packet
int hci_send_acl_packet(uint8_t *packet, int size);
int bt_send_acl_packet(uint8_t *packet, int size);
// register packet and event handler
void bt_register_event_packet_handler(void (*handler)(uint8_t *packet, int size));

View File

@ -6,6 +6,8 @@
* Created by Matthias Ringwald on 5/16/09.
*/
#pragma once
#include "hci.h"
typedef enum {