Rename getCallsNb() to getCallCount().

This commit is contained in:
Ghislain MARY 2017-12-04 17:10:46 +01:00
parent 8783aca2db
commit 784154c21e
4 changed files with 5 additions and 5 deletions

View file

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

View file

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

View file

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

View file

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