mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-12 10:13:43 +00:00
drop sdp packet handler
This commit is contained in:
parent
f1a4af62ee
commit
f08f6ff2f7
@ -1937,7 +1937,6 @@ int main (int argc, char * const * argv){
|
|||||||
|
|
||||||
#ifdef HAVE_SDP
|
#ifdef HAVE_SDP
|
||||||
sdp_init();
|
sdp_init();
|
||||||
sdp_register_packet_handler(&daemon_packet_handler);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_BLE
|
#ifdef HAVE_BLE
|
||||||
|
@ -68,9 +68,6 @@ static uint32_t sdp_next_service_record_handle = ((uint32_t) maxReservedServiceR
|
|||||||
|
|
||||||
static uint8_t sdp_response_buffer[SDP_RESPONSE_BUFFER_SIZE];
|
static uint8_t sdp_response_buffer[SDP_RESPONSE_BUFFER_SIZE];
|
||||||
|
|
||||||
static void (*app_packet_handler)(void * connection, uint8_t packet_type,
|
|
||||||
uint16_t channel, uint8_t *packet, uint16_t size) = NULL;
|
|
||||||
|
|
||||||
static uint16_t l2cap_cid = 0;
|
static uint16_t l2cap_cid = 0;
|
||||||
static uint16_t sdp_response_size = 0;
|
static uint16_t sdp_response_size = 0;
|
||||||
|
|
||||||
@ -79,13 +76,6 @@ void sdp_init(void){
|
|||||||
l2cap_register_service(sdp_packet_handler, PSM_SDP, 0xffff, LEVEL_0);
|
l2cap_register_service(sdp_packet_handler, PSM_SDP, 0xffff, LEVEL_0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// register packet handler
|
|
||||||
void sdp_register_packet_handler(void (*handler)(void * connection, uint8_t packet_type,
|
|
||||||
uint16_t channel, uint8_t *packet, uint16_t size)){
|
|
||||||
app_packet_handler = handler;
|
|
||||||
l2cap_cid = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
uint32_t sdp_get_service_record_handle(uint8_t * record){
|
uint32_t sdp_get_service_record_handle(uint8_t * record){
|
||||||
uint8_t * serviceRecordHandleAttribute = sdp_get_attribute_value_for_attribute_id(record, SDP_ServiceRecordHandle);
|
uint8_t * serviceRecordHandleAttribute = sdp_get_attribute_value_for_attribute_id(record, SDP_ServiceRecordHandle);
|
||||||
if (!serviceRecordHandleAttribute) return 0;
|
if (!serviceRecordHandleAttribute) return 0;
|
||||||
|
@ -80,8 +80,6 @@ int sdp_handle_service_search_attribute_request(uint8_t * packet, uint16_t remot
|
|||||||
*/
|
*/
|
||||||
void sdp_init(void);
|
void sdp_init(void);
|
||||||
|
|
||||||
void sdp_register_packet_handler(void (*handler)(void * connection, uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size));
|
|
||||||
|
|
||||||
#ifdef EMBEDDED
|
#ifdef EMBEDDED
|
||||||
/**
|
/**
|
||||||
* @brief Register service record internally - this version doesn't copy the record therefore it must be forever accessible. Preconditions:
|
* @brief Register service record internally - this version doesn't copy the record therefore it must be forever accessible. Preconditions:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user