Commit 784154c2 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Rename getCallsNb() to getCallCount().

parent 8783aca2
......@@ -6234,7 +6234,7 @@ void linphone_core_destroy(LinphoneCore *lc){
}
int linphone_core_get_calls_nb(const LinphoneCore *lc) {
return (int)L_GET_CPP_PTR_FROM_C_OBJECT(lc)->getCallsNb();
return (int)L_GET_CPP_PTR_FROM_C_OBJECT(lc)->getCallCount();
}
void linphone_core_soundcard_hint_check(LinphoneCore* lc) {
......
......@@ -3210,7 +3210,7 @@ void MediaSessionPrivate::updateStreams (SalMediaDescription *newMd, LinphoneCal
if (getParams()->earlyMediaSendingEnabled() && (state == LinphoneCallOutgoingEarlyMedia))
prepareEarlyMediaForking();
startStreams(targetState);
if ((state == LinphoneCallPausing) && pausedByApp && (q->getCore()->getCallsNb() == 1))
if ((state == LinphoneCallPausing) && pausedByApp && (q->getCore()->getCallCount() == 1))
linphone_core_play_named_tone(q->getCore()->getCCore(), LinphoneToneCallOnHold);
updateFrozenPayloads(newMd);
......
......@@ -60,7 +60,7 @@ void CorePrivate::iterateCalls (time_t currentRealTime, bool oneSecondElapsed) c
bool CorePrivate::canWeAddCall () const {
L_Q();
if (q->getCallsNb() < static_cast<unsigned int>(q->getCCore()->max_calls))
if (q->getCallCount() < static_cast<unsigned int>(q->getCCore()->max_calls))
return true;
lInfo() << "Maximum amount of simultaneous calls reached!";
return false;
......@@ -137,7 +137,7 @@ const list<shared_ptr<Call>> &Core::getCalls () const {
return d->calls;
}
unsigned int Core::getCallsNb () const {
unsigned int Core::getCallCount () const {
L_D();
return static_cast<unsigned int>(d->calls.size());
}
......
......@@ -73,7 +73,7 @@ public:
bool areSoundResourcesLocked () const;
std::shared_ptr<Call> getCallByRemoteAddress (const Address &addr) const;
const std::list<std::shared_ptr<Call>> &getCalls () const;
unsigned int getCallsNb () const;
unsigned int getCallCount () const;
std::shared_ptr<Call> getCurrentCall () const;
LinphoneStatus pauseAllCalls ();
void soundcardHintCheck ();
......
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