avrcp.c (2fca4dad957cd7b88f4657ed51e89c12615dda72) avrcp.c (b93f89661ecd1d19be40311be96b92932960a800)
1/*
2 * Copyright (C) 2016 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

--- 905 unchanged lines hidden (view full) ---

914 if (!connection_controller){
915 return ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER;
916 }
917 avrcp_connection_t * connection_target = avrcp_get_connection_for_avrcp_cid_for_role(AVRCP_TARGET, avrcp_cid);
918 if (!connection_target){
919 return ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER;
920 }
921 if (connection_controller->browsing_connection){
1/*
2 * Copyright (C) 2016 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

--- 905 unchanged lines hidden (view full) ---

914 if (!connection_controller){
915 return ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER;
916 }
917 avrcp_connection_t * connection_target = avrcp_get_connection_for_avrcp_cid_for_role(AVRCP_TARGET, avrcp_cid);
918 if (!connection_target){
919 return ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER;
920 }
921 if (connection_controller->browsing_connection){
922 l2cap_disconnect(connection_controller->browsing_connection->l2cap_browsing_cid, 0);
922 l2cap_disconnect(connection_controller->browsing_connection->l2cap_browsing_cid);
923 }
923 }
924 l2cap_disconnect(connection_controller->l2cap_signaling_cid, 0);
924 l2cap_disconnect(connection_controller->l2cap_signaling_cid);
925 return ERROR_CODE_SUCCESS;
926}
927
928static void avrcp_handle_start_sdp_client_query(void * context){
929 UNUSED(context);
930
931 btstack_linked_list_iterator_t it;
932 btstack_linked_list_iterator_init(&it, &avrcp_connections);

--- 121 unchanged lines hidden ---
925 return ERROR_CODE_SUCCESS;
926}
927
928static void avrcp_handle_start_sdp_client_query(void * context){
929 UNUSED(context);
930
931 btstack_linked_list_iterator_t it;
932 btstack_linked_list_iterator_init(&it, &avrcp_connections);

--- 121 unchanged lines hidden ---