mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
fix constness of LinphoneCall * returned by linphone_core_find_call_by_uri().
There is no reason to return a const pointer, there's nothing you can do with a const LinphoneCall* in liblinphone.
This commit is contained in:
parent
046e422602
commit
23ce819401
2 changed files with 3 additions and 3 deletions
|
|
@ -5885,9 +5885,9 @@ const char *linphone_core_get_zrtp_secrets_file(LinphoneCore *lc){
|
|||
return lc->zrtp_secrets_cache;
|
||||
}
|
||||
|
||||
const LinphoneCall* linphone_core_find_call_from_uri(const LinphoneCore *lc, const char *uri) {
|
||||
LinphoneCall* linphone_core_find_call_from_uri(const LinphoneCore *lc, const char *uri) {
|
||||
MSList *calls;
|
||||
const LinphoneCall *c;
|
||||
LinphoneCall *c;
|
||||
const LinphoneAddress *address;
|
||||
char *current_uri;
|
||||
|
||||
|
|
|
|||
|
|
@ -1626,7 +1626,7 @@ const char *linphone_core_get_zrtp_secrets_file(LinphoneCore *lc);
|
|||
* @param uri which should match call remote uri
|
||||
* @return LinphoneCall or NULL is no match is found
|
||||
*/
|
||||
LINPHONE_PUBLIC const LinphoneCall* linphone_core_find_call_from_uri(const LinphoneCore *lc, const char *uri);
|
||||
LINPHONE_PUBLIC LinphoneCall* linphone_core_find_call_from_uri(const LinphoneCore *lc, const char *uri);
|
||||
|
||||
LINPHONE_PUBLIC int linphone_core_add_to_conference(LinphoneCore *lc, LinphoneCall *call);
|
||||
LINPHONE_PUBLIC int linphone_core_add_all_to_conference(LinphoneCore *lc);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue