Changeset 6026 for pjproject/trunk/pjsip/include/pjsua2/endpoint.hpp
- Timestamp:
- Jun 12, 2019 6:00:35 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua2/endpoint.hpp
r5972 r6026 574 574 * @param node Container to write values from. 575 575 */ 576 virtual void readObject(const ContainerNode &node) throw(Error);576 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 577 577 578 578 /** … … 581 581 * @param node Container to write values to. 582 582 */ 583 virtual void writeObject(ContainerNode &node) const throw(Error);583 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 584 584 585 585 }; … … 674 674 * @param node Container to write values from. 675 675 */ 676 virtual void readObject(const ContainerNode &node) throw(Error);676 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 677 677 678 678 /** … … 681 681 * @param node Container to write values to. 682 682 */ 683 virtual void writeObject(ContainerNode &node) const throw(Error);683 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 684 684 }; 685 685 … … 893 893 * @param node Container to write values from. 894 894 */ 895 virtual void readObject(const ContainerNode &node) throw(Error);895 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 896 896 897 897 /** … … 900 900 * @param node Container to write values to. 901 901 */ 902 virtual void writeObject(ContainerNode &node) const throw(Error);902 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 903 903 }; 904 904 … … 923 923 * @param node Container to write values from. 924 924 */ 925 virtual void readObject(const ContainerNode &node) throw(Error);925 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 926 926 927 927 /** … … 930 930 * @param node Container to write values to. 931 931 */ 932 virtual void writeObject(ContainerNode &node) const throw(Error);932 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 933 933 934 934 }; … … 955 955 public: 956 956 /** Retrieve the singleton instance of the endpoint */ 957 static Endpoint &instance() throw(Error);957 static Endpoint &instance() PJSUA2_THROW(Error); 958 958 959 959 /** Default constructor */ … … 979 979 * application must call libDestroy() before quitting. 980 980 */ 981 void libCreate() throw(Error);981 void libCreate() PJSUA2_THROW(Error); 982 982 983 983 /** … … 997 997 * @param prmEpConfig Endpoint configurations 998 998 */ 999 void libInit( const EpConfig &prmEpConfig) throw(Error);999 void libInit( const EpConfig &prmEpConfig) PJSUA2_THROW(Error); 1000 1000 1001 1001 /** … … 1004 1004 * function any time after init(). 1005 1005 */ 1006 void libStart() throw(Error);1006 void libStart() PJSUA2_THROW(Error); 1007 1007 1008 1008 /** … … 1014 1014 * @param name The optional name to be assigned to the thread. 1015 1015 */ 1016 void libRegisterThread(const string &name) throw(Error);1016 void libRegisterThread(const string &name) PJSUA2_THROW(Error); 1017 1017 1018 1018 /** … … 1063 1063 * @param prmFlags Combination of pjsua_destroy_flag enumeration. 1064 1064 */ 1065 void libDestroy(unsigned prmFlags=0) throw(Error);1065 void libDestroy(unsigned prmFlags=0) PJSUA2_THROW(Error); 1066 1066 1067 1067 … … 1136 1136 */ 1137 1137 Token utilTimerSchedule(unsigned prmMsecDelay, 1138 Token prmUserData) throw(Error);1138 Token prmUserData) PJSUA2_THROW(Error); 1139 1139 1140 1140 /** … … 1158 1158 * Get cipher list supported by SSL/TLS backend. 1159 1159 */ 1160 IntVector utilSslGetAvailableCiphers() throw(Error);1160 IntVector utilSslGetAvailableCiphers() PJSUA2_THROW(Error); 1161 1161 1162 1162 /************************************************************************* … … 1175 1175 * Note that STUN must be enabled to run this function successfully. 1176 1176 */ 1177 void natDetectType(void) throw(Error);1177 void natDetectType(void) PJSUA2_THROW(Error); 1178 1178 1179 1179 /** … … 1186 1186 * PJ_EPENDING exception will be raised. 1187 1187 */ 1188 pj_stun_nat_type natGetType() throw(Error);1188 pj_stun_nat_type natGetType() PJSUA2_THROW(Error); 1189 1189 1190 1190 /** … … 1212 1212 */ 1213 1213 void natUpdateStunServers(const StringVector &prmServers, 1214 bool prmWait) throw(Error);1214 bool prmWait) PJSUA2_THROW(Error); 1215 1215 1216 1216 /** … … 1242 1242 void natCheckStunServers(const StringVector &prmServers, 1243 1243 bool prmWait, 1244 Token prmUserData) throw(Error);1244 Token prmUserData) PJSUA2_THROW(Error); 1245 1245 1246 1246 /** … … 1257 1257 */ 1258 1258 void natCancelCheckStunServers(Token token, 1259 bool notify_cb = false) throw(Error);1259 bool notify_cb = false) PJSUA2_THROW(Error); 1260 1260 1261 1261 /************************************************************************* … … 1273 1273 */ 1274 1274 TransportId transportCreate(pjsip_transport_type_e type, 1275 const TransportConfig &cfg) throw(Error);1275 const TransportConfig &cfg) PJSUA2_THROW(Error); 1276 1276 1277 1277 /** … … 1283 1283 * @return Array of transport IDs. 1284 1284 */ 1285 IntVector transportEnum() throw(Error);1285 IntVector transportEnum() PJSUA2_THROW(Error); 1286 1286 1287 1287 /** … … 1292 1292 * @return Transport info. 1293 1293 */ 1294 TransportInfo transportGetInfo(TransportId id) throw(Error);1294 TransportInfo transportGetInfo(TransportId id) PJSUA2_THROW(Error); 1295 1295 1296 1296 /** … … 1304 1304 * 1305 1305 */ 1306 void transportSetEnable(TransportId id, bool enabled) throw(Error);1306 void transportSetEnable(TransportId id, bool enabled) PJSUA2_THROW(Error); 1307 1307 1308 1308 /** … … 1313 1313 * @param id Transport ID. 1314 1314 */ 1315 void transportClose(TransportId id) throw(Error);1315 void transportClose(TransportId id) PJSUA2_THROW(Error); 1316 1316 1317 1317 /** … … 1328 1328 * @param tp The transport. 1329 1329 */ 1330 void transportShutdown(TransportHandle tp) throw(Error);1330 void transportShutdown(TransportHandle tp) PJSUA2_THROW(Error); 1331 1331 1332 1332 /************************************************************************* … … 1389 1389 * @return The list of media port. 1390 1390 */ 1391 const AudioMediaVector &mediaEnumPorts() const throw(Error);1391 const AudioMediaVector &mediaEnumPorts() const PJSUA2_THROW(Error); 1392 1392 1393 1393 /** … … 1396 1396 * @return The list of audio media port. 1397 1397 */ 1398 AudioMediaVector2 mediaEnumPorts2() const throw(Error);1398 AudioMediaVector2 mediaEnumPorts2() const PJSUA2_THROW(Error); 1399 1399 1400 1400 /** … … 1403 1403 * @return The list of video media port. 1404 1404 */ 1405 VideoMediaVector mediaEnumVidPorts() const throw(Error);1405 VideoMediaVector mediaEnumVidPorts() const PJSUA2_THROW(Error); 1406 1406 1407 1407 /** … … 1431 1431 * @return Array of codec info. 1432 1432 */ 1433 const CodecInfoVector &codecEnum() throw(Error);1433 const CodecInfoVector &codecEnum() PJSUA2_THROW(Error); 1434 1434 1435 1435 /** … … 1438 1438 * @return Array of codec info. 1439 1439 */ 1440 CodecInfoVector2 codecEnum2() const throw(Error);1440 CodecInfoVector2 codecEnum2() const PJSUA2_THROW(Error); 1441 1441 1442 1442 /** … … 1450 1450 */ 1451 1451 void codecSetPriority(const string &codec_id, 1452 pj_uint8_t priority) throw(Error);1452 pj_uint8_t priority) PJSUA2_THROW(Error); 1453 1453 1454 1454 /** … … 1461 1461 * 1462 1462 */ 1463 CodecParam codecGetParam(const string &codec_id) const throw(Error);1463 CodecParam codecGetParam(const string &codec_id) const PJSUA2_THROW(Error); 1464 1464 1465 1465 /** … … 1472 1472 */ 1473 1473 void codecSetParam(const string &codec_id, 1474 const CodecParam param) throw(Error);1474 const CodecParam param) PJSUA2_THROW(Error); 1475 1475 1476 1476 /** … … 1482 1482 * @return Array of video codec info. 1483 1483 */ 1484 const CodecInfoVector &videoCodecEnum() throw(Error);1484 const CodecInfoVector &videoCodecEnum() PJSUA2_THROW(Error); 1485 1485 1486 1486 /** … … 1489 1489 * @return Array of video codec info. 1490 1490 */ 1491 CodecInfoVector2 videoCodecEnum2() const throw(Error);1491 CodecInfoVector2 videoCodecEnum2() const PJSUA2_THROW(Error); 1492 1492 1493 1493 /** … … 1502 1502 */ 1503 1503 void videoCodecSetPriority(const string &codec_id, 1504 pj_uint8_t priority) throw(Error);1504 pj_uint8_t priority) PJSUA2_THROW(Error); 1505 1505 1506 1506 /** … … 1513 1513 * 1514 1514 */ 1515 VidCodecParam getVideoCodecParam(const string &codec_id) const throw(Error); 1515 VidCodecParam getVideoCodecParam(const string &codec_id) const 1516 PJSUA2_THROW(Error); 1516 1517 1517 1518 /** … … 1523 1524 */ 1524 1525 void setVideoCodecParam(const string &codec_id, 1525 const VidCodecParam ¶m) throw(Error);1526 const VidCodecParam ¶m) PJSUA2_THROW(Error); 1526 1527 1527 1528 /** … … 1531 1532 * 1532 1533 */ 1533 void resetVideoCodecParam(const string &codec_id) throw(Error);1534 void resetVideoCodecParam(const string &codec_id) PJSUA2_THROW(Error); 1534 1535 1535 1536 /** … … 1538 1539 * @return The list of SRTP crypto-suite name. 1539 1540 */ 1540 StringVector srtpCryptoEnum() throw(Error);1541 StringVector srtpCryptoEnum() PJSUA2_THROW(Error); 1541 1542 1542 1543 /************************************************************************* … … 1563 1564 * @return PJ_SUCCESS on success, other on error. 1564 1565 */ 1565 void handleIpChange(const IpChangeParam ¶m) throw(Error);1566 void handleIpChange(const IpChangeParam ¶m) PJSUA2_THROW(Error); 1566 1567 1567 1568 public:
Note: See TracChangeset
for help on using the changeset viewer.