mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-03 23:47:08 +00:00
added definition for bt_use_tcp()
This commit is contained in:
parent
4a83a7105b
commit
913f4ccbaf
6
TODO.txt
6
TODO.txt
@ -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
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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"
|
||||
|
@ -44,6 +44,8 @@
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include <btstack/btstack.h>
|
||||
|
||||
#include <arpa/inet.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user