added definition for bt_use_tcp()

This commit is contained in:
matthias.ringwald 2010-02-28 21:37:59 +00:00
parent 4a83a7105b
commit 913f4ccbaf
5 changed files with 14 additions and 8 deletions

View File

@ -4,6 +4,9 @@
NEXT:
- BUG: bt_close crashes when used in CocoaTouch app
- BUG: BTdaemon crashes on iPhone when CocoaTouch app is closed (sometimes)
- BUG: malloc warning when BTdaemon is started by launchd
- Provide BTstackManager Objective-C class
- implement l2cap code
- implement rfcomm code
@ -16,9 +19,6 @@ NEXT:
- L2CAP
- segmentation
- add timeouts to cocoa run loop
- BUG: bt_close crashes when used in CocoaTouch app
- BUG: BTdaemon crashes on iPhone when CocoaTouch app is closed (sometimes)
- BUG: malloc warning when BTdaemon is started by launchd
== Release 0.2 - Incoming L2CAP supported + improved Inq Dialog

View File

@ -46,9 +46,17 @@
#include <stdint.h>
// Default TCP port for BTstack daemon
#define BTSTACK_PORT 13333
// UNIX domain socket for BTstack */
#define BTSTACK_UNIX "/tmp/BTstack"
// packet handler
typedef void (*btstack_packet_handler_t) (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size);
// optional: if called before bt_open, TCP socket is used instead of local unix socket
void bt_use_tcp(const char * address, uint16_t port);
// init BTstack library
int bt_open();

View File

@ -49,6 +49,7 @@
#include "hci.h"
#include "hci_dump.h"
#include "l2cap.h"
#include <btstack/btstack.h>
#include <btstack/linked_list.h>
#include <btstack/run_loop.h>
#include "socket_connection.h"

View File

@ -44,6 +44,8 @@
#include "../config.h"
#include <btstack/btstack.h>
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>

View File

@ -41,11 +41,6 @@
#include <stdint.h>
/** TCP port for BTstack */
#define BTSTACK_PORT 13333
/** UNIX domain socket for BTstack */
#define BTSTACK_UNIX "/tmp/BTstack"
/** opaque connection type */
typedef struct connection connection_t;