hfp.h (b4320e7fd03a9a6c1d049a2558585051dddaebe5) hfp.h (c528139d1e19587a03c0c7e035f7df390c0372fb)
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

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

869void hfp_setup_synchronous_connection(hfp_connection_t * hfp_connection);
870void hfp_accept_synchronous_connection(hfp_connection_t * hfp_connection, bool incoming_eSCO);
871int hfp_supports_codec(uint8_t codec, int codecs_nr, uint8_t * codecs);
872void hfp_hf_drop_mSBC_if_eSCO_not_supported(uint8_t * codecs, uint8_t * codecs_nr);
873void hfp_init_link_settings(hfp_connection_t * hfp_connection, uint8_t eSCO_S4_supported);
874hfp_link_settings_t hfp_next_link_setting(hfp_link_settings_t current_setting, uint16_t local_sco_packet_types,
875 uint16_t remote_sco_packet_types, bool eSCO_s4_supported,
876 uint8_t negotiated_codec);
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

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

869void hfp_setup_synchronous_connection(hfp_connection_t * hfp_connection);
870void hfp_accept_synchronous_connection(hfp_connection_t * hfp_connection, bool incoming_eSCO);
871int hfp_supports_codec(uint8_t codec, int codecs_nr, uint8_t * codecs);
872void hfp_hf_drop_mSBC_if_eSCO_not_supported(uint8_t * codecs, uint8_t * codecs_nr);
873void hfp_init_link_settings(hfp_connection_t * hfp_connection, uint8_t eSCO_S4_supported);
874hfp_link_settings_t hfp_next_link_setting(hfp_link_settings_t current_setting, uint16_t local_sco_packet_types,
875 uint16_t remote_sco_packet_types, bool eSCO_s4_supported,
876 uint8_t negotiated_codec);
877hfp_link_settings_t hfp_safe_settings_for_context(bool use_eSCO, uint8_t negotiated_codec, bool secure_connection_in_use);
878
879const char * hfp_hf_feature(int index);
880const char * hfp_ag_feature(int index);
881
882void hfp_log_rfcomm_message(const char * tag, uint8_t * packet, uint16_t size);
883
884const char * hfp_enhanced_call_dir2str(uint16_t index);
885const char * hfp_enhanced_call_status2str(uint16_t index);

--- 29 unchanged lines hidden ---
877
878const char * hfp_hf_feature(int index);
879const char * hfp_ag_feature(int index);
880
881void hfp_log_rfcomm_message(const char * tag, uint8_t * packet, uint16_t size);
882
883const char * hfp_enhanced_call_dir2str(uint16_t index);
884const char * hfp_enhanced_call_status2str(uint16_t index);

--- 29 unchanged lines hidden ---