hfp_hf.c (51a2ebde0031fdd3ad6bb64362108b25da7cb703) hfp_hf.c (2be52304616e5a00f00bd6b28e1a44dccce31d09)
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

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

1729
1730 if (hfp_hf_callsetup_status == HFP_CALLSETUP_STATUS_INCOMING_CALL_SETUP_IN_PROGRESS){
1731 hfp_connection->hf_send_chld_0 = 1;
1732 hfp_hf_run_for_context(hfp_connection);
1733 }
1734 return ERROR_CODE_SUCCESS;
1735}
1736
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

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

1729
1730 if (hfp_hf_callsetup_status == HFP_CALLSETUP_STATUS_INCOMING_CALL_SETUP_IN_PROGRESS){
1731 hfp_connection->hf_send_chld_0 = 1;
1732 hfp_hf_run_for_context(hfp_connection);
1733 }
1734 return ERROR_CODE_SUCCESS;
1735}
1736
1737uint8_t hfp_hf_terminate_held_calls(hci_con_handle_t acl_handle){
1738 hfp_connection_t * hfp_connection = get_hfp_hf_connection_context_for_acl_handle(acl_handle);
1739 if (!hfp_connection) {
1740 return ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER;
1741 }
1742
1743 hfp_connection->hf_send_chld_0 = 1;
1744 hfp_hf_run_for_context(hfp_connection);
1745
1746 return ERROR_CODE_SUCCESS;
1747}
1748
1737uint8_t hfp_hf_end_active_and_accept_other(hci_con_handle_t acl_handle){
1738 hfp_connection_t * hfp_connection = get_hfp_hf_connection_context_for_acl_handle(acl_handle);
1739 if (!hfp_connection) {
1740 return ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER;
1741 }
1742
1743 if ((hfp_hf_callsetup_status == HFP_CALLSETUP_STATUS_INCOMING_CALL_SETUP_IN_PROGRESS) ||
1744 (hfp_hf_call_status == HFP_CALL_STATUS_ACTIVE_OR_HELD_CALL_IS_PRESENT)){

--- 498 unchanged lines hidden ---
1749uint8_t hfp_hf_end_active_and_accept_other(hci_con_handle_t acl_handle){
1750 hfp_connection_t * hfp_connection = get_hfp_hf_connection_context_for_acl_handle(acl_handle);
1751 if (!hfp_connection) {
1752 return ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER;
1753 }
1754
1755 if ((hfp_hf_callsetup_status == HFP_CALLSETUP_STATUS_INCOMING_CALL_SETUP_IN_PROGRESS) ||
1756 (hfp_hf_call_status == HFP_CALL_STATUS_ACTIVE_OR_HELD_CALL_IS_PRESENT)){

--- 498 unchanged lines hidden ---