sdp_client.c (6535961a1f105e850ecdf294c128b9fc982ee05a) | sdp_client.c (0d6cebf8ee59e5b421d706dc7ae0b442d880a493) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 74 unchanged lines hidden (view full) --- 83static uint16_t sdp_client_setup_service_search_attribute_request(uint8_t * data); 84#ifdef ENABLE_SDP_EXTRA_QUERIES 85static uint16_t sdp_client_setup_service_search_request(uint8_t * data); 86static uint16_t sdp_client_setup_service_attribute_request(uint8_t * data); 87static void sdp_client_parse_service_search_response(uint8_t* packet, uint16_t size); 88static void sdp_client_parse_service_attribute_response(uint8_t* packet, uint16_t size); 89#endif 90 | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 74 unchanged lines hidden (view full) --- 83static uint16_t sdp_client_setup_service_search_attribute_request(uint8_t * data); 84#ifdef ENABLE_SDP_EXTRA_QUERIES 85static uint16_t sdp_client_setup_service_search_request(uint8_t * data); 86static uint16_t sdp_client_setup_service_attribute_request(uint8_t * data); 87static void sdp_client_parse_service_search_response(uint8_t* packet, uint16_t size); 88static void sdp_client_parse_service_attribute_response(uint8_t* packet, uint16_t size); 89#endif 90 |
91static uint8_t des_attributeIDList[] = { 0x35, 0x05, 0x0A, 0x00, 0x01, 0xff, 0xff}; // Attribute: 0x0001 - 0x0100 | 91static uint8_t des_attributeIDList[] = { 0x35, 0x05, 0x0A, 0x00, 0x00, 0xff, 0xff}; // Attribute: 0x0000 - 0xffff |
92 93// State DES Parser 94static de_state_t de_header_state; 95 96// State SDP Parser 97static sdp_parser_state_t state = GET_LIST_LENGTH; 98static uint16_t attribute_id = 0; 99static uint16_t attribute_bytes_received = 0; --- 642 unchanged lines hidden --- | 92 93// State DES Parser 94static de_state_t de_header_state; 95 96// State SDP Parser 97static sdp_parser_state_t state = GET_LIST_LENGTH; 98static uint16_t attribute_id = 0; 99static uint16_t attribute_bytes_received = 0; --- 642 unchanged lines hidden --- |