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:
Simon Morlat 2013-07-27 01:07:00 +02:00
parent 046e422602
commit 23ce819401
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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);