mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-17 02:42:33 +00:00
l2cap_signaling: mark classic-only parts
This commit is contained in:
parent
76cdba3e40
commit
905c28a62c
@ -122,12 +122,14 @@ static uint16_t l2cap_create_signaling_internal(uint8_t * acl_buffer, hci_con_ha
|
||||
acl_buffer[pos++] = word >> 8;
|
||||
}
|
||||
break;
|
||||
#ifdef ENABLE_CLASSIC
|
||||
case 'D': // variable data. passed: len, ptr
|
||||
word = va_arg(argptr, int);
|
||||
ptr = va_arg(argptr, uint8_t *);
|
||||
(void)memcpy(&acl_buffer[pos], ptr, word);
|
||||
pos += word;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -148,9 +150,11 @@ static uint16_t l2cap_create_signaling_internal(uint8_t * acl_buffer, hci_con_ha
|
||||
return pos;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_CLASSIC
|
||||
uint16_t l2cap_create_signaling_classic(uint8_t * acl_buffer, hci_con_handle_t handle, L2CAP_SIGNALING_COMMANDS cmd, uint8_t identifier, va_list argptr){
|
||||
return l2cap_create_signaling_internal(acl_buffer, handle, true, 1, cmd, identifier, argptr);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_BLE
|
||||
uint16_t l2cap_create_signaling_le(uint8_t * acl_buffer, hci_con_handle_t handle, L2CAP_SIGNALING_COMMANDS cmd, uint8_t identifier, va_list argptr){
|
||||
|
Loading…
x
Reference in New Issue
Block a user