mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-22 15:40:16 +00:00
made SDP support a compile flag
This commit is contained in:
parent
10642e45f5
commit
2dc9054d71
@ -227,6 +227,7 @@ if test "x$USE_COCOA_RUN_LOOP" = xyes; then
|
||||
echo "#define USE_COCOA_RUN_LOOP" >> config.h
|
||||
fi
|
||||
echo "#define USE_POSIX_RUN_LOOP" >> config.h
|
||||
echo "#define HAVE_SDP" >> config.h
|
||||
|
||||
AC_SUBST(IPHONE_IP)
|
||||
AC_SUBST(HAVE_LIBUSB)
|
||||
|
@ -115,6 +115,7 @@ uint16_t hci_create_cmd_internal(uint8_t *hci_cmd_buffer, hci_cmd_t *cmd, va_lis
|
||||
memcpy(&hci_cmd_buffer[pos], ptr, 16);
|
||||
pos += 16;
|
||||
break;
|
||||
#ifdef HAVE_SDP
|
||||
case 'S': { // Service Record (Data Element Sequence)
|
||||
ptr = va_arg(argptr, uint8_t *);
|
||||
uint16_t len = de_get_len(ptr);
|
||||
@ -122,6 +123,7 @@ uint16_t hci_create_cmd_internal(uint8_t *hci_cmd_buffer, hci_cmd_t *cmd, va_lis
|
||||
pos += len;
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user