moved client-server-based examples into examples/daemon

This commit is contained in:
matthias.ringwald@gmail.com 2014-09-23 07:29:25 +00:00
parent 6d61352f79
commit 2123836d92
11 changed files with 5 additions and 36 deletions

View File

@ -1,5 +1,5 @@
AUTOMAKE_OPTIONS = foreign
SUBDIRS = platforms/posix/src example
SUBDIRS = platforms/posix/src example/daemon
package:
./package.sh

View File

@ -164,4 +164,4 @@ AC_SUBST(BTSTACK_LIB_LDFLAGS)
AC_SUBST(BTSTACK_LIB_EXTENSION)
AC_SUBST(LIBUSB_CFLAGS)
AC_SUBST(LIBUSB_LDFLAGS)
AC_OUTPUT(Makefile platforms/posix/src/Makefile example/Makefile)
AC_OUTPUT(Makefile platforms/posix/src/Makefile example/daemon/Makefile)

View File

@ -1,14 +0,0 @@
/**
*/
#include <stdint.h>
#include <btstack/utils.h>
static char new_bd_addr_to_str_buffer[6*3]; // 12:45:78:01:34:67\0
static char * new_bd_addr_to_str(bd_addr_t addr){
sprintf(new_bd_addr_to_str_buffer, "%02x:%02x:%02x:%02x:%02x:%02x", addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]);
return (char *) new_bd_addr_to_str_buffer;
}
#define bd_addr_to_str(x) new_bd_addr_to_str(x)

View File

@ -1,6 +1,7 @@
BTSTACK_ROOT=../..
CC = @CC@
LDFLAGS = @LDFLAGS@ -lBTstack -L../src
CFLAGS = @CFLAGS@ -I.. -I../include
LDFLAGS = @LDFLAGS@ -lBTstack -L../../src
CFLAGS = @CFLAGS@ -I$(BTSTACK_ROOT) -I$(BTSTACK_ROOT)/include
prefix = @prefix@
all: test rfcomm-cat rfcomm-echo rfcomm-test inquiry l2cap-server l2cap-throughput

View File

@ -42,9 +42,6 @@
#include <btstack/btstack.h>
// until next BTstack Cydia update
#include "compat-svn.c"
#define MAX_DEVICES 10
struct device {
bd_addr_t address;

View File

@ -44,9 +44,6 @@
#include <btstack/hci_cmds.h>
#include <btstack/sdp_util.h>
// until next BTstack Cydia update
#include "compat-svn.c"
int l2cap_reg_fail = 0;
hci_con_handle_t con_handle;

View File

@ -43,9 +43,6 @@
#include <btstack/btstack.h>
#include <btstack/hci_cmds.h>
// until next BTstack Cydia update
#include "compat-svn.c"
#define PSM_TEST 0xdead
#define PACKET_SIZE 1000

View File

@ -50,9 +50,6 @@
#include <btstack/btstack.h>
#include <btstack/sdp_util.h>
// until next BTstack Cydia update
#include "compat-svn.c"
// input from command line arguments
bd_addr_t addr = { };
uint16_t con_handle;

View File

@ -46,9 +46,6 @@
#include <btstack/btstack.h>
#include <btstack/sdp_util.h>
// until next BTstack Cydia update
#include "compat-svn.c"
// input from command line arguments
bd_addr_t addr = { };
uint16_t con_handle;

View File

@ -46,9 +46,6 @@
#include <btstack/btstack.h>
#include <btstack/sdp_util.h>
// until next BTstack Cydia update
#include "compat-svn.c"
#define NUM_ROWS 25
#define NUM_COLS 80