"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/h460/h461_base.cxx" between
h323plus-1_26_9.tar.gz and h323plus-1_27_0.tar.gz

About: H.323 Plus offers libraries for voice (VoIP) and videoconferencing using H.323.

h461_base.cxx  (h323plus-1_26_9):h461_base.cxx  (h323plus-1_27_0)
skipping to change at line 798 skipping to change at line 798
if (idx < 0) return false; if (idx < 0) return false;
} }
ApplicationMap::const_iterator i = m_applications.begin(); ApplicationMap::const_iterator i = m_applications.begin();
while (i != m_applications.end()) { while (i != m_applications.end()) {
if ((type == H461DataStore::e_associate && i->second.associate == idx) | | if ((type == H461DataStore::e_associate && i->second.associate == idx) | |
(type == H461DataStore::e_application && i->second.id == key)) (type == H461DataStore::e_application && i->second.id == key))
id.push_back(i->first); id.push_back(i->first);
++i; ++i;
} }
return (id.size() > 0); return (!id.empty());
} }
//////////////////////////////////////// ////////////////////////////////////////
template <typename mapType> template <typename mapType>
int H461ASSIGN(const mapType & map) { int H461ASSIGN(const mapType & map) {
if (map.size() == 0) if (map.size() == 0)
return 0; return 0;
return map.rbegin()->first+1; return map.rbegin()->first+1;
} }
skipping to change at line 898 skipping to change at line 898
bool H461DataStore::FindCallAssociates(int callID, std::list<int> & assoc) bool H461DataStore::FindCallAssociates(int callID, std::list<int> & assoc)
{ {
std::list<int> & apps = m_callapplications[callID].applications; std::list<int> & apps = m_callapplications[callID].applications;
std::list<int>::const_iterator i = apps.begin(); std::list<int>::const_iterator i = apps.begin();
while (i != apps.end()) { while (i != apps.end()) {
assoc.push_back(m_applications[*i].associate); assoc.push_back(m_applications[*i].associate);
++i; ++i;
} }
assoc.unique(); assoc.unique();
return (assoc.size() > 0); return (!assoc.empty());
} }
void H461DataStore::GetCallApplicationList(const PString & call) void H461DataStore::GetCallApplicationList(const PString & call)
{ {
int callid = FindCallData(call); int callid = FindCallData(call);
if (callid > -1) { if (callid > -1) {
std::list<int> apps = m_callapplications[callid].applications; std::list<int> apps = m_callapplications[callid].applications;
std::list<int>::const_iterator i = apps.begin(); std::list<int>::const_iterator i = apps.begin();
while (i != apps.end()) { while (i != apps.end()) {
Application app = m_applications[*i]; Application app = m_applications[*i];
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)