Changeset 6026 for pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
- Timestamp:
- Jun 12, 2019 6:00:35 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
r5992 r6026 224 224 } 225 225 226 void UaConfig::readObject(const ContainerNode &node) throw(Error)226 void UaConfig::readObject(const ContainerNode &node) PJSUA2_THROW(Error) 227 227 { 228 228 ContainerNode this_node = node.readContainer("UaConfig"); … … 240 240 } 241 241 242 void UaConfig::writeObject(ContainerNode &node) const throw(Error)242 void UaConfig::writeObject(ContainerNode &node) const PJSUA2_THROW(Error) 243 243 { 244 244 ContainerNode this_node = node.writeNewContainer("UaConfig"); … … 293 293 } 294 294 295 void LogConfig::readObject(const ContainerNode &node) throw(Error)295 void LogConfig::readObject(const ContainerNode &node) PJSUA2_THROW(Error) 296 296 { 297 297 ContainerNode this_node = node.readContainer("LogConfig"); … … 305 305 } 306 306 307 void LogConfig::writeObject(ContainerNode &node) const throw(Error)307 void LogConfig::writeObject(ContainerNode &node) const PJSUA2_THROW(Error) 308 308 { 309 309 ContainerNode this_node = node.writeNewContainer("LogConfig"); … … 387 387 } 388 388 389 void MediaConfig::readObject(const ContainerNode &node) throw(Error)389 void MediaConfig::readObject(const ContainerNode &node) PJSUA2_THROW(Error) 390 390 { 391 391 ContainerNode this_node = node.readContainer("MediaConfig"); … … 416 416 } 417 417 418 void MediaConfig::writeObject(ContainerNode &node) const throw(Error)418 void MediaConfig::writeObject(ContainerNode &node) const PJSUA2_THROW(Error) 419 419 { 420 420 ContainerNode this_node = node.writeNewContainer("MediaConfig"); … … 447 447 /////////////////////////////////////////////////////////////////////////////// 448 448 449 void EpConfig::readObject(const ContainerNode &node) throw(Error)449 void EpConfig::readObject(const ContainerNode &node) PJSUA2_THROW(Error) 450 450 { 451 451 ContainerNode this_node = node.readContainer("EpConfig"); … … 455 455 } 456 456 457 void EpConfig::writeObject(ContainerNode &node) const throw(Error)457 void EpConfig::writeObject(ContainerNode &node) const PJSUA2_THROW(Error) 458 458 { 459 459 ContainerNode this_node = node.writeNewContainer("EpConfig"); … … 490 490 } 491 491 492 Endpoint& Endpoint::instance() throw(Error)492 Endpoint& Endpoint::instance() PJSUA2_THROW(Error) 493 493 { 494 494 if (!instance_) { … … 1617 1617 } 1618 1618 1619 void Endpoint::libCreate() throw(Error)1619 void Endpoint::libCreate() PJSUA2_THROW(Error) 1620 1620 { 1621 1621 PJSUA2_CHECK_EXPR( pjsua_create() ); … … 1631 1631 } 1632 1632 1633 void Endpoint::libInit(const EpConfig &prmEpConfig) throw(Error)1633 void Endpoint::libInit(const EpConfig &prmEpConfig) PJSUA2_THROW(Error) 1634 1634 { 1635 1635 pjsua_config ua_cfg; … … 1718 1718 } 1719 1719 1720 void Endpoint::libStart() throw(Error)1720 void Endpoint::libStart() PJSUA2_THROW(Error) 1721 1721 { 1722 1722 PJSUA2_CHECK_EXPR(pjsua_start()); 1723 1723 } 1724 1724 1725 void Endpoint::libRegisterThread(const string &name) throw(Error)1725 void Endpoint::libRegisterThread(const string &name) PJSUA2_THROW(Error) 1726 1726 { 1727 1727 pj_thread_t *thread; … … 1774 1774 } 1775 1775 1776 void Endpoint::libDestroy(unsigned flags) throw(Error)1776 void Endpoint::libDestroy(unsigned flags) PJSUA2_THROW(Error) 1777 1777 { 1778 1778 pj_status_t status; … … 1856 1856 1857 1857 Token Endpoint::utilTimerSchedule(unsigned prmMsecDelay, 1858 Token prmUserData) throw(Error)1858 Token prmUserData) PJSUA2_THROW(Error) 1859 1859 { 1860 1860 UserTimer *ut; … … 1898 1898 } 1899 1899 1900 IntVector Endpoint::utilSslGetAvailableCiphers() throw(Error)1900 IntVector Endpoint::utilSslGetAvailableCiphers() PJSUA2_THROW(Error) 1901 1901 { 1902 1902 #if PJ_HAS_SSL_SOCK … … 1916 1916 * Endpoint NAT operations 1917 1917 */ 1918 void Endpoint::natDetectType(void) throw(Error)1918 void Endpoint::natDetectType(void) PJSUA2_THROW(Error) 1919 1919 { 1920 1920 PJSUA2_CHECK_EXPR( pjsua_detect_nat_type() ); 1921 1921 } 1922 1922 1923 pj_stun_nat_type Endpoint::natGetType() throw(Error)1923 pj_stun_nat_type Endpoint::natGetType() PJSUA2_THROW(Error) 1924 1924 { 1925 1925 pj_stun_nat_type type; … … 1931 1931 1932 1932 void Endpoint::natUpdateStunServers(const StringVector &servers, 1933 bool wait) throw(Error)1933 bool wait) PJSUA2_THROW(Error) 1934 1934 { 1935 1935 pj_str_t srv[MAX_STUN_SERVERS]; … … 1947 1947 void Endpoint::natCheckStunServers(const StringVector &servers, 1948 1948 bool wait, 1949 Token token) throw(Error)1949 Token token) PJSUA2_THROW(Error) 1950 1950 { 1951 1951 pj_str_t srv[MAX_STUN_SERVERS]; … … 1963 1963 1964 1964 void Endpoint::natCancelCheckStunServers(Token token, 1965 bool notify_cb) throw(Error)1965 bool notify_cb) PJSUA2_THROW(Error) 1966 1966 { 1967 1967 PJSUA2_CHECK_EXPR( pjsua_cancel_stun_resolution(token, notify_cb) ); … … 1973 1973 */ 1974 1974 TransportId Endpoint::transportCreate(pjsip_transport_type_e type, 1975 const TransportConfig &cfg) throw(Error) 1975 const TransportConfig &cfg) 1976 PJSUA2_THROW(Error) 1976 1977 { 1977 1978 pjsua_transport_config tcfg; … … 1985 1986 } 1986 1987 1987 IntVector Endpoint::transportEnum() throw(Error)1988 IntVector Endpoint::transportEnum() PJSUA2_THROW(Error) 1988 1989 { 1989 1990 pjsua_transport_id tids[32]; … … 1995 1996 } 1996 1997 1997 TransportInfo Endpoint::transportGetInfo(TransportId id) throw(Error)1998 TransportInfo Endpoint::transportGetInfo(TransportId id) PJSUA2_THROW(Error) 1998 1999 { 1999 2000 pjsua_transport_info pj_tinfo; … … 2006 2007 } 2007 2008 2008 void Endpoint::transportSetEnable(TransportId id, bool enabled) throw(Error) 2009 void Endpoint::transportSetEnable(TransportId id, bool enabled) 2010 PJSUA2_THROW(Error) 2009 2011 { 2010 2012 PJSUA2_CHECK_EXPR( pjsua_transport_set_enable(id, enabled) ); 2011 2013 } 2012 2014 2013 void Endpoint::transportClose(TransportId id) throw(Error)2015 void Endpoint::transportClose(TransportId id) PJSUA2_THROW(Error) 2014 2016 { 2015 2017 PJSUA2_CHECK_EXPR( pjsua_transport_close(id, PJ_FALSE) ); 2016 2018 } 2017 2019 2018 void Endpoint::transportShutdown(TransportHandle tp) throw(Error)2020 void Endpoint::transportShutdown(TransportHandle tp) PJSUA2_THROW(Error) 2019 2021 { 2020 2022 PJSUA2_CHECK_EXPR( pjsip_transport_shutdown((pjsip_transport *)tp) ); … … 2045 2047 } 2046 2048 2047 const AudioMediaVector &Endpoint::mediaEnumPorts() const throw(Error)2049 const AudioMediaVector &Endpoint::mediaEnumPorts() const PJSUA2_THROW(Error) 2048 2050 { 2049 2051 return mediaList; 2050 2052 } 2051 2053 2052 AudioMediaVector2 Endpoint::mediaEnumPorts2() const throw(Error)2054 AudioMediaVector2 Endpoint::mediaEnumPorts2() const PJSUA2_THROW(Error) 2053 2055 { 2054 2056 AudioMediaVector2 amv2; … … 2066 2068 } 2067 2069 2068 VideoMediaVector Endpoint::mediaEnumVidPorts() const throw(Error)2070 VideoMediaVector Endpoint::mediaEnumVidPorts() const PJSUA2_THROW(Error) 2069 2071 { 2070 2072 #if PJSUA_HAS_VIDEO … … 2140 2142 * Codec operations. 2141 2143 */ 2142 const CodecInfoVector &Endpoint::codecEnum() throw(Error)2144 const CodecInfoVector &Endpoint::codecEnum() PJSUA2_THROW(Error) 2143 2145 { 2144 2146 pjsua_codec_info pj_codec[MAX_CODEC_NUM]; … … 2151 2153 } 2152 2154 2153 CodecInfoVector2 Endpoint::codecEnum2() const throw(Error)2155 CodecInfoVector2 Endpoint::codecEnum2() const PJSUA2_THROW(Error) 2154 2156 { 2155 2157 CodecInfoVector2 civ2; … … 2167 2169 2168 2170 void Endpoint::codecSetPriority(const string &codec_id, 2169 pj_uint8_t priority) throw(Error)2171 pj_uint8_t priority) PJSUA2_THROW(Error) 2170 2172 { 2171 2173 pj_str_t codec_str = str2Pj(codec_id); … … 2173 2175 } 2174 2176 2175 CodecParam Endpoint::codecGetParam(const string &codec_id) const throw(Error) 2177 CodecParam Endpoint::codecGetParam(const string &codec_id) const 2178 PJSUA2_THROW(Error) 2176 2179 { 2177 2180 CodecParam param; … … 2186 2189 2187 2190 void Endpoint::codecSetParam(const string &codec_id, 2188 const CodecParam param) throw(Error)2191 const CodecParam param) PJSUA2_THROW(Error) 2189 2192 { 2190 2193 pj_str_t codec_str = str2Pj(codec_id); … … 2202 2205 } 2203 2206 2204 void Endpoint::updateCodecInfoList(pjsua_codec_info pj_codec[], unsigned count, 2207 void Endpoint::updateCodecInfoList(pjsua_codec_info pj_codec[], 2208 unsigned count, 2205 2209 CodecInfoVector &codec_list) 2206 2210 { … … 2216 2220 } 2217 2221 2218 const CodecInfoVector &Endpoint::videoCodecEnum() throw(Error)2222 const CodecInfoVector &Endpoint::videoCodecEnum() PJSUA2_THROW(Error) 2219 2223 { 2220 2224 #if PJSUA_HAS_VIDEO … … 2229 2233 } 2230 2234 2231 CodecInfoVector2 Endpoint::videoCodecEnum2() const throw(Error)2235 CodecInfoVector2 Endpoint::videoCodecEnum2() const PJSUA2_THROW(Error) 2232 2236 { 2233 2237 CodecInfoVector2 civ2; … … 2247 2251 2248 2252 void Endpoint::videoCodecSetPriority(const string &codec_id, 2249 pj_uint8_t priority) throw(Error)2253 pj_uint8_t priority) PJSUA2_THROW(Error) 2250 2254 { 2251 2255 #if PJSUA_HAS_VIDEO … … 2259 2263 2260 2264 VidCodecParam Endpoint::getVideoCodecParam(const string &codec_id) const 2261 throw(Error)2265 PJSUA2_THROW(Error) 2262 2266 { 2263 2267 VidCodecParam codec_param; … … 2275 2279 2276 2280 void Endpoint::setVideoCodecParam(const string &codec_id, 2277 const VidCodecParam ¶m) throw(Error) 2281 const VidCodecParam ¶m) 2282 PJSUA2_THROW(Error) 2278 2283 { 2279 2284 #if PJSUA_HAS_VIDEO … … 2288 2293 } 2289 2294 2290 void Endpoint::resetVideoCodecParam(const string &codec_id) throw(Error) 2295 void Endpoint::resetVideoCodecParam(const string &codec_id) 2296 PJSUA2_THROW(Error) 2291 2297 { 2292 2298 #if PJSUA_HAS_VIDEO … … 2302 2308 * Enumerate all SRTP crypto-suite names. 2303 2309 */ 2304 StringVector Endpoint::srtpCryptoEnum() throw(Error)2310 StringVector Endpoint::srtpCryptoEnum() PJSUA2_THROW(Error) 2305 2311 { 2306 2312 StringVector result; … … 2318 2324 } 2319 2325 2320 void Endpoint::handleIpChange(const IpChangeParam ¶m) throw(Error)2326 void Endpoint::handleIpChange(const IpChangeParam ¶m) PJSUA2_THROW(Error) 2321 2327 { 2322 2328 pjsua_ip_change_param ip_change_param = param.toPj();
Note: See TracChangeset
for help on using the changeset viewer.