Commit 23ce8194 authored by Simon Morlat's avatar Simon Morlat
Browse files

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.
parent 046e4226
...@@ -5885,9 +5885,9 @@ const char *linphone_core_get_zrtp_secrets_file(LinphoneCore *lc){ ...@@ -5885,9 +5885,9 @@ const char *linphone_core_get_zrtp_secrets_file(LinphoneCore *lc){
return lc->zrtp_secrets_cache; 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; MSList *calls;
const LinphoneCall *c; LinphoneCall *c;
const LinphoneAddress *address; const LinphoneAddress *address;
char *current_uri; char *current_uri;
......
...@@ -1626,7 +1626,7 @@ const char *linphone_core_get_zrtp_secrets_file(LinphoneCore *lc); ...@@ -1626,7 +1626,7 @@ const char *linphone_core_get_zrtp_secrets_file(LinphoneCore *lc);
* @param uri which should match call remote uri * @param uri which should match call remote uri
* @return LinphoneCall or NULL is no match is found * @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_to_conference(LinphoneCore *lc, LinphoneCall *call);
LINPHONE_PUBLIC int linphone_core_add_all_to_conference(LinphoneCore *lc); LINPHONE_PUBLIC int linphone_core_add_all_to_conference(LinphoneCore *lc);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment