From 5b9c76ff31125786f80922acf7074aff5b7f220c Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 21 May 2018 10:15:45 +0200 Subject: [PATCH] Revert "Improve last commit." This reverts commit 131201a7d67e0e211ded4b086927fca7dffb5401. This commit was intended to remove deprecation warnings. That would have been great if it was specified in the original commit message... --- coreapi/linphonecore.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 8eb2280b8..0ba962080 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -3724,7 +3724,7 @@ static LinphoneCall * get_unique_call(LinphoneCore *lc) { return call; } -LinphoneStatus linphone_core_accept_call_with_params(LinphoneCore *lc, LinphoneCall *call, const LinphoneCallParams *params) { +static LinphoneStatus _linphone_core_accept_call_with_params(LinphoneCore *lc, LinphoneCall *call, const LinphoneCallParams *params) { if (call == NULL) { call = get_unique_call(lc); if (call == NULL) { @@ -3736,7 +3736,11 @@ LinphoneStatus linphone_core_accept_call_with_params(LinphoneCore *lc, LinphoneC } LinphoneStatus linphone_core_accept_call(LinphoneCore *lc, LinphoneCall *call) { - return linphone_core_accept_call_with_params(lc, call, NULL); + return _linphone_core_accept_call_with_params(lc, call, NULL); +} + +LinphoneStatus linphone_core_accept_call_with_params(LinphoneCore *lc, LinphoneCall *call, const LinphoneCallParams *params) { + return _linphone_core_accept_call_with_params(lc, call, params); } LinphoneStatus linphone_core_redirect_call(LinphoneCore *lc, LinphoneCall *call, const char *redirect_uri) {