Changeset 6026
- Timestamp:
- Jun 12, 2019 6:00:35 AM (5 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/pjsua2_demo.cpp
r5986 r6026 175 175 176 176 177 static void mainProg1(Endpoint &ep) throw(Error)177 static void mainProg1(Endpoint &ep) 178 178 { 179 179 // Init library … … 198 198 "test1", 0, "test1") ); 199 199 MyAccount *acc(new MyAccount); 200 acc->create(acc_cfg); 200 try { 201 acc->create(acc_cfg); 202 } catch (...) { 203 std::cout << "Adding account failed" << std::endl; 204 } 201 205 202 206 pj_thread_sleep(2000); … … 220 224 } 221 225 222 static void mainProg2() throw(Error)226 static void mainProg2() 223 227 { 224 228 string json_str; … … 266 270 267 271 268 static void mainProg3(Endpoint &ep) throw(Error)272 static void mainProg3(Endpoint &ep) 269 273 { 270 274 const char *paths[] = { "../../../../tests/pjsua/wavs/input.16.wav", … … 325 329 326 330 327 static void mainProg() throw(Error)331 static void mainProg() 328 332 { 329 333 string json_str; … … 377 381 378 382 379 static void mainProg4(Endpoint &ep) throw(Error)383 static void mainProg4(Endpoint &ep) 380 384 { 381 385 // Init library -
pjproject/trunk/pjsip-apps/src/swig/java/android/app/src/main/java/org/pjsip/pjsua2/app/MyApp.java
r6012 r6026 445 445 acc.create(cfg); 446 446 } catch (Exception e) { 447 System.out.println(e); 447 448 acc = null; 448 449 return null; -
pjproject/trunk/pjsip-apps/src/swig/pjsua2.i
r5974 r6026 97 97 %ignore toPj; 98 98 99 // C++11 deprecated dynamic exception specification, but SWIG needs it. 100 #ifndef SWIG 101 # define PJSUA2_THROW(x) 102 #else 103 # define PJSUA2_THROW(x) throw(x) 104 #endif 105 106 99 107 // 100 108 // Now include the API itself. -
pjproject/trunk/pjsip/include/pjsua2/account.hpp
r5969 r6026 175 175 * @param node Container to read values from. 176 176 */ 177 virtual void readObject(const ContainerNode &node) throw(Error);177 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 178 178 179 179 /** … … 182 182 * @param node Container to write values to. 183 183 */ 184 virtual void writeObject(ContainerNode &node) const throw(Error);184 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 185 185 186 186 }; … … 274 274 * @param node Container to read values from. 275 275 */ 276 virtual void readObject(const ContainerNode &node) throw(Error);276 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 277 277 278 278 /** … … 281 281 * @param node Container to write values to. 282 282 */ 283 virtual void writeObject(ContainerNode &node) const throw(Error);283 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 284 284 }; 285 285 … … 332 332 * @param node Container to read values from. 333 333 */ 334 virtual void readObject(const ContainerNode &node) throw(Error);334 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 335 335 336 336 /** … … 339 339 * @param node Container to write values to. 340 340 */ 341 virtual void writeObject(ContainerNode &node) const throw(Error);341 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 342 342 }; 343 343 … … 399 399 * @param node Container to read values from. 400 400 */ 401 virtual void readObject(const ContainerNode &node) throw(Error);401 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 402 402 403 403 /** … … 406 406 * @param node Container to write values to. 407 407 */ 408 virtual void writeObject(ContainerNode &node) const throw(Error);408 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 409 409 }; 410 410 … … 439 439 * @param node Container to read values from. 440 440 */ 441 virtual void readObject(const ContainerNode &node) throw(Error);441 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 442 442 443 443 /** … … 446 446 * @param node Container to write values to. 447 447 */ 448 virtual void writeObject(ContainerNode &node) const throw(Error);448 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 449 449 }; 450 450 … … 693 693 * @param node Container to read values from. 694 694 */ 695 virtual void readObject(const ContainerNode &node) throw(Error);695 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 696 696 697 697 /** … … 700 700 * @param node Container to write values to. 701 701 */ 702 virtual void writeObject(ContainerNode &node) const throw(Error);702 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 703 703 }; 704 704 … … 782 782 * @param node Container to read values from. 783 783 */ 784 virtual void readObject(const ContainerNode &node) throw(Error);784 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 785 785 786 786 /** … … 789 789 * @param node Container to write values to. 790 790 */ 791 virtual void writeObject(ContainerNode &node) const throw(Error);791 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 792 792 }; 793 793 … … 885 885 * @param node Container to read values from. 886 886 */ 887 virtual void readObject(const ContainerNode &node) throw(Error);887 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 888 888 889 889 /** … … 892 892 * @param node Container to write values to. 893 893 */ 894 virtual void writeObject(ContainerNode &node) const throw(Error);894 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 895 895 }; 896 896 … … 972 972 * @param node Container to read values from. 973 973 */ 974 virtual void readObject(const ContainerNode &node) throw(Error);974 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 975 975 976 976 /** … … 979 979 * @param node Container to write values to. 980 980 */ 981 virtual void writeObject(ContainerNode &node) const throw(Error);981 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 982 982 }; 983 983 … … 1078 1078 * @param node Container to read values from. 1079 1079 */ 1080 virtual void readObject(const ContainerNode &node) throw(Error);1080 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 1081 1081 1082 1082 /** … … 1085 1085 * @param node Container to write values to. 1086 1086 */ 1087 virtual void writeObject(ContainerNode &node) const throw(Error);1087 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 1088 1088 }; 1089 1089 … … 1133 1133 * @param node Container to read values from. 1134 1134 */ 1135 virtual void readObject(const ContainerNode &node) throw(Error);1135 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 1136 1136 1137 1137 /** … … 1140 1140 * @param node Container to write values to. 1141 1141 */ 1142 virtual void writeObject(ContainerNode &node) const throw(Error);1142 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 1143 1143 1144 1144 } AccountIpChangeConfig; … … 1235 1235 * @param node Container to read values from. 1236 1236 */ 1237 virtual void readObject(const ContainerNode &node) throw(Error);1237 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 1238 1238 1239 1239 /** … … 1242 1242 * @param node Container to write values to. 1243 1243 */ 1244 virtual void writeObject(ContainerNode &node) const throw(Error);1244 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 1245 1245 }; 1246 1246 … … 1643 1643 */ 1644 1644 void create(const AccountConfig &cfg, 1645 bool make_default=false) throw(Error);1645 bool make_default=false) PJSUA2_THROW(Error); 1646 1646 1647 1647 /** … … 1668 1668 * account. 1669 1669 */ 1670 void modify(const AccountConfig &cfg) throw(Error);1670 void modify(const AccountConfig &cfg) PJSUA2_THROW(Error); 1671 1671 1672 1672 /** … … 1681 1681 * requests don't match any accounts. 1682 1682 */ 1683 void setDefault() throw(Error);1683 void setDefault() PJSUA2_THROW(Error); 1684 1684 1685 1685 /** … … 1713 1713 * @return Account info. 1714 1714 */ 1715 AccountInfo getInfo() const throw(Error);1715 AccountInfo getInfo() const PJSUA2_THROW(Error); 1716 1716 1717 1717 /** … … 1723 1723 * process. 1724 1724 */ 1725 void setRegistration(bool renew) throw(Error);1725 void setRegistration(bool renew) PJSUA2_THROW(Error); 1726 1726 1727 1727 /** … … 1734 1734 * @param pres_st Presence online status. 1735 1735 */ 1736 void setOnlineStatus(const PresenceStatus &pres_st) throw(Error);1736 void setOnlineStatus(const PresenceStatus &pres_st) PJSUA2_THROW(Error); 1737 1737 1738 1738 /** … … 1750 1750 * @param tp_id The transport ID. 1751 1751 */ 1752 void setTransport(TransportId tp_id) throw(Error);1752 void setTransport(TransportId tp_id) PJSUA2_THROW(Error); 1753 1753 1754 1754 /** … … 1760 1760 * @param prm The sending NOTIFY parameter. 1761 1761 */ 1762 void presNotify(const PresNotifyParam &prm) throw(Error);1762 void presNotify(const PresNotifyParam &prm) PJSUA2_THROW(Error); 1763 1763 1764 1764 /** … … 1770 1770 * @return The buddy list. 1771 1771 */ 1772 const BuddyVector& enumBuddies() const throw(Error);1772 const BuddyVector& enumBuddies() const PJSUA2_THROW(Error); 1773 1773 1774 1774 /** … … 1777 1777 * @return The buddy list. 1778 1778 */ 1779 BuddyVector2 enumBuddies2() const throw(Error);1779 BuddyVector2 enumBuddies2() const PJSUA2_THROW(Error); 1780 1780 1781 1781 /** … … 1793 1793 */ 1794 1794 Buddy* findBuddy(string uri, FindBuddyMatch *buddy_match = NULL) const 1795 throw(Error);1795 PJSUA2_THROW(Error); 1796 1796 1797 1797 /** … … 1804 1804 * @return The pointer to buddy. 1805 1805 */ 1806 Buddy findBuddy2(string uri) const throw(Error);1806 Buddy findBuddy2(string uri) const PJSUA2_THROW(Error); 1807 1807 1808 1808 public: -
pjproject/trunk/pjsip/include/pjsua2/call.hpp
r5972 r6026 1210 1210 * @return Call info. 1211 1211 */ 1212 CallInfo getInfo() const throw(Error);1212 CallInfo getInfo() const PJSUA2_THROW(Error); 1213 1213 1214 1214 /** … … 1264 1264 * @return The audio media. 1265 1265 */ 1266 AudioMedia getAudioMedia(int med_idx) const throw(Error);1266 AudioMedia getAudioMedia(int med_idx) const PJSUA2_THROW(Error); 1267 1267 1268 1268 /** … … 1277 1277 * @return The video media. 1278 1278 */ 1279 VideoMedia getEncodingVideoMedia(int med_idx) const throw(Error);1279 VideoMedia getEncodingVideoMedia(int med_idx) const PJSUA2_THROW(Error); 1280 1280 1281 1281 /** … … 1290 1290 * @return The video media. 1291 1291 */ 1292 VideoMedia getDecodingVideoMedia(int med_idx) const throw(Error);1292 VideoMedia getDecodingVideoMedia(int med_idx) const PJSUA2_THROW(Error); 1293 1293 1294 1294 /** … … 1349 1349 * @see Endpoint::natGetType(), natTypeInSdp 1350 1350 */ 1351 pj_stun_nat_type getRemNatType() throw(Error);1351 pj_stun_nat_type getRemNatType() PJSUA2_THROW(Error); 1352 1352 1353 1353 /** … … 1360 1360 * request. 1361 1361 */ 1362 void makeCall(const string &dst_uri, const CallOpParam &prm) throw(Error); 1362 void makeCall(const string &dst_uri, const CallOpParam &prm) 1363 PJSUA2_THROW(Error); 1363 1364 1364 1365 /** … … 1384 1385 * INVITE request. 1385 1386 */ 1386 void answer(const CallOpParam &prm) throw(Error);1387 void answer(const CallOpParam &prm) PJSUA2_THROW(Error); 1387 1388 1388 1389 /** … … 1404 1405 * request/response message. 1405 1406 */ 1406 void hangup(const CallOpParam &prm) throw(Error);1407 void hangup(const CallOpParam &prm) PJSUA2_THROW(Error); 1407 1408 1408 1409 /** … … 1418 1419 * the request. 1419 1420 */ 1420 void setHold(const CallOpParam &prm) throw(Error);1421 void setHold(const CallOpParam &prm) PJSUA2_THROW(Error); 1421 1422 1422 1423 /** … … 1433 1434 * the request. 1434 1435 */ 1435 void reinvite(const CallOpParam &prm) throw(Error);1436 void reinvite(const CallOpParam &prm) PJSUA2_THROW(Error); 1436 1437 1437 1438 /** … … 1443 1444 * the request. 1444 1445 */ 1445 void update(const CallOpParam &prm) throw(Error);1446 void update(const CallOpParam &prm) PJSUA2_THROW(Error); 1446 1447 1447 1448 /** … … 1460 1461 * the request. 1461 1462 */ 1462 void xfer(const string &dest, const CallOpParam &prm) throw(Error);1463 void xfer(const string &dest, const CallOpParam &prm) PJSUA2_THROW(Error); 1463 1464 1464 1465 /** … … 1478 1479 */ 1479 1480 void xferReplaces(const Call& dest_call, 1480 const CallOpParam &prm) throw(Error);1481 const CallOpParam &prm) PJSUA2_THROW(Error); 1481 1482 1482 1483 /** … … 1502 1503 * not accepted here. 1503 1504 */ 1504 void processRedirect(pjsip_redirect_op cmd) throw(Error);1505 void processRedirect(pjsip_redirect_op cmd) PJSUA2_THROW(Error); 1505 1506 1506 1507 /** … … 1509 1510 * @param digits DTMF string digits to be sent. 1510 1511 */ 1511 void dialDtmf(const string &digits) throw(Error);1512 void dialDtmf(const string &digits) PJSUA2_THROW(Error); 1512 1513 1513 1514 /** … … 1516 1517 * @param param The send DTMF parameter. 1517 1518 */ 1518 void sendDtmf(const CallSendDtmfParam ¶m) throw(Error);1519 void sendDtmf(const CallSendDtmfParam ¶m) PJSUA2_THROW(Error); 1519 1520 1520 1521 /** … … 1530 1531 * the IM callback is called. 1531 1532 */ 1532 void sendInstantMessage(const SendInstantMessageParam& prm) throw(Error); 1533 void sendInstantMessage(const SendInstantMessageParam& prm) 1534 PJSUA2_THROW(Error); 1533 1535 1534 1536 /** … … 1541 1543 */ 1542 1544 void sendTypingIndication(const SendTypingIndicationParam &prm) 1543 throw(Error);1545 PJSUA2_THROW(Error); 1544 1546 1545 1547 /** … … 1553 1555 * included in outgoing request. 1554 1556 */ 1555 void sendRequest(const CallSendRequestParam &prm) throw(Error);1557 void sendRequest(const CallSendRequestParam &prm) PJSUA2_THROW(Error); 1556 1558 1557 1559 /** … … 1563 1565 * @return Call dump and media statistics string. 1564 1566 */ 1565 string dump(bool with_media, const string indent) throw(Error);1567 string dump(bool with_media, const string indent) PJSUA2_THROW(Error); 1566 1568 1567 1569 /** … … 1601 1603 */ 1602 1604 void vidSetStream(pjsua_call_vid_strm_op op, 1603 const CallVidSetStreamParam ¶m) throw(Error);1605 const CallVidSetStreamParam ¶m) PJSUA2_THROW(Error); 1604 1606 1605 1607 /** … … 1610 1612 * @return The stream info. 1611 1613 */ 1612 StreamInfo getStreamInfo(unsigned med_idx) const throw(Error);1614 StreamInfo getStreamInfo(unsigned med_idx) const PJSUA2_THROW(Error); 1613 1615 1614 1616 /** … … 1619 1621 * @return The stream statistic. 1620 1622 */ 1621 StreamStat getStreamStat(unsigned med_idx) const throw(Error);1623 StreamStat getStreamStat(unsigned med_idx) const PJSUA2_THROW(Error); 1622 1624 1623 1625 /** … … 1628 1630 * @return The transport info. 1629 1631 */ 1630 MediaTransportInfo getMedTransportInfo(unsigned med_idx) const throw(Error); 1632 MediaTransportInfo getMedTransportInfo(unsigned med_idx) const 1633 PJSUA2_THROW(Error); 1631 1634 1632 1635 /** -
pjproject/trunk/pjsip/include/pjsua2/config.hpp
r5878 r6026 48 48 #endif 49 49 50 51 /* 52 * C++11 deprecated dynamic exception specification, but SWIG needs it. 53 */ 54 #ifndef SWIG 55 # define PJSUA2_THROW(x) 56 #else 57 # define PJSUA2_THROW(x) throw(x) 58 #endif 59 50 60 /** 51 61 * @} PJSUA2_CFG -
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: -
pjproject/trunk/pjsip/include/pjsua2/json.hpp
r4704 r6026 59 59 * @param filename The file name. 60 60 */ 61 virtual void loadFile(const string &filename) throw(Error);61 virtual void loadFile(const string &filename) PJSUA2_THROW(Error); 62 62 63 63 /** … … 66 66 * @param input The string. 67 67 */ 68 virtual void loadString(const string &input) throw(Error);68 virtual void loadString(const string &input) PJSUA2_THROW(Error); 69 69 70 70 /** … … 73 73 * @param filename The file name. 74 74 */ 75 virtual void saveFile(const string &filename) throw(Error);75 virtual void saveFile(const string &filename) PJSUA2_THROW(Error); 76 76 77 77 /** 78 78 * Write this document to string. 79 79 */ 80 virtual string saveString() throw(Error);80 virtual string saveString() PJSUA2_THROW(Error); 81 81 82 82 /** -
pjproject/trunk/pjsip/include/pjsua2/media.hpp
r5972 r6026 240 240 * Get information about the specified conference port. 241 241 */ 242 ConfPortInfo getPortInfo() const throw(Error);242 ConfPortInfo getPortInfo() const PJSUA2_THROW(Error); 243 243 244 244 /** … … 250 250 * Get information from specific port id. 251 251 */ 252 static ConfPortInfo getPortInfoFromId(int port_id) throw(Error);252 static ConfPortInfo getPortInfoFromId(int port_id) PJSUA2_THROW(Error); 253 253 254 254 /** … … 265 265 * @param sink The destination Media. 266 266 */ 267 void startTransmit(const AudioMedia &sink) const throw(Error);267 void startTransmit(const AudioMedia &sink) const PJSUA2_THROW(Error); 268 268 269 269 /** … … 294 294 void startTransmit2(const AudioMedia &sink, 295 295 const AudioMediaTransmitParam ¶m) const 296 throw(Error);296 PJSUA2_THROW(Error); 297 297 298 298 /** … … 302 302 * 303 303 */ 304 void stopTransmit(const AudioMedia &sink) const throw(Error);304 void stopTransmit(const AudioMedia &sink) const PJSUA2_THROW(Error); 305 305 306 306 /** … … 312 312 * the port. 313 313 */ 314 void adjustRxLevel(float level) throw(Error);314 void adjustRxLevel(float level) PJSUA2_THROW(Error); 315 315 316 316 /** … … 322 322 * the port. 323 323 */ 324 void adjustTxLevel(float level) throw(Error);324 void adjustTxLevel(float level) PJSUA2_THROW(Error); 325 325 326 326 /** … … 329 329 * @return Signal level in percent. 330 330 */ 331 unsigned getRxLevel() const throw(Error);331 unsigned getRxLevel() const PJSUA2_THROW(Error); 332 332 333 333 /** … … 336 336 * @return Signal level in percent. 337 337 */ 338 unsigned getTxLevel() const throw(Error);338 unsigned getTxLevel() const PJSUA2_THROW(Error); 339 339 340 340 /** … … 382 382 * 383 383 */ 384 void registerMediaPort(MediaPort port) throw(Error);384 void registerMediaPort(MediaPort port) PJSUA2_THROW(Error); 385 385 386 386 /** … … 393 393 * 394 394 */ 395 void registerMediaPort2(MediaPort port, pj_pool_t *pool) throw(Error); 395 void registerMediaPort2(MediaPort port, pj_pool_t *pool) 396 PJSUA2_THROW(Error); 396 397 397 398 /** … … 470 471 */ 471 472 void createPlayer(const string &file_name, 472 unsigned options=0) throw(Error);473 unsigned options=0) PJSUA2_THROW(Error); 473 474 474 475 /** … … 485 486 void createPlaylist(const StringVector &file_names, 486 487 const string &label="", 487 unsigned options=0) throw(Error);488 unsigned options=0) PJSUA2_THROW(Error); 488 489 489 490 /** … … 493 494 * @return the info. 494 495 */ 495 AudioMediaPlayerInfo getInfo() const throw(Error);496 AudioMediaPlayerInfo getInfo() const PJSUA2_THROW(Error); 496 497 497 498 /** … … 501 502 * @return Current playback position, in samples. 502 503 */ 503 pj_uint32_t getPos() const throw(Error);504 pj_uint32_t getPos() const PJSUA2_THROW(Error); 504 505 505 506 /** … … 509 510 * @param samples The desired playback position, in samples. 510 511 */ 511 void setPos(pj_uint32_t samples) throw(Error);512 void setPos(pj_uint32_t samples) PJSUA2_THROW(Error); 512 513 513 514 /** … … 597 598 unsigned enc_type=0, 598 599 long max_size=0, 599 unsigned options=0) throw(Error);600 unsigned options=0) PJSUA2_THROW(Error); 600 601 601 602 /** … … 697 698 */ 698 699 void createToneGenerator(unsigned clock_rate = 16000, 699 unsigned channel_count = 1) throw(Error);700 unsigned channel_count = 1) PJSUA2_THROW(Error); 700 701 701 702 /** … … 708 709 * Instruct the tone generator to stop current processing. 709 710 */ 710 void stop() throw(Error);711 void stop() PJSUA2_THROW(Error); 711 712 712 713 /** … … 714 715 * tone in the playback list. 715 716 */ 716 void rewind() throw(Error);717 void rewind() PJSUA2_THROW(Error); 717 718 718 719 /** … … 727 728 */ 728 729 void play(const ToneDescVector &tones, 729 bool loop=false) throw(Error);730 bool loop=false) PJSUA2_THROW(Error); 730 731 731 732 /** … … 741 742 */ 742 743 void playDigits(const ToneDigitVector &digits, 743 bool loop=false) throw(Error);744 bool loop=false) PJSUA2_THROW(Error); 744 745 745 746 /** … … 748 749 * @return The digitmap currently used by the tone generator 749 750 */ 750 ToneDigitMapVector getDigitMap() const throw(Error);751 ToneDigitMapVector getDigitMap() const PJSUA2_THROW(Error); 751 752 752 753 /** … … 755 756 * @param digit_map Digitmap to be used by the tone generator. 756 757 */ 757 void setDigitMap(const ToneDigitMapVector &digit_map) throw(Error);758 void setDigitMap(const ToneDigitMapVector &digit_map) PJSUA2_THROW(Error); 758 759 759 760 private: … … 852 853 * @return Device ID of the capture device. 853 854 */ 854 int getCaptureDev() const throw(Error);855 int getCaptureDev() const PJSUA2_THROW(Error); 855 856 856 857 /** … … 859 860 * @return Audio media for the capture device. 860 861 */ 861 AudioMedia &getCaptureDevMedia() throw(Error);862 AudioMedia &getCaptureDevMedia() PJSUA2_THROW(Error); 862 863 863 864 /** … … 867 868 * @return Device ID of the playback device. 868 869 */ 869 int getPlaybackDev() const throw(Error);870 int getPlaybackDev() const PJSUA2_THROW(Error); 870 871 871 872 /** … … 874 875 * @return Audio media for the speaker/playback device. 875 876 */ 876 AudioMedia &getPlaybackDevMedia() throw(Error);877 AudioMedia &getPlaybackDevMedia() PJSUA2_THROW(Error); 877 878 878 879 /** … … 884 885 * @param capture_dev Device ID of the capture device. 885 886 */ 886 void setCaptureDev(int capture_dev) const throw(Error);887 void setCaptureDev(int capture_dev) const PJSUA2_THROW(Error); 887 888 888 889 /** … … 894 895 * @param playback_dev Device ID of the playback device. 895 896 */ 896 void setPlaybackDev(int playback_dev) const throw(Error);897 void setPlaybackDev(int playback_dev) const PJSUA2_THROW(Error); 897 898 898 899 /** … … 905 906 * @return The list of audio device info. 906 907 */ 907 const AudioDevInfoVector &enumDev() throw(Error);908 const AudioDevInfoVector &enumDev() PJSUA2_THROW(Error); 908 909 909 910 /** … … 912 913 * @return The list of audio device info. 913 914 */ 914 AudioDevInfoVector2 enumDev2() const throw(Error);915 AudioDevInfoVector2 enumDev2() const PJSUA2_THROW(Error); 915 916 916 917 /** … … 920 921 * 921 922 */ 922 void setNullDev() throw(Error);923 void setNullDev() PJSUA2_THROW(Error); 923 924 924 925 /** … … 939 940 * 940 941 */ 941 void setSndDevMode(unsigned mode) const throw(Error);942 void setSndDevMode(unsigned mode) const PJSUA2_THROW(Error); 942 943 943 944 /** … … 965 966 * 966 967 */ 967 void setEcOptions(unsigned tail_msec, unsigned options) throw(Error);968 void setEcOptions(unsigned tail_msec, unsigned options) PJSUA2_THROW(Error); 968 969 969 970 /** … … 973 974 * If AEC is disabled, the value will be zero. 974 975 */ 975 unsigned getEcTail() const throw(Error);976 unsigned getEcTail() const PJSUA2_THROW(Error); 976 977 977 978 /** … … 992 993 * 993 994 */ 994 void refreshDevs() throw(Error);995 void refreshDevs() PJSUA2_THROW(Error); 995 996 996 997 /** … … 1011 1012 * by this method once it returns successfully. 1012 1013 */ 1013 AudioDevInfo getDevInfo(int id) const throw(Error);1014 AudioDevInfo getDevInfo(int id) const PJSUA2_THROW(Error); 1014 1015 1015 1016 /** … … 1023 1024 */ 1024 1025 int lookupDev(const string &drv_name, 1025 const string &dev_name) const throw(Error);1026 const string &dev_name) const PJSUA2_THROW(Error); 1026 1027 1027 1028 /** … … 1053 1054 * 1054 1055 */ 1055 void 1056 setExtFormat(const MediaFormatAudio &format, bool keep=true) throw(Error);1056 void setExtFormat(const MediaFormatAudio &format, bool keep=true) 1057 PJSUA2_THROW(Error); 1057 1058 1058 1059 /** … … 1071 1072 * 1072 1073 */ 1073 MediaFormatAudio getExtFormat() const throw(Error);1074 MediaFormatAudio getExtFormat() const PJSUA2_THROW(Error); 1074 1075 1075 1076 /** … … 1092 1093 */ 1093 1094 void 1094 setInputLatency(unsigned latency_msec, bool keep=true) throw(Error);1095 setInputLatency(unsigned latency_msec, bool keep=true) PJSUA2_THROW(Error); 1095 1096 1096 1097 /** … … 1109 1110 * 1110 1111 */ 1111 unsigned getInputLatency() const throw(Error);1112 unsigned getInputLatency() const PJSUA2_THROW(Error); 1112 1113 1113 1114 /** … … 1131 1132 */ 1132 1133 void 1133 setOutputLatency(unsigned latency_msec, bool keep=true) throw(Error);1134 setOutputLatency(unsigned latency_msec, bool keep=true) PJSUA2_THROW(Error); 1134 1135 1135 1136 /** … … 1148 1149 * 1149 1150 */ 1150 unsigned getOutputLatency() const throw(Error);1151 unsigned getOutputLatency() const PJSUA2_THROW(Error); 1151 1152 1152 1153 /** … … 1170 1171 * 1171 1172 */ 1172 void setInputVolume(unsigned volume, bool keep=true) throw(Error);1173 void setInputVolume(unsigned volume, bool keep=true) PJSUA2_THROW(Error); 1173 1174 1174 1175 /** … … 1187 1188 * 1188 1189 */ 1189 unsigned getInputVolume() const throw(Error);1190 unsigned getInputVolume() const PJSUA2_THROW(Error); 1190 1191 1191 1192 /** … … 1208 1209 * 1209 1210 */ 1210 void setOutputVolume(unsigned volume, bool keep=true) throw(Error);1211 void setOutputVolume(unsigned volume, bool keep=true) PJSUA2_THROW(Error); 1211 1212 1212 1213 /** … … 1225 1226 * 1226 1227 */ 1227 unsigned getOutputVolume() const throw(Error);1228 unsigned getOutputVolume() const PJSUA2_THROW(Error); 1228 1229 1229 1230 /** … … 1242 1243 * 1243 1244 */ 1244 unsigned getInputSignal() const throw(Error);1245 unsigned getInputSignal() const PJSUA2_THROW(Error); 1245 1246 1246 1247 /** … … 1259 1260 * 1260 1261 */ 1261 unsigned getOutputSignal() const throw(Error);1262 unsigned getOutputSignal() const PJSUA2_THROW(Error); 1262 1263 1263 1264 /** … … 1280 1281 * 1281 1282 */ 1282 void 1283 setInputRoute(pjmedia_aud_dev_route route, bool keep=true) throw(Error);1283 void setInputRoute(pjmedia_aud_dev_route route, bool keep=true) 1284 PJSUA2_THROW(Error); 1284 1285 1285 1286 /** … … 1298 1299 * 1299 1300 */ 1300 pjmedia_aud_dev_route getInputRoute() const throw(Error);1301 pjmedia_aud_dev_route getInputRoute() const PJSUA2_THROW(Error); 1301 1302 1302 1303 /** … … 1319 1320 * 1320 1321 */ 1321 void 1322 setOutputRoute(pjmedia_aud_dev_route route, bool keep=true) throw(Error);1322 void setOutputRoute(pjmedia_aud_dev_route route, bool keep=true) 1323 PJSUA2_THROW(Error); 1323 1324 1324 1325 /** … … 1337 1338 * 1338 1339 */ 1339 pjmedia_aud_dev_route getOutputRoute() const throw(Error);1340 pjmedia_aud_dev_route getOutputRoute() const PJSUA2_THROW(Error); 1340 1341 1341 1342 /** … … 1358 1359 * 1359 1360 */ 1360 void setVad(bool enable, bool keep=true) throw(Error);1361 void setVad(bool enable, bool keep=true) PJSUA2_THROW(Error); 1361 1362 1362 1363 /** … … 1374 1375 * 1375 1376 */ 1376 bool getVad() const throw(Error);1377 bool getVad() const PJSUA2_THROW(Error); 1377 1378 1378 1379 /** … … 1395 1396 * 1396 1397 */ 1397 void setCng(bool enable, bool keep=true) throw(Error);1398 void setCng(bool enable, bool keep=true) PJSUA2_THROW(Error); 1398 1399 1399 1400 /** … … 1411 1412 * 1412 1413 */ 1413 bool getCng() const throw(Error);1414 bool getCng() const PJSUA2_THROW(Error); 1414 1415 1415 1416 /** … … 1432 1433 * 1433 1434 */ 1434 void setPlc(bool enable, bool keep=true) throw(Error);1435 void setPlc(bool enable, bool keep=true) PJSUA2_THROW(Error); 1435 1436 1436 1437 /** … … 1448 1449 * 1449 1450 */ 1450 bool getPlc() const throw(Error);1451 bool getPlc() const PJSUA2_THROW(Error); 1451 1452 1452 1453 private: … … 1465 1466 1466 1467 void clearAudioDevList(); 1467 int getActiveDev(bool is_capture) const throw(Error);1468 int getActiveDev(bool is_capture) const PJSUA2_THROW(Error); 1468 1469 1469 1470 friend class Endpoint; … … 1608 1609 * Get information about the specified conference port. 1609 1610 */ 1610 VidConfPortInfo getPortInfo() const throw(Error);1611 VidConfPortInfo getPortInfo() const PJSUA2_THROW(Error); 1611 1612 1612 1613 /** … … 1618 1619 * Get information from specific port id. 1619 1620 */ 1620 static VidConfPortInfo getPortInfoFromId(int port_id) throw(Error);1621 static VidConfPortInfo getPortInfoFromId(int port_id) PJSUA2_THROW(Error); 1621 1622 1622 1623 /** … … 1636 1637 void startTransmit(const VideoMedia &sink, 1637 1638 const VideoMediaTransmitParam ¶m) const 1638 throw(Error);1639 PJSUA2_THROW(Error); 1639 1640 1640 1641 /** … … 1644 1645 * 1645 1646 */ 1646 void stopTransmit(const VideoMedia &sink) const throw(Error);1647 void stopTransmit(const VideoMedia &sink) const PJSUA2_THROW(Error); 1647 1648 1648 1649 /** … … 1675 1676 * param pool The memory pool. 1676 1677 */ 1677 void registerMediaPort(MediaPort port, pj_pool_t *pool) throw(Error);1678 void registerMediaPort(MediaPort port, pj_pool_t *pool) PJSUA2_THROW(Error); 1678 1679 1679 1680 /** … … 1770 1771 * @return video window info. 1771 1772 */ 1772 VideoWindowInfo getInfo() const throw(Error);1773 VideoWindowInfo getInfo() const PJSUA2_THROW(Error); 1773 1774 1774 1775 /** … … 1778 1779 * @return Video media of this renderer window. 1779 1780 */ 1780 VideoMedia getVideoMedia() throw(Error);1781 VideoMedia getVideoMedia() PJSUA2_THROW(Error); 1781 1782 1782 1783 /** … … 1789 1790 * 1790 1791 */ 1791 void Show(bool show) throw(Error);1792 void Show(bool show) PJSUA2_THROW(Error); 1792 1793 1793 1794 /** … … 1799 1800 * 1800 1801 */ 1801 void setPos(const MediaCoordinate &pos) throw(Error);1802 void setPos(const MediaCoordinate &pos) PJSUA2_THROW(Error); 1802 1803 1803 1804 /** … … 1809 1810 * 1810 1811 */ 1811 void setSize(const MediaSize &size) throw(Error);1812 void setSize(const MediaSize &size) PJSUA2_THROW(Error); 1812 1813 1813 1814 /** … … 1822 1823 * negative value for counter-clockwise rotation. 1823 1824 */ 1824 void rotate(int angle) throw(Error);1825 void rotate(int angle) PJSUA2_THROW(Error); 1825 1826 1826 1827 /** … … 1832 1833 * @param win The new output window. 1833 1834 */ 1834 void setWindow(const VideoWindowHandle &win) throw(Error);1835 void setWindow(const VideoWindowHandle &win) PJSUA2_THROW(Error); 1835 1836 1836 1837 private: … … 1921 1922 * @param p Video preview parameters. 1922 1923 */ 1923 void start(const VideoPreviewOpParam ¶m) throw(Error);1924 void start(const VideoPreviewOpParam ¶m) PJSUA2_THROW(Error); 1924 1925 1925 1926 /** 1926 1927 * Stop video preview. 1927 1928 */ 1928 void stop() throw(Error);1929 void stop() PJSUA2_THROW(Error); 1929 1930 1930 1931 /* … … 1938 1939 * @return Video media of the video capture device. 1939 1940 */ 1940 VideoMedia getVideoMedia() throw(Error);1941 VideoMedia getVideoMedia() PJSUA2_THROW(Error); 1941 1942 1942 1943 private: … … 2029 2030 * that accepts video device index as its parameter. 2030 2031 */ 2031 void refreshDevs() throw(Error);2032 void refreshDevs() PJSUA2_THROW(Error); 2032 2033 2033 2034 /** … … 2045 2046 * @return The list of video device info 2046 2047 */ 2047 VideoDevInfo getDevInfo(int dev_id) const throw(Error);2048 VideoDevInfo getDevInfo(int dev_id) const PJSUA2_THROW(Error); 2048 2049 2049 2050 /** … … 2055 2056 * @return The list of video device info 2056 2057 */ 2057 const VideoDevInfoVector &enumDev() throw(Error);2058 const VideoDevInfoVector &enumDev() PJSUA2_THROW(Error); 2058 2059 2059 2060 /** … … 2062 2063 * @return The list of video device info 2063 2064 */ 2064 VideoDevInfoVector2 enumDev2() const throw(Error);2065 VideoDevInfoVector2 enumDev2() const PJSUA2_THROW(Error); 2065 2066 2066 2067 /** … … 2074 2075 */ 2075 2076 int lookupDev(const string &drv_name, 2076 const string &dev_name) const throw(Error);2077 const string &dev_name) const PJSUA2_THROW(Error); 2077 2078 2078 2079 /** … … 2106 2107 void setFormat(int dev_id, 2107 2108 const MediaFormatVideo &format, 2108 bool keep) throw(Error);2109 bool keep) PJSUA2_THROW(Error); 2109 2110 2110 2111 /** … … 2123 2124 * @return keep The video format. 2124 2125 */ 2125 MediaFormatVideo getFormat(int dev_id) const throw(Error);2126 MediaFormatVideo getFormat(int dev_id) const PJSUA2_THROW(Error); 2126 2127 2127 2128 /** … … 2146 2147 void setInputScale(int dev_id, 2147 2148 const MediaSize &scale, 2148 bool keep) throw(Error);2149 bool keep) PJSUA2_THROW(Error); 2149 2150 2150 2151 /** … … 2163 2164 * @return keep The video format. 2164 2165 */ 2165 MediaSize getInputScale(int dev_id) const throw(Error);2166 MediaSize getInputScale(int dev_id) const PJSUA2_THROW(Error); 2166 2167 2167 2168 /** … … 2184 2185 * future use. 2185 2186 */ 2186 void setOutputWindowFlags(int dev_id, int flags, bool keep) throw(Error); 2187 void setOutputWindowFlags(int dev_id, int flags, bool keep) 2188 PJSUA2_THROW(Error); 2187 2189 2188 2190 /** … … 2201 2203 * @return keep The video format. 2202 2204 */ 2203 int getOutputWindowFlags(int dev_id) throw(Error);2205 int getOutputWindowFlags(int dev_id) PJSUA2_THROW(Error); 2204 2206 2205 2207 /** … … 2217 2219 */ 2218 2220 void switchDev(int dev_id, 2219 const VideoSwitchParam ¶m) throw(Error);2221 const VideoSwitchParam ¶m) PJSUA2_THROW(Error); 2220 2222 2221 2223 /** … … 2250 2252 void setCaptureOrient(pjmedia_vid_dev_index dev_id, 2251 2253 pjmedia_orient orient, 2252 bool keep=true) throw(Error);2254 bool keep=true) PJSUA2_THROW(Error); 2253 2255 2254 2256 private: -
pjproject/trunk/pjsip/include/pjsua2/persistent.hpp
r5771 r6026 69 69 * @param node Container to read values from. 70 70 */ 71 virtual void readObject(const ContainerNode &node) throw(Error) = 0;71 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error) = 0; 72 72 73 73 /** … … 76 76 * @param node Container to write values to. 77 77 */ 78 virtual void writeObject(ContainerNode &node) const throw(Error) = 0;78 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error) = 0; 79 79 }; 80 80 … … 111 111 * @param filename The file name. 112 112 */ 113 virtual void loadFile(const string &filename) throw(Error) = 0; 113 virtual void loadFile(const string &filename) 114 PJSUA2_THROW(Error) = 0; 114 115 115 116 /** … … 118 119 * @param input The string. 119 120 */ 120 virtual void loadString(const string &input) throw(Error) = 0; 121 virtual void loadString(const string &input) 122 PJSUA2_THROW(Error) = 0; 121 123 122 124 /** … … 125 127 * @param filename The file name. 126 128 */ 127 virtual void saveFile(const string &filename) throw(Error) = 0; 129 virtual void saveFile(const string &filename) 130 PJSUA2_THROW(Error) = 0; 128 131 129 132 /** … … 132 135 * @return The string document. 133 136 */ 134 virtual string saveString() throw(Error) = 0;137 virtual string saveString() PJSUA2_THROW(Error) = 0; 135 138 136 139 /** … … 161 164 * @return The name of the next element . 162 165 */ 163 string unreadName() const throw(Error);166 string unreadName() const PJSUA2_THROW(Error); 164 167 165 168 /** … … 174 177 * @return The value. 175 178 */ 176 int readInt(const string &name="") const throw(Error); 179 int readInt(const string &name="") const 180 PJSUA2_THROW(Error); 177 181 178 182 /** … … 187 191 * @return The value. 188 192 */ 189 float readNumber(const string &name="") const throw(Error); 193 float readNumber(const string &name="") const 194 PJSUA2_THROW(Error); 190 195 191 196 /** … … 200 205 * @return The value. 201 206 */ 202 bool readBool(const string &name="") const throw(Error); 207 bool readBool(const string &name="") const 208 PJSUA2_THROW(Error); 203 209 204 210 /** … … 213 219 * @return The value. 214 220 */ 215 string readString(const string &name="") const throw(Error); 221 string readString(const string &name="") const 222 PJSUA2_THROW(Error); 216 223 217 224 /** … … 227 234 */ 228 235 StringVector readStringVector(const string &name="") const 229 throw(Error);236 PJSUA2_THROW(Error); 230 237 231 238 /** … … 235 242 * @param obj The object to read. 236 243 */ 237 void readObject(PersistentObject &obj) const throw(Error); 244 void readObject(PersistentObject &obj) const 245 PJSUA2_THROW(Error); 238 246 239 247 /** … … 249 257 */ 250 258 ContainerNode readContainer(const string &name="") const 251 throw(Error);259 PJSUA2_THROW(Error); 252 260 253 261 /** … … 263 271 */ 264 272 ContainerNode readArray(const string &name="") const 265 throw(Error);273 PJSUA2_THROW(Error); 266 274 267 275 /** … … 272 280 */ 273 281 void writeNumber(const string &name, 274 float num) throw(Error);282 float num) PJSUA2_THROW(Error); 275 283 276 284 /** … … 281 289 */ 282 290 void writeInt(const string &name, 283 int num) throw(Error);291 int num) PJSUA2_THROW(Error); 284 292 285 293 /** … … 290 298 */ 291 299 void writeBool(const string &name, 292 bool value) throw(Error);300 bool value) PJSUA2_THROW(Error); 293 301 294 302 /** … … 299 307 */ 300 308 void writeString(const string &name, 301 const string &value) throw(Error);309 const string &value) PJSUA2_THROW(Error); 302 310 303 311 /** … … 309 317 void writeStringVector(const string &name, 310 318 const StringVector &arr) 311 throw(Error);319 PJSUA2_THROW(Error); 312 320 313 321 /** … … 317 325 * @param obj The object to be written 318 326 */ 319 void writeObject(const PersistentObject &obj) throw(Error); 327 void writeObject(const PersistentObject &obj) 328 PJSUA2_THROW(Error); 320 329 321 330 /** … … 328 337 */ 329 338 ContainerNode writeNewContainer(const string &name) 330 throw(Error);339 PJSUA2_THROW(Error); 331 340 332 341 /** … … 339 348 */ 340 349 ContainerNode writeNewArray(const string &name) 341 throw(Error);350 PJSUA2_THROW(Error); 342 351 }; 343 352 … … 423 432 * Get the name of the next unread element. 424 433 */ 425 string unreadName() const throw(Error);434 string unreadName() const PJSUA2_THROW(Error); 426 435 427 436 /** … … 436 445 * @return The value. 437 446 */ 438 int readInt(const string &name="") const throw(Error); 447 int readInt(const string &name="") const 448 PJSUA2_THROW(Error); 439 449 440 450 /** … … 449 459 * @return The value. 450 460 */ 451 float readNumber(const string &name="") const throw(Error); 461 float readNumber(const string &name="") const 462 PJSUA2_THROW(Error); 452 463 453 464 /** … … 462 473 * @return The value. 463 474 */ 464 bool readBool(const string &name="") const throw(Error); 475 bool readBool(const string &name="") const 476 PJSUA2_THROW(Error); 465 477 466 478 /** … … 475 487 * @return The value. 476 488 */ 477 string readString(const string &name="") const throw(Error); 489 string readString(const string &name="") const 490 PJSUA2_THROW(Error); 478 491 479 492 /** … … 489 502 */ 490 503 StringVector readStringVector(const string &name="") const 491 throw(Error);504 PJSUA2_THROW(Error); 492 505 493 506 /** … … 497 510 * @param obj The object to read. 498 511 */ 499 void readObject(PersistentObject &obj) const throw(Error); 512 void readObject(PersistentObject &obj) const 513 PJSUA2_THROW(Error); 500 514 501 515 /** … … 511 525 */ 512 526 ContainerNode readContainer(const string &name="") const 513 throw(Error);527 PJSUA2_THROW(Error); 514 528 515 529 /** … … 525 539 */ 526 540 ContainerNode readArray(const string &name="") const 527 throw(Error);541 PJSUA2_THROW(Error); 528 542 529 543 /** … … 534 548 */ 535 549 void writeNumber(const string &name, 536 float num) throw(Error);550 float num) PJSUA2_THROW(Error); 537 551 538 552 /** … … 543 557 */ 544 558 void writeInt(const string &name, 545 int num) throw(Error);559 int num) PJSUA2_THROW(Error); 546 560 547 561 /** … … 552 566 */ 553 567 void writeBool(const string &name, 554 bool value) throw(Error);568 bool value) PJSUA2_THROW(Error); 555 569 556 570 /** … … 561 575 */ 562 576 void writeString(const string &name, 563 const string &value) throw(Error);577 const string &value) PJSUA2_THROW(Error); 564 578 565 579 /** … … 571 585 void writeStringVector(const string &name, 572 586 const StringVector &arr) 573 throw(Error);587 PJSUA2_THROW(Error); 574 588 575 589 /** … … 579 593 * @param obj The object to be written 580 594 */ 581 void writeObject(const PersistentObject &obj) throw(Error); 595 void writeObject(const PersistentObject &obj) 596 PJSUA2_THROW(Error); 582 597 583 598 /** … … 590 605 */ 591 606 ContainerNode writeNewContainer(const string &name) 592 throw(Error);607 PJSUA2_THROW(Error); 593 608 594 609 /** … … 601 616 */ 602 617 ContainerNode writeNewArray(const string &name) 603 throw(Error);618 PJSUA2_THROW(Error); 604 619 605 620 public: … … 619 634 bool (*hasUnread)(const ContainerNode*); 620 635 string (*unreadName)(const ContainerNode*) 621 throw(Error);636 PJSUA2_THROW(Error); 622 637 float (*readNumber)(const ContainerNode*, 623 638 const string&) 624 throw(Error);639 PJSUA2_THROW(Error); 625 640 bool (*readBool)(const ContainerNode*, 626 641 const string&) 627 throw(Error);642 PJSUA2_THROW(Error); 628 643 string (*readString)(const ContainerNode*, 629 644 const string&) 630 throw(Error);645 PJSUA2_THROW(Error); 631 646 StringVector (*readStringVector)(const ContainerNode*, 632 647 const string&) 633 throw(Error);648 PJSUA2_THROW(Error); 634 649 ContainerNode (*readContainer)(const ContainerNode*, 635 650 const string &) 636 throw(Error);651 PJSUA2_THROW(Error); 637 652 ContainerNode (*readArray)(const ContainerNode*, 638 653 const string &) 639 throw(Error);654 PJSUA2_THROW(Error); 640 655 void (*writeNumber)(ContainerNode*, 641 656 const string &name, 642 657 float num) 643 throw(Error);658 PJSUA2_THROW(Error); 644 659 void (*writeBool)(ContainerNode*, 645 660 const string &name, 646 661 bool value) 647 throw(Error);662 PJSUA2_THROW(Error); 648 663 void (*writeString)(ContainerNode*, 649 664 const string &name, 650 665 const string &value) 651 throw(Error);666 PJSUA2_THROW(Error); 652 667 void (*writeStringVector)(ContainerNode*, 653 668 const string &name, 654 669 const StringVector &value) 655 throw(Error);670 PJSUA2_THROW(Error); 656 671 ContainerNode (*writeNewContainer)(ContainerNode*, 657 672 const string &name) 658 throw(Error);673 PJSUA2_THROW(Error); 659 674 ContainerNode (*writeNewArray)(ContainerNode*, 660 675 const string &name) 661 throw(Error);676 PJSUA2_THROW(Error); 662 677 }; 663 678 -
pjproject/trunk/pjsip/include/pjsua2/presence.hpp
r5969 r6026 101 101 * @param node Container to read values from. 102 102 */ 103 virtual void readObject(const ContainerNode &node) throw(Error);103 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 104 104 105 105 /** … … 108 108 * @param node Container to write values to. 109 109 */ 110 virtual void writeObject(ContainerNode &node) const throw(Error);110 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 111 111 }; 112 112 … … 233 233 * @param cfg The buddy config. 234 234 */ 235 void create(Account &acc, const BuddyConfig &cfg) throw(Error);235 void create(Account &acc, const BuddyConfig &cfg) PJSUA2_THROW(Error); 236 236 237 237 /** … … 247 247 * @return Buddy info. 248 248 */ 249 BuddyInfo getInfo() const throw(Error);249 BuddyInfo getInfo() const PJSUA2_THROW(Error); 250 250 251 251 /** … … 257 257 * subscription. 258 258 */ 259 void subscribePresence(bool subscribe) throw(Error);259 void subscribePresence(bool subscribe) PJSUA2_THROW(Error); 260 260 261 261 /** … … 275 275 * \a onBuddyState() callback. 276 276 */ 277 void updatePresence(void) throw(Error);277 void updatePresence(void) PJSUA2_THROW(Error); 278 278 279 279 /** … … 283 283 * @param prm Sending instant message parameter. 284 284 */ 285 void sendInstantMessage(const SendInstantMessageParam &prm) throw(Error); 285 void sendInstantMessage(const SendInstantMessageParam &prm) 286 PJSUA2_THROW(Error); 286 287 287 288 /** … … 291 292 */ 292 293 void sendTypingIndication(const SendTypingIndicationParam &prm) 293 throw(Error);294 PJSUA2_THROW(Error); 294 295 295 296 public: -
pjproject/trunk/pjsip/include/pjsua2/siptypes.hpp
r5821 r6026 105 105 * @param node Container to read values from. 106 106 */ 107 virtual void readObject(const ContainerNode &node) throw(Error);107 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 108 108 109 109 /** … … 112 112 * @param node Container to write values to. 113 113 */ 114 virtual void writeObject(ContainerNode &node) const throw(Error);114 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 115 115 }; 116 116 … … 288 288 * @param node Container to read values from. 289 289 */ 290 virtual void readObject(const ContainerNode &node) throw(Error);290 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 291 291 292 292 /** … … 295 295 * @param node Container to write values to. 296 296 */ 297 virtual void writeObject(ContainerNode &node) const throw(Error);297 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 298 298 }; 299 299 … … 385 385 * @param node Container to read values from. 386 386 */ 387 virtual void readObject(const ContainerNode &node) throw(Error);387 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error); 388 388 389 389 /** … … 392 392 * @param node Container to write values to. 393 393 */ 394 virtual void writeObject(ContainerNode &node) const throw(Error);394 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error); 395 395 }; 396 396 … … 745 745 * Initiaize from PJSIP header. 746 746 */ 747 void fromPj(const pjsip_hdr *) throw(Error);747 void fromPj(const pjsip_hdr *) PJSUA2_THROW(Error); 748 748 749 749 /** … … 785 785 * Initiaize from PJSIP's pjsip_multipart_part. 786 786 */ 787 void fromPj(const pjsip_multipart_part &prm) throw(Error);787 void fromPj(const pjsip_multipart_part &prm) PJSUA2_THROW(Error); 788 788 789 789 /** … … 860 860 * Initiaize from PJSUA's pjsua_msg_data. 861 861 */ 862 void fromPj(const pjsua_msg_data &prm) throw(Error);862 void fromPj(const pjsua_msg_data &prm) PJSUA2_THROW(Error); 863 863 864 864 /** … … 933 933 void readIntVector( ContainerNode &node, 934 934 const string &array_name, 935 IntVector &v) throw(Error);935 IntVector &v) PJSUA2_THROW(Error); 936 936 void writeIntVector(ContainerNode &node, 937 937 const string &array_name, 938 const IntVector &v) throw(Error);938 const IntVector &v) PJSUA2_THROW(Error); 939 939 void readQosParams( ContainerNode &node, 940 pj_qos_params &qos) throw(Error);940 pj_qos_params &qos) PJSUA2_THROW(Error); 941 941 void writeQosParams( ContainerNode &node, 942 const pj_qos_params &qos) throw(Error);942 const pj_qos_params &qos) PJSUA2_THROW(Error); 943 943 void readSipHeaders( const ContainerNode &node, 944 944 const string &array_name, 945 SipHeaderVector &headers) throw(Error);945 SipHeaderVector &headers) PJSUA2_THROW(Error); 946 946 void writeSipHeaders(ContainerNode &node, 947 947 const string &array_name, 948 const SipHeaderVector &headers) throw(Error);948 const SipHeaderVector &headers) PJSUA2_THROW(Error); 949 949 //! @endcond 950 950 #endif // SWIG -
pjproject/trunk/pjsip/src/pjsua2/account.cpp
r6009 r6026 85 85 } 86 86 87 void RtcpFbConfig::readObject(const ContainerNode &node) throw(Error)87 void RtcpFbConfig::readObject(const ContainerNode &node) PJSUA2_THROW(Error) 88 88 { 89 89 ContainerNode this_node = node.readContainer("RtcpFbConfig"); … … 102 102 } 103 103 104 void RtcpFbConfig::writeObject(ContainerNode &node) const throw(Error)104 void RtcpFbConfig::writeObject(ContainerNode &node) const PJSUA2_THROW(Error) 105 105 { 106 106 ContainerNode this_node = node.writeNewContainer("RtcpFbConfig"); … … 180 180 } 181 181 182 void SrtpOpt::readObject(const ContainerNode &node) throw(Error)182 void SrtpOpt::readObject(const ContainerNode &node) PJSUA2_THROW(Error) 183 183 { 184 184 ContainerNode this_node = node.readContainer("SrtpOpt"); … … 203 203 } 204 204 205 void SrtpOpt::writeObject(ContainerNode &node) const throw(Error)205 void SrtpOpt::writeObject(ContainerNode &node) const PJSUA2_THROW(Error) 206 206 { 207 207 ContainerNode this_node = node.writeNewContainer("SrtpOpt"); … … 222 222 /////////////////////////////////////////////////////////////////////////////// 223 223 224 void AccountRegConfig::readObject(const ContainerNode &node) throw(Error) 224 void AccountRegConfig::readObject(const ContainerNode &node) 225 PJSUA2_THROW(Error) 225 226 { 226 227 ContainerNode this_node = node.readContainer("AccountRegConfig"); … … 241 242 } 242 243 243 void AccountRegConfig::writeObject(ContainerNode &node) const throw(Error) 244 void AccountRegConfig::writeObject(ContainerNode &node) const 245 PJSUA2_THROW(Error) 244 246 { 245 247 ContainerNode this_node = node.writeNewContainer("AccountRegConfig"); … … 262 264 /////////////////////////////////////////////////////////////////////////////// 263 265 264 void AccountSipConfig::readObject(const ContainerNode &node) throw(Error) 266 void AccountSipConfig::readObject(const ContainerNode &node) 267 PJSUA2_THROW(Error) 265 268 { 266 269 ContainerNode this_node = node.readContainer("AccountSipConfig"); … … 283 286 } 284 287 285 void AccountSipConfig::writeObject(ContainerNode &node) const throw(Error) 288 void AccountSipConfig::writeObject(ContainerNode &node) const 289 PJSUA2_THROW(Error) 286 290 { 287 291 ContainerNode this_node = node.writeNewContainer("AccountSipConfig"); … … 303 307 /////////////////////////////////////////////////////////////////////////////// 304 308 305 void AccountCallConfig::readObject(const ContainerNode &node) throw(Error) 309 void AccountCallConfig::readObject(const ContainerNode &node) 310 PJSUA2_THROW(Error) 306 311 { 307 312 ContainerNode this_node = node.readContainer("AccountCallConfig"); … … 314 319 } 315 320 316 void AccountCallConfig::writeObject(ContainerNode &node) const throw(Error) 321 void AccountCallConfig::writeObject(ContainerNode &node) const 322 PJSUA2_THROW(Error) 317 323 { 318 324 ContainerNode this_node = node.writeNewContainer("AccountCallConfig"); … … 327 333 /////////////////////////////////////////////////////////////////////////////// 328 334 329 void AccountPresConfig::readObject(const ContainerNode &node) throw(Error) 335 void AccountPresConfig::readObject(const ContainerNode &node) 336 PJSUA2_THROW(Error) 330 337 { 331 338 ContainerNode this_node = node.readContainer("AccountPresConfig"); … … 339 346 } 340 347 341 void AccountPresConfig::writeObject(ContainerNode &node) const throw(Error) 348 void AccountPresConfig::writeObject(ContainerNode &node) const 349 PJSUA2_THROW(Error) 342 350 { 343 351 ContainerNode this_node = node.writeNewContainer("AccountPresConfig"); … … 353 361 /////////////////////////////////////////////////////////////////////////////// 354 362 355 void AccountMwiConfig::readObject(const ContainerNode &node) throw(Error) 363 void AccountMwiConfig::readObject(const ContainerNode &node) 364 PJSUA2_THROW(Error) 356 365 { 357 366 ContainerNode this_node = node.readContainer("AccountMwiConfig"); … … 361 370 } 362 371 363 void AccountMwiConfig::writeObject(ContainerNode &node) const throw(Error) 372 void AccountMwiConfig::writeObject(ContainerNode &node) const 373 PJSUA2_THROW(Error) 364 374 { 365 375 ContainerNode this_node = node.writeNewContainer("AccountMwiConfig"); … … 371 381 /////////////////////////////////////////////////////////////////////////////// 372 382 373 void AccountNatConfig::readObject(const ContainerNode &node) throw(Error) 383 void AccountNatConfig::readObject(const ContainerNode &node) 384 PJSUA2_THROW(Error) 374 385 { 375 386 ContainerNode this_node = node.readContainer("AccountNatConfig"); … … 403 414 } 404 415 405 void AccountNatConfig::writeObject(ContainerNode &node) const throw(Error) 416 void AccountNatConfig::writeObject(ContainerNode &node) const 417 PJSUA2_THROW(Error) 406 418 { 407 419 ContainerNode this_node = node.writeNewContainer("AccountNatConfig"); … … 437 449 /////////////////////////////////////////////////////////////////////////////// 438 450 439 void AccountMediaConfig::readObject(const ContainerNode &node) throw(Error) 451 void AccountMediaConfig::readObject(const ContainerNode &node) 452 PJSUA2_THROW(Error) 440 453 { 441 454 ContainerNode this_node = node.readContainer("AccountMediaConfig"); … … 451 464 } 452 465 453 void AccountMediaConfig::writeObject(ContainerNode &node) const throw(Error) 466 void AccountMediaConfig::writeObject(ContainerNode &node) const 467 PJSUA2_THROW(Error) 454 468 { 455 469 ContainerNode this_node = node.writeNewContainer("AccountMediaConfig"); … … 467 481 /////////////////////////////////////////////////////////////////////////////// 468 482 469 void AccountVideoConfig::readObject(const ContainerNode &node) throw(Error) 483 void AccountVideoConfig::readObject(const ContainerNode &node) 484 PJSUA2_THROW(Error) 470 485 { 471 486 ContainerNode this_node = node.readContainer("AccountVideoConfig"); … … 474 489 NODE_READ_BOOL ( this_node, autoTransmitOutgoing); 475 490 NODE_READ_UNSIGNED( this_node, windowFlags); 476 NODE_READ_NUM_T ( this_node, pjmedia_vid_dev_index, defaultCaptureDevice); 477 NODE_READ_NUM_T ( this_node, pjmedia_vid_dev_index, defaultRenderDevice); 478 NODE_READ_NUM_T ( this_node, pjmedia_vid_stream_rc_method, rateControlMethod); 491 NODE_READ_NUM_T ( this_node, pjmedia_vid_dev_index, 492 defaultCaptureDevice); 493 NODE_READ_NUM_T ( this_node, pjmedia_vid_dev_index, 494 defaultRenderDevice); 495 NODE_READ_NUM_T ( this_node, pjmedia_vid_stream_rc_method, 496 rateControlMethod); 479 497 NODE_READ_UNSIGNED( this_node, rateControlBandwidth); 480 498 NODE_READ_UNSIGNED( this_node, startKeyframeCount); … … 482 500 } 483 501 484 void AccountVideoConfig::writeObject(ContainerNode &node) const throw(Error) 502 void AccountVideoConfig::writeObject(ContainerNode &node) const 503 PJSUA2_THROW(Error) 485 504 { 486 505 ContainerNode this_node = node.writeNewContainer("AccountVideoConfig"); … … 489 508 NODE_WRITE_BOOL ( this_node, autoTransmitOutgoing); 490 509 NODE_WRITE_UNSIGNED( this_node, windowFlags); 491 NODE_WRITE_NUM_T ( this_node, pjmedia_vid_dev_index, defaultCaptureDevice); 492 NODE_WRITE_NUM_T ( this_node, pjmedia_vid_dev_index, defaultRenderDevice); 493 NODE_WRITE_NUM_T ( this_node, pjmedia_vid_stream_rc_method, rateControlMethod); 510 NODE_WRITE_NUM_T ( this_node, pjmedia_vid_dev_index, 511 defaultCaptureDevice); 512 NODE_WRITE_NUM_T ( this_node, pjmedia_vid_dev_index, 513 defaultRenderDevice); 514 NODE_WRITE_NUM_T ( this_node, pjmedia_vid_stream_rc_method, 515 rateControlMethod); 494 516 NODE_WRITE_UNSIGNED( this_node, rateControlBandwidth); 495 517 NODE_WRITE_UNSIGNED( this_node, startKeyframeCount); … … 498 520 /////////////////////////////////////////////////////////////////////////////// 499 521 500 void AccountIpChangeConfig::readObject(const ContainerNode &node) throw(Error) 522 void AccountIpChangeConfig::readObject(const ContainerNode &node) 523 PJSUA2_THROW(Error) 501 524 { 502 525 ContainerNode this_node = node.readContainer("AccountIpChangeConfig"); … … 507 530 } 508 531 509 void AccountIpChangeConfig::writeObject(ContainerNode &node) const throw(Error) 532 void AccountIpChangeConfig::writeObject(ContainerNode &node) const 533 PJSUA2_THROW(Error) 510 534 { 511 535 ContainerNode this_node = node.writeNewContainer("AccountIpChangeConfig"); … … 614 638 ret.ice_cfg.ice_max_host_cands = natConfig.iceMaxHostCands; 615 639 ret.ice_cfg.ice_opt.aggressive = natConfig.iceAggressiveNomination; 616 ret.ice_cfg.ice_opt.nominated_check_delay = natConfig.iceNominatedCheckDelayMsec; 617 ret.ice_cfg.ice_opt.controlled_agent_want_nom_timeout = natConfig.iceWaitNominationTimeoutMsec; 640 ret.ice_cfg.ice_opt.nominated_check_delay = 641 natConfig.iceNominatedCheckDelayMsec; 642 ret.ice_cfg.ice_opt.controlled_agent_want_nom_timeout = 643 natConfig.iceWaitNominationTimeoutMsec; 618 644 ret.ice_cfg.ice_no_rtcp = natConfig.iceNoRtcp; 619 645 ret.ice_cfg.ice_always_update = natConfig.iceAlwaysUpdate; … … 624 650 ret.turn_cfg.turn_conn_type = natConfig.turnConnType; 625 651 ret.turn_cfg.turn_auth_cred.type = PJ_STUN_AUTH_CRED_STATIC; 626 ret.turn_cfg.turn_auth_cred.data.static_cred.username = str2Pj(natConfig.turnUserName); 627 ret.turn_cfg.turn_auth_cred.data.static_cred.data_type = (pj_stun_passwd_type)natConfig.turnPasswordType; 628 ret.turn_cfg.turn_auth_cred.data.static_cred.data = str2Pj(natConfig.turnPassword); 652 ret.turn_cfg.turn_auth_cred.data.static_cred.username = 653 str2Pj(natConfig.turnUserName); 654 ret.turn_cfg.turn_auth_cred.data.static_cred.data_type = 655 (pj_stun_passwd_type)natConfig.turnPasswordType; 656 ret.turn_cfg.turn_auth_cred.data.static_cred.data = 657 str2Pj(natConfig.turnPassword); 629 658 ret.turn_cfg.turn_auth_cred.data.static_cred.realm = pj_str((char*)""); 630 659 ret.turn_cfg.turn_auth_cred.data.static_cred.nonce = pj_str((char*)""); … … 765 794 natConfig.iceEnabled = PJ2BOOL(prm.ice_cfg.enable_ice); 766 795 natConfig.iceMaxHostCands = prm.ice_cfg.ice_max_host_cands; 767 natConfig.iceAggressiveNomination = PJ2BOOL(prm.ice_cfg.ice_opt.aggressive); 768 natConfig.iceNominatedCheckDelayMsec = prm.ice_cfg.ice_opt.nominated_check_delay; 769 natConfig.iceWaitNominationTimeoutMsec = prm.ice_cfg.ice_opt.controlled_agent_want_nom_timeout; 796 natConfig.iceAggressiveNomination = 797 PJ2BOOL(prm.ice_cfg.ice_opt.aggressive); 798 natConfig.iceNominatedCheckDelayMsec = 799 prm.ice_cfg.ice_opt.nominated_check_delay; 800 natConfig.iceWaitNominationTimeoutMsec = 801 prm.ice_cfg.ice_opt.controlled_agent_want_nom_timeout; 770 802 natConfig.iceNoRtcp = PJ2BOOL(prm.ice_cfg.ice_no_rtcp); 771 803 natConfig.iceAlwaysUpdate = PJ2BOOL(prm.ice_cfg.ice_always_update); … … 779 811 natConfig.iceMaxHostCands= mcfg->ice_max_host_cands; 780 812 natConfig.iceAggressiveNomination = PJ2BOOL(mcfg->ice_opt.aggressive); 781 natConfig.iceNominatedCheckDelayMsec = mcfg->ice_opt.nominated_check_delay; 782 natConfig.iceWaitNominationTimeoutMsec = mcfg->ice_opt.controlled_agent_want_nom_timeout; 813 natConfig.iceNominatedCheckDelayMsec = 814 mcfg->ice_opt.nominated_check_delay; 815 natConfig.iceWaitNominationTimeoutMsec = 816 mcfg->ice_opt.controlled_agent_want_nom_timeout; 783 817 natConfig.iceNoRtcp = PJ2BOOL(mcfg->ice_no_rtcp); 784 818 natConfig.iceAlwaysUpdate = PJ2BOOL(mcfg->ice_always_update); … … 789 823 natConfig.turnServer = pj2Str(prm.turn_cfg.turn_server); 790 824 natConfig.turnConnType = prm.turn_cfg.turn_conn_type; 791 natConfig.turnUserName = pj2Str(prm.turn_cfg.turn_auth_cred.data.static_cred.username); 792 natConfig.turnPasswordType = prm.turn_cfg.turn_auth_cred.data.static_cred.data_type; 793 natConfig.turnPassword = pj2Str(prm.turn_cfg.turn_auth_cred.data.static_cred.data); 825 natConfig.turnUserName = 826 pj2Str(prm.turn_cfg.turn_auth_cred.data.static_cred.username); 827 natConfig.turnPasswordType = 828 prm.turn_cfg.turn_auth_cred.data.static_cred.data_type; 829 natConfig.turnPassword = 830 pj2Str(prm.turn_cfg.turn_auth_cred.data.static_cred.data); 794 831 } else { 795 832 pjsua_media_config default_mcfg; … … 801 838 natConfig.turnServer = pj2Str(mcfg->turn_server); 802 839 natConfig.turnConnType = mcfg->turn_conn_type; 803 natConfig.turnUserName = pj2Str(mcfg->turn_auth_cred.data.static_cred.username); 804 natConfig.turnPasswordType = mcfg->turn_auth_cred.data.static_cred.data_type; 805 natConfig.turnPassword = pj2Str(mcfg->turn_auth_cred.data.static_cred.data); 840 natConfig.turnUserName = 841 pj2Str(mcfg->turn_auth_cred.data.static_cred.username); 842 natConfig.turnPasswordType = 843 mcfg->turn_auth_cred.data.static_cred.data_type; 844 natConfig.turnPassword = 845 pj2Str(mcfg->turn_auth_cred.data.static_cred.data); 806 846 } 807 847 natConfig.contactRewriteUse = prm.allow_contact_rewrite; … … 848 888 } 849 889 850 void AccountConfig::readObject(const ContainerNode &node) throw(Error)890 void AccountConfig::readObject(const ContainerNode &node) PJSUA2_THROW(Error) 851 891 { 852 892 ContainerNode this_node = node.readContainer("AccountConfig"); … … 864 904 } 865 905 866 void AccountConfig::writeObject(ContainerNode &node) const throw(Error)906 void AccountConfig::writeObject(ContainerNode &node) const PJSUA2_THROW(Error) 867 907 { 868 908 ContainerNode this_node = node.writeNewContainer("AccountConfig"); … … 915 955 916 956 void Account::create(const AccountConfig &acc_cfg, 917 bool make_default) throw(Error)957 bool make_default) PJSUA2_THROW(Error) 918 958 { 919 959 pjsua_acc_config pj_acc_cfg; … … 941 981 } 942 982 943 void Account::modify(const AccountConfig &acc_cfg) throw(Error)983 void Account::modify(const AccountConfig &acc_cfg) PJSUA2_THROW(Error) 944 984 { 945 985 pjsua_acc_config pj_acc_cfg; … … 955 995 } 956 996 957 void Account::setDefault() throw(Error)997 void Account::setDefault() PJSUA2_THROW(Error) 958 998 { 959 999 PJSUA2_CHECK_EXPR( pjsua_acc_set_default(id) ); … … 975 1015 } 976 1016 977 AccountInfo Account::getInfo() const throw(Error)1017 AccountInfo Account::getInfo() const PJSUA2_THROW(Error) 978 1018 { 979 1019 pjsua_acc_info pj_ai; … … 985 1025 } 986 1026 987 void Account::setRegistration(bool renew) throw(Error)1027 void Account::setRegistration(bool renew) PJSUA2_THROW(Error) 988 1028 { 989 1029 PJSUA2_CHECK_EXPR( pjsua_acc_set_registration(id, renew) ); … … 991 1031 992 1032 void 993 Account::setOnlineStatus(const PresenceStatus &pres_st) throw(Error)1033 Account::setOnlineStatus(const PresenceStatus &pres_st) PJSUA2_THROW(Error) 994 1034 { 995 1035 pjrpid_element pj_rpid; … … 1006 1046 } 1007 1047 1008 void Account::setTransport(TransportId tp_id) throw(Error)1048 void Account::setTransport(TransportId tp_id) PJSUA2_THROW(Error) 1009 1049 { 1010 1050 PJSUA2_CHECK_EXPR( pjsua_acc_set_transport(id, tp_id) ); 1011 1051 } 1012 1052 1013 void Account::presNotify(const PresNotifyParam &prm) throw(Error)1053 void Account::presNotify(const PresNotifyParam &prm) PJSUA2_THROW(Error) 1014 1054 { 1015 1055 pj_str_t pj_state_str = str2Pj(prm.stateStr); … … 1024 1064 } 1025 1065 1026 const BuddyVector& Account::enumBuddies() const throw(Error)1066 const BuddyVector& Account::enumBuddies() const PJSUA2_THROW(Error) 1027 1067 { 1028 1068 return buddyList; 1029 1069 } 1030 1070 1031 BuddyVector2 Account::enumBuddies2() const throw(Error)1071 BuddyVector2 Account::enumBuddies2() const PJSUA2_THROW(Error) 1032 1072 { 1033 1073 BuddyVector2 bv2; … … 1044 1084 1045 1085 Buddy* Account::findBuddy(string uri, FindBuddyMatch *buddy_match) const 1046 throw(Error)1086 PJSUA2_THROW(Error) 1047 1087 { 1048 1088 if (!buddy_match) { … … 1058 1098 } 1059 1099 1060 Buddy Account::findBuddy2(string uri) const throw(Error)1100 Buddy Account::findBuddy2(string uri) const PJSUA2_THROW(Error) 1061 1101 { 1062 1102 pj_str_t pj_uri; -
pjproject/trunk/pjsip/src/pjsua2/call.cpp
r6024 r6026 445 445 } 446 446 447 CallInfo Call::getInfo() const throw(Error)447 CallInfo Call::getInfo() const PJSUA2_THROW(Error) 448 448 { 449 449 pjsua_call_info pj_ci; … … 500 500 } 501 501 502 AudioMedia Call::getAudioMedia(int med_idx) const throw(Error)502 AudioMedia Call::getAudioMedia(int med_idx) const PJSUA2_THROW(Error) 503 503 { 504 504 pjsua_call_info pj_ci; … … 538 538 } 539 539 540 VideoMedia Call::getEncodingVideoMedia(int med_idx) const throw(Error)540 VideoMedia Call::getEncodingVideoMedia(int med_idx) const PJSUA2_THROW(Error) 541 541 { 542 542 pjsua_call_info pj_ci; … … 576 576 } 577 577 578 VideoMedia Call::getDecodingVideoMedia(int med_idx) const throw(Error)578 VideoMedia Call::getDecodingVideoMedia(int med_idx) const PJSUA2_THROW(Error) 579 579 { 580 580 pjsua_call_info pj_ci; … … 636 636 } 637 637 638 pj_stun_nat_type Call::getRemNatType() throw(Error)638 pj_stun_nat_type Call::getRemNatType() PJSUA2_THROW(Error) 639 639 { 640 640 pj_stun_nat_type nat; … … 645 645 } 646 646 647 void Call::makeCall(const string &dst_uri, const CallOpParam &prm) throw(Error) 647 void Call::makeCall(const string &dst_uri, const CallOpParam &prm) 648 PJSUA2_THROW(Error) 648 649 { 649 650 pj_str_t pj_dst_uri = str2Pj(dst_uri); … … 655 656 } 656 657 657 void Call::answer(const CallOpParam &prm) throw(Error)658 void Call::answer(const CallOpParam &prm) PJSUA2_THROW(Error) 658 659 { 659 660 call_param param(prm.txOption, prm.opt, prm.reason, … … 661 662 662 663 if (param.sdp) { 663 PJSUA2_CHECK_EXPR( pjsua_call_answer_with_sdp(id, param.sdp, param.p_opt, 664 PJSUA2_CHECK_EXPR( pjsua_call_answer_with_sdp(id, param.sdp, 665 param.p_opt, 664 666 prm.statusCode, 665 667 param.p_reason, … … 672 674 } 673 675 674 void Call::hangup(const CallOpParam &prm) throw(Error)676 void Call::hangup(const CallOpParam &prm) PJSUA2_THROW(Error) 675 677 { 676 678 call_param param(prm.txOption, prm.opt, prm.reason); … … 680 682 } 681 683 682 void Call::setHold(const CallOpParam &prm) throw(Error)684 void Call::setHold(const CallOpParam &prm) PJSUA2_THROW(Error) 683 685 { 684 686 call_param param(prm.txOption, prm.opt, prm.reason); 685 687 686 PJSUA2_CHECK_EXPR( pjsua_call_set_hold2(id, prm.options, param.p_msg_data)); 687 } 688 689 void Call::reinvite(const CallOpParam &prm) throw(Error) 688 PJSUA2_CHECK_EXPR( pjsua_call_set_hold2(id, prm.options, 689 param.p_msg_data) ); 690 } 691 692 void Call::reinvite(const CallOpParam &prm) PJSUA2_THROW(Error) 690 693 { 691 694 call_param param(prm.txOption, prm.opt, prm.reason); 692 695 693 PJSUA2_CHECK_EXPR( pjsua_call_reinvite2(id, param.p_opt, param.p_msg_data)); 694 } 695 696 void Call::update(const CallOpParam &prm) throw(Error) 696 PJSUA2_CHECK_EXPR( pjsua_call_reinvite2(id, param.p_opt, 697 param.p_msg_data) ); 698 } 699 700 void Call::update(const CallOpParam &prm) PJSUA2_THROW(Error) 697 701 { 698 702 call_param param(prm.txOption, prm.opt, prm.reason); 699 703 700 PJSUA2_CHECK_EXPR( pjsua_call_update2(id, param.p_opt, param.p_msg_data) ); 701 } 702 703 void Call::xfer(const string &dest, const CallOpParam &prm) throw(Error) 704 PJSUA2_CHECK_EXPR( pjsua_call_update2(id, param.p_opt, 705 param.p_msg_data) ); 706 } 707 708 void Call::xfer(const string &dest, const CallOpParam &prm) 709 PJSUA2_THROW(Error) 704 710 { 705 711 call_param param(prm.txOption); … … 710 716 711 717 void Call::xferReplaces(const Call& dest_call, 712 const CallOpParam &prm) throw(Error)718 const CallOpParam &prm) PJSUA2_THROW(Error) 713 719 { 714 720 call_param param(prm.txOption); 715 721 716 722 PJSUA2_CHECK_EXPR(pjsua_call_xfer_replaces(id, dest_call.getId(), 717 prm.options, param.p_msg_data) ); 718 } 719 720 void Call::processRedirect(pjsip_redirect_op cmd) throw(Error) 723 prm.options, 724 param.p_msg_data) ); 725 } 726 727 void Call::processRedirect(pjsip_redirect_op cmd) PJSUA2_THROW(Error) 721 728 { 722 729 PJSUA2_CHECK_EXPR(pjsua_call_process_redirect(id, cmd)); 723 730 } 724 731 725 void Call::dialDtmf(const string &digits) throw(Error)732 void Call::dialDtmf(const string &digits) PJSUA2_THROW(Error) 726 733 { 727 734 pj_str_t pj_digits = str2Pj(digits); … … 730 737 } 731 738 732 void Call::sendDtmf(const CallSendDtmfParam ¶m) throw(Error)739 void Call::sendDtmf(const CallSendDtmfParam ¶m) PJSUA2_THROW(Error) 733 740 { 734 741 pjsua_call_send_dtmf_param pj_param = param.toPj(); … … 739 746 740 747 void Call::sendInstantMessage(const SendInstantMessageParam& prm) 741 throw(Error)748 PJSUA2_THROW(Error) 742 749 { 743 750 pj_str_t mime_type = str2Pj(prm.contentType); … … 750 757 751 758 void Call::sendTypingIndication(const SendTypingIndicationParam &prm) 752 throw(Error)759 PJSUA2_THROW(Error) 753 760 { 754 761 call_param param(prm.txOption); … … 760 767 } 761 768 762 void Call::sendRequest(const CallSendRequestParam &prm) throw(Error)769 void Call::sendRequest(const CallSendRequestParam &prm) PJSUA2_THROW(Error) 763 770 { 764 771 pj_str_t method = str2Pj(prm.method); 765 772 call_param param(prm.txOption); 766 773 767 PJSUA2_CHECK_EXPR(pjsua_call_send_request(id, &method, param.p_msg_data) ); 768 } 769 770 string Call::dump(bool with_media, const string indent) throw(Error) 774 PJSUA2_CHECK_EXPR(pjsua_call_send_request(id, &method, 775 param.p_msg_data) ); 776 } 777 778 string Call::dump(bool with_media, const string indent) PJSUA2_THROW(Error) 771 779 { 772 780 #if defined(PJMEDIA_HAS_RTCP_XR) && (PJMEDIA_HAS_RTCP_XR != 0) … … 804 812 805 813 void Call::vidSetStream(pjsua_call_vid_strm_op op, 806 const CallVidSetStreamParam ¶m) throw(Error) 814 const CallVidSetStreamParam ¶m) 815 PJSUA2_THROW(Error) 807 816 { 808 817 #if PJSUA_HAS_VIDEO … … 820 829 } 821 830 822 StreamInfo Call::getStreamInfo(unsigned med_idx) const throw(Error)831 StreamInfo Call::getStreamInfo(unsigned med_idx) const PJSUA2_THROW(Error) 823 832 { 824 833 pjsua_stream_info pj_si; … … 830 839 } 831 840 832 StreamStat Call::getStreamStat(unsigned med_idx) const throw(Error)841 StreamStat Call::getStreamStat(unsigned med_idx) const PJSUA2_THROW(Error) 833 842 { 834 843 pjsua_stream_stat pj_ss; … … 841 850 842 851 MediaTransportInfo Call::getMedTransportInfo(unsigned med_idx) const 843 throw(Error)852 PJSUA2_THROW(Error) 844 853 { 845 854 pjmedia_transport_info pj_mti; -
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(); -
pjproject/trunk/pjsip/src/pjsua2/json.cpp
r5754 r6026 30 30 static bool jsonNode_hasUnread(const ContainerNode*); 31 31 static string jsonNode_unreadName(const ContainerNode*n) 32 throw(Error);32 PJSUA2_THROW(Error); 33 33 static float jsonNode_readNumber(const ContainerNode*, 34 34 const string&) 35 throw(Error);35 PJSUA2_THROW(Error); 36 36 static bool jsonNode_readBool(const ContainerNode*, 37 37 const string&) 38 throw(Error);38 PJSUA2_THROW(Error); 39 39 static string jsonNode_readString(const ContainerNode*, 40 40 const string&) 41 throw(Error);41 PJSUA2_THROW(Error); 42 42 static StringVector jsonNode_readStringVector(const ContainerNode*, 43 43 const string&) 44 throw(Error);44 PJSUA2_THROW(Error); 45 45 static ContainerNode jsonNode_readContainer(const ContainerNode*, 46 46 const string &) 47 throw(Error);47 PJSUA2_THROW(Error); 48 48 static ContainerNode jsonNode_readArray(const ContainerNode*, 49 49 const string &) 50 throw(Error);50 PJSUA2_THROW(Error); 51 51 static void jsonNode_writeNumber(ContainerNode*, 52 52 const string &name, 53 53 float num) 54 throw(Error);54 PJSUA2_THROW(Error); 55 55 static void jsonNode_writeBool(ContainerNode*, 56 56 const string &name, 57 57 bool value) 58 throw(Error);58 PJSUA2_THROW(Error); 59 59 static void jsonNode_writeString(ContainerNode*, 60 60 const string &name, 61 61 const string &value) 62 throw(Error);62 PJSUA2_THROW(Error); 63 63 static void jsonNode_writeStringVector(ContainerNode*, 64 64 const string &name, 65 65 const StringVector &value) 66 throw(Error);66 PJSUA2_THROW(Error); 67 67 static ContainerNode jsonNode_writeNewContainer(ContainerNode*, 68 68 const string &name) 69 throw(Error);69 PJSUA2_THROW(Error); 70 70 static ContainerNode jsonNode_writeNewArray(ContainerNode*, 71 71 const string &name) 72 throw(Error);72 PJSUA2_THROW(Error); 73 73 74 74 static container_node_op json_op = … … 115 115 } 116 116 117 void JsonDocument::loadFile(const string &filename) throw(Error)117 void JsonDocument::loadFile(const string &filename) PJSUA2_THROW(Error) 118 118 { 119 119 if (root) … … 175 175 } 176 176 177 void JsonDocument::loadString(const string &input) throw(Error)177 void JsonDocument::loadString(const string &input) PJSUA2_THROW(Error) 178 178 { 179 179 if (root) … … 215 215 } 216 216 217 void JsonDocument::saveFile(const string &filename) throw(Error)217 void JsonDocument::saveFile(const string &filename) PJSUA2_THROW(Error) 218 218 { 219 219 struct save_file_data sd; … … 248 248 } 249 249 250 string JsonDocument::saveString() throw(Error)250 string JsonDocument::saveString() PJSUA2_THROW(Error) 251 251 { 252 252 struct save_string_data sd; … … 334 334 335 335 static string jsonNode_unreadName(const ContainerNode *node) 336 throw(Error)336 PJSUA2_THROW(Error) 337 337 { 338 338 json_node_data *jdat = (json_node_data*)&node->data; … … 343 343 static float jsonNode_readNumber(const ContainerNode *node, 344 344 const string &name) 345 throw(Error)345 PJSUA2_THROW(Error) 346 346 { 347 347 json_node_data *jdat = (json_node_data*)&node->data; … … 353 353 static bool jsonNode_readBool(const ContainerNode *node, 354 354 const string &name) 355 throw(Error)355 PJSUA2_THROW(Error) 356 356 { 357 357 json_node_data *jdat = (json_node_data*)&node->data; … … 363 363 static string jsonNode_readString(const ContainerNode *node, 364 364 const string &name) 365 throw(Error)365 PJSUA2_THROW(Error) 366 366 { 367 367 json_node_data *jdat = (json_node_data*)&node->data; … … 373 373 static StringVector jsonNode_readStringVector(const ContainerNode *node, 374 374 const string &name) 375 throw(Error)375 PJSUA2_THROW(Error) 376 376 { 377 377 json_node_data *jdat = (json_node_data*)&node->data; … … 399 399 static ContainerNode jsonNode_readContainer(const ContainerNode *node, 400 400 const string &name) 401 throw(Error)401 PJSUA2_THROW(Error) 402 402 { 403 403 json_node_data *jdat = (json_node_data*)&node->data; … … 417 417 static ContainerNode jsonNode_readArray(const ContainerNode *node, 418 418 const string &name) 419 throw(Error)419 PJSUA2_THROW(Error) 420 420 { 421 421 json_node_data *jdat = (json_node_data*)&node->data; … … 443 443 const string &name, 444 444 float num) 445 throw(Error)445 PJSUA2_THROW(Error) 446 446 { 447 447 json_node_data *jdat = (json_node_data*)&node->data; … … 455 455 const string &name, 456 456 bool value) 457 throw(Error)457 PJSUA2_THROW(Error) 458 458 { 459 459 json_node_data *jdat = (json_node_data*)&node->data; … … 467 467 const string &name, 468 468 const string &value) 469 throw(Error)469 PJSUA2_THROW(Error) 470 470 { 471 471 json_node_data *jdat = (json_node_data*)&node->data; … … 482 482 const string &name, 483 483 const StringVector &value) 484 throw(Error)484 PJSUA2_THROW(Error) 485 485 { 486 486 json_node_data *jdat = (json_node_data*)&node->data; … … 503 503 static ContainerNode jsonNode_writeNewContainer(ContainerNode *node, 504 504 const string &name) 505 throw(Error)505 PJSUA2_THROW(Error) 506 506 { 507 507 json_node_data *jdat = (json_node_data*)&node->data; … … 524 524 static ContainerNode jsonNode_writeNewArray(ContainerNode *node, 525 525 const string &name) 526 throw(Error)526 PJSUA2_THROW(Error) 527 527 { 528 528 json_node_data *jdat = (json_node_data*)&node->data; -
pjproject/trunk/pjsip/src/pjsua2/media.cpp
r5992 r6026 129 129 } 130 130 131 void AudioMedia::registerMediaPort(MediaPort port) throw(Error)131 void AudioMedia::registerMediaPort(MediaPort port) PJSUA2_THROW(Error) 132 132 { 133 133 /* Check if media already added to Conf bridge. */ … … 157 157 158 158 void AudioMedia::registerMediaPort2(MediaPort port, pj_pool_t *pool) 159 throw(Error)159 PJSUA2_THROW(Error) 160 160 { 161 161 /* Check if media already added to Conf bridge. */ … … 194 194 } 195 195 196 ConfPortInfo AudioMedia::getPortInfo() const throw(Error)196 ConfPortInfo AudioMedia::getPortInfo() const PJSUA2_THROW(Error) 197 197 { 198 198 return AudioMedia::getPortInfoFromId(id); … … 204 204 } 205 205 206 ConfPortInfo AudioMedia::getPortInfoFromId(int port_id) throw(Error)206 ConfPortInfo AudioMedia::getPortInfoFromId(int port_id) PJSUA2_THROW(Error) 207 207 { 208 208 pjsua_conf_port_info pj_info; … … 214 214 } 215 215 216 void AudioMedia::startTransmit(const AudioMedia &sink) const throw(Error)216 void AudioMedia::startTransmit(const AudioMedia &sink) const PJSUA2_THROW(Error) 217 217 { 218 218 PJSUA2_CHECK_EXPR( pjsua_conf_connect(id, sink.id) ); … … 221 221 void AudioMedia::startTransmit2(const AudioMedia &sink, 222 222 const AudioMediaTransmitParam ¶m) const 223 throw(Error)223 PJSUA2_THROW(Error) 224 224 { 225 225 pjsua_conf_connect_param pj_param; … … 230 230 } 231 231 232 void AudioMedia::stopTransmit(const AudioMedia &sink) const throw(Error)232 void AudioMedia::stopTransmit(const AudioMedia &sink) const PJSUA2_THROW(Error) 233 233 { 234 234 PJSUA2_CHECK_EXPR( pjsua_conf_disconnect(id, sink.id) ); 235 235 } 236 236 237 void AudioMedia::adjustRxLevel(float level) throw(Error)237 void AudioMedia::adjustRxLevel(float level) PJSUA2_THROW(Error) 238 238 { 239 239 PJSUA2_CHECK_EXPR( pjsua_conf_adjust_tx_level(id, level) ); 240 240 } 241 241 242 void AudioMedia::adjustTxLevel(float level) throw(Error)242 void AudioMedia::adjustTxLevel(float level) PJSUA2_THROW(Error) 243 243 { 244 244 PJSUA2_CHECK_EXPR( pjsua_conf_adjust_rx_level(id, level) ); 245 245 } 246 246 247 unsigned AudioMedia::getRxLevel() const throw(Error)247 unsigned AudioMedia::getRxLevel() const PJSUA2_THROW(Error) 248 248 { 249 249 unsigned level; … … 252 252 } 253 253 254 unsigned AudioMedia::getTxLevel() const throw(Error)254 unsigned AudioMedia::getTxLevel() const PJSUA2_THROW(Error) 255 255 { 256 256 unsigned level; … … 282 282 void AudioMediaPlayer::createPlayer(const string &file_name, 283 283 unsigned options) 284 throw(Error)284 PJSUA2_THROW(Error) 285 285 { 286 286 if (playerId != PJSUA_INVALID_ID) { … … 318 318 const string &label, 319 319 unsigned options) 320 throw(Error)320 PJSUA2_THROW(Error) 321 321 { 322 322 if (playerId != PJSUA_INVALID_ID) { … … 363 363 } 364 364 365 AudioMediaPlayerInfo AudioMediaPlayer::getInfo() const throw(Error)365 AudioMediaPlayerInfo AudioMediaPlayer::getInfo() const PJSUA2_THROW(Error) 366 366 { 367 367 AudioMediaPlayerInfo info; … … 379 379 } 380 380 381 pj_uint32_t AudioMediaPlayer::getPos() const throw(Error)381 pj_uint32_t AudioMediaPlayer::getPos() const PJSUA2_THROW(Error) 382 382 { 383 383 pj_ssize_t pos = pjsua_player_get_pos(playerId); … … 388 388 } 389 389 390 void AudioMediaPlayer::setPos(pj_uint32_t samples) throw(Error)390 void AudioMediaPlayer::setPos(pj_uint32_t samples) PJSUA2_THROW(Error) 391 391 { 392 392 PJSUA2_CHECK_EXPR( pjsua_player_set_pos(playerId, samples) ); … … 426 426 long max_size, 427 427 unsigned options) 428 throw(Error)428 PJSUA2_THROW(Error) 429 429 { 430 430 PJ_UNUSED_ARG(max_size); … … 476 476 477 477 void ToneGenerator::createToneGenerator(unsigned clock_rate, 478 unsigned channel_count) throw(Error) 478 unsigned channel_count) 479 PJSUA2_THROW(Error) 479 480 { 480 481 pj_status_t status; … … 504 505 } 505 506 506 void ToneGenerator::stop() throw(Error)507 void ToneGenerator::stop() PJSUA2_THROW(Error) 507 508 { 508 509 pj_status_t status; … … 516 517 } 517 518 518 void ToneGenerator::rewind() throw(Error)519 void ToneGenerator::rewind() PJSUA2_THROW(Error) 519 520 { 520 521 pj_status_t status; … … 529 530 530 531 void ToneGenerator::play(const ToneDescVector &tones, 531 bool loop) throw(Error)532 bool loop) PJSUA2_THROW(Error) 532 533 { 533 534 pj_status_t status; … … 546 547 547 548 void ToneGenerator::playDigits(const ToneDigitVector &digits, 548 bool loop) throw(Error)549 bool loop) PJSUA2_THROW(Error) 549 550 { 550 551 pj_status_t status; … … 557 558 } 558 559 559 status = pjmedia_tonegen_play_digits(tonegen, (unsigned)digits.size(), &digits[0], 560 status = pjmedia_tonegen_play_digits(tonegen, 561 (unsigned)digits.size(), 562 &digits[0], 560 563 loop? PJMEDIA_TONEGEN_LOOP : 0); 561 564 PJSUA2_CHECK_RAISE_ERROR2(status, "ToneGenerator::playDigits()"); 562 565 } 563 566 564 ToneDigitMapVector ToneGenerator::getDigitMap() const throw(Error)567 ToneDigitMapVector ToneGenerator::getDigitMap() const PJSUA2_THROW(Error) 565 568 { 566 569 const pjmedia_tone_digit_map *pdm; … … 594 597 595 598 void ToneGenerator::setDigitMap(const ToneDigitMapVector &digit_map) 596 throw(Error)599 PJSUA2_THROW(Error) 597 600 { 598 601 unsigned i; … … 682 685 } 683 686 684 int AudDevManager::getCaptureDev() const throw(Error)687 int AudDevManager::getCaptureDev() const PJSUA2_THROW(Error) 685 688 { 686 689 return getActiveDev(true); 687 690 } 688 691 689 AudioMedia &AudDevManager::getCaptureDevMedia() throw(Error)692 AudioMedia &AudDevManager::getCaptureDevMedia() PJSUA2_THROW(Error) 690 693 { 691 694 if (!devMedia) … … 694 697 } 695 698 696 int AudDevManager::getPlaybackDev() const throw(Error)699 int AudDevManager::getPlaybackDev() const PJSUA2_THROW(Error) 697 700 { 698 701 return getActiveDev(false); 699 702 } 700 703 701 AudioMedia &AudDevManager::getPlaybackDevMedia() throw(Error)704 AudioMedia &AudDevManager::getPlaybackDevMedia() PJSUA2_THROW(Error) 702 705 { 703 706 if (!devMedia) … … 706 709 } 707 710 708 void AudDevManager::setCaptureDev(int capture_dev) const throw(Error)711 void AudDevManager::setCaptureDev(int capture_dev) const PJSUA2_THROW(Error) 709 712 { 710 713 pjsua_snd_dev_param param; … … 726 729 } 727 730 728 void AudDevManager::setPlaybackDev(int playback_dev) const throw(Error)731 void AudDevManager::setPlaybackDev(int playback_dev) const PJSUA2_THROW(Error) 729 732 { 730 733 pjsua_snd_dev_param param; … … 746 749 } 747 750 748 const AudioDevInfoVector &AudDevManager::enumDev() throw(Error)751 const AudioDevInfoVector &AudDevManager::enumDev() PJSUA2_THROW(Error) 749 752 { 750 753 pjmedia_aud_dev_info pj_info[MAX_DEV_COUNT]; … … 764 767 } 765 768 766 AudioDevInfoVector2 AudDevManager::enumDev2() const throw(Error)769 AudioDevInfoVector2 AudDevManager::enumDev2() const PJSUA2_THROW(Error) 767 770 { 768 771 pjmedia_aud_dev_info pj_info[MAX_DEV_COUNT]; … … 781 784 } 782 785 783 void AudDevManager::setNullDev() throw(Error)786 void AudDevManager::setNullDev() PJSUA2_THROW(Error) 784 787 { 785 788 PJSUA2_CHECK_EXPR( pjsua_set_null_snd_dev() ); … … 791 794 } 792 795 793 void AudDevManager::setSndDevMode(unsigned mode) const throw(Error)796 void AudDevManager::setSndDevMode(unsigned mode) const PJSUA2_THROW(Error) 794 797 { 795 798 int capture_dev = 0, playback_dev = 0; … … 807 810 808 811 void AudDevManager::setEcOptions(unsigned tail_msec, 809 unsigned options) throw(Error)812 unsigned options) PJSUA2_THROW(Error) 810 813 { 811 814 PJSUA2_CHECK_EXPR( pjsua_set_ec(tail_msec, options) ); 812 815 } 813 816 814 unsigned AudDevManager::getEcTail() const throw(Error)817 unsigned AudDevManager::getEcTail() const PJSUA2_THROW(Error) 815 818 { 816 819 unsigned tail_msec = 0; … … 826 829 } 827 830 828 void AudDevManager::refreshDevs() throw(Error)831 void AudDevManager::refreshDevs() PJSUA2_THROW(Error) 829 832 { 830 833 PJSUA2_CHECK_EXPR( pjmedia_aud_dev_refresh() ); … … 837 840 838 841 AudioDevInfo 839 AudDevManager::getDevInfo(int id) const throw(Error)842 AudDevManager::getDevInfo(int id) const PJSUA2_THROW(Error) 840 843 { 841 844 AudioDevInfo dev_info; … … 849 852 850 853 int AudDevManager::lookupDev(const string &drv_name, 851 const string &dev_name) const throw(Error)854 const string &dev_name) const PJSUA2_THROW(Error) 852 855 { 853 856 pjmedia_aud_dev_index pj_idx = 0; … … 868 871 void 869 872 AudDevManager::setExtFormat(const MediaFormatAudio &format, 870 bool keep) throw(Error)873 bool keep) PJSUA2_THROW(Error) 871 874 { 872 875 pjmedia_format pj_format = format.toPj(); … … 877 880 } 878 881 879 MediaFormatAudio AudDevManager::getExtFormat() const throw(Error)882 MediaFormatAudio AudDevManager::getExtFormat() const PJSUA2_THROW(Error) 880 883 { 881 884 pjmedia_format pj_format; … … 891 894 892 895 void AudDevManager::setInputLatency(unsigned latency_msec, 893 bool keep) throw(Error)896 bool keep) PJSUA2_THROW(Error) 894 897 { 895 898 PJSUA2_CHECK_EXPR( pjsua_snd_set_setting(PJMEDIA_AUD_DEV_CAP_INPUT_LATENCY, … … 898 901 } 899 902 900 unsigned AudDevManager::getInputLatency() const throw(Error)903 unsigned AudDevManager::getInputLatency() const PJSUA2_THROW(Error) 901 904 { 902 905 unsigned latency_msec = 0; … … 910 913 void 911 914 AudDevManager::setOutputLatency(unsigned latency_msec, 912 bool keep) throw(Error)915 bool keep) PJSUA2_THROW(Error) 913 916 { 914 917 PJSUA2_CHECK_EXPR( pjsua_snd_set_setting(PJMEDIA_AUD_DEV_CAP_OUTPUT_LATENCY, … … 917 920 } 918 921 919 unsigned AudDevManager::getOutputLatency() const throw(Error)922 unsigned AudDevManager::getOutputLatency() const PJSUA2_THROW(Error) 920 923 { 921 924 unsigned latency_msec = 0; … … 927 930 } 928 931 929 void AudDevManager::setInputVolume(unsigned volume, bool keep) throw(Error) 932 void AudDevManager::setInputVolume(unsigned volume, bool keep) 933 PJSUA2_THROW(Error) 930 934 { 931 935 PJSUA2_CHECK_EXPR( … … 935 939 } 936 940 937 unsigned AudDevManager::getInputVolume() const throw(Error)941 unsigned AudDevManager::getInputVolume() const PJSUA2_THROW(Error) 938 942 { 939 943 unsigned volume = 0; … … 946 950 } 947 951 948 void AudDevManager::setOutputVolume(unsigned volume, bool keep) throw(Error) 952 void AudDevManager::setOutputVolume(unsigned volume, bool keep) 953 PJSUA2_THROW(Error) 949 954 { 950 955 PJSUA2_CHECK_EXPR( … … 954 959 } 955 960 956 unsigned AudDevManager::getOutputVolume() const throw(Error)961 unsigned AudDevManager::getOutputVolume() const PJSUA2_THROW(Error) 957 962 { 958 963 unsigned volume = 0; … … 965 970 } 966 971 967 unsigned AudDevManager::getInputSignal() const throw(Error)972 unsigned AudDevManager::getInputSignal() const PJSUA2_THROW(Error) 968 973 { 969 974 unsigned signal = 0; … … 976 981 } 977 982 978 unsigned AudDevManager::getOutputSignal() const throw(Error)983 unsigned AudDevManager::getOutputSignal() const PJSUA2_THROW(Error) 979 984 { 980 985 unsigned signal = 0; … … 989 994 void 990 995 AudDevManager::setInputRoute(pjmedia_aud_dev_route route, 991 bool keep) throw(Error)996 bool keep) PJSUA2_THROW(Error) 992 997 { 993 998 PJSUA2_CHECK_EXPR( pjsua_snd_set_setting(PJMEDIA_AUD_DEV_CAP_INPUT_ROUTE, … … 996 1001 } 997 1002 998 pjmedia_aud_dev_route AudDevManager::getInputRoute() const throw(Error)1003 pjmedia_aud_dev_route AudDevManager::getInputRoute() const PJSUA2_THROW(Error) 999 1004 { 1000 1005 pjmedia_aud_dev_route route = PJMEDIA_AUD_DEV_ROUTE_DEFAULT; … … 1008 1013 void 1009 1014 AudDevManager::setOutputRoute(pjmedia_aud_dev_route route, 1010 bool keep) throw(Error)1015 bool keep) PJSUA2_THROW(Error) 1011 1016 { 1012 1017 PJSUA2_CHECK_EXPR( pjsua_snd_set_setting(PJMEDIA_AUD_DEV_CAP_OUTPUT_ROUTE, … … 1015 1020 } 1016 1021 1017 pjmedia_aud_dev_route AudDevManager::getOutputRoute() const throw(Error) 1022 pjmedia_aud_dev_route AudDevManager::getOutputRoute() const 1023 PJSUA2_THROW(Error) 1018 1024 { 1019 1025 pjmedia_aud_dev_route route = PJMEDIA_AUD_DEV_ROUTE_DEFAULT; … … 1025 1031 } 1026 1032 1027 void AudDevManager::setVad(bool enable, bool keep) throw(Error)1033 void AudDevManager::setVad(bool enable, bool keep) PJSUA2_THROW(Error) 1028 1034 { 1029 1035 PJSUA2_CHECK_EXPR( pjsua_snd_set_setting(PJMEDIA_AUD_DEV_CAP_VAD, … … 1032 1038 } 1033 1039 1034 bool AudDevManager::getVad() const throw(Error)1040 bool AudDevManager::getVad() const PJSUA2_THROW(Error) 1035 1041 { 1036 1042 bool enable = false; … … 1042 1048 } 1043 1049 1044 void AudDevManager::setCng(bool enable, bool keep) throw(Error)1050 void AudDevManager::setCng(bool enable, bool keep) PJSUA2_THROW(Error) 1045 1051 { 1046 1052 PJSUA2_CHECK_EXPR( pjsua_snd_set_setting(PJMEDIA_AUD_DEV_CAP_CNG, … … 1049 1055 } 1050 1056 1051 bool AudDevManager::getCng() const throw(Error)1057 bool AudDevManager::getCng() const PJSUA2_THROW(Error) 1052 1058 { 1053 1059 bool enable = false; … … 1059 1065 } 1060 1066 1061 void AudDevManager::setPlc(bool enable, bool keep) throw(Error)1067 void AudDevManager::setPlc(bool enable, bool keep) PJSUA2_THROW(Error) 1062 1068 { 1063 1069 PJSUA2_CHECK_EXPR( pjsua_snd_set_setting(PJMEDIA_AUD_DEV_CAP_PLC, … … 1066 1072 } 1067 1073 1068 bool AudDevManager::getPlc() const throw(Error)1074 bool AudDevManager::getPlc() const PJSUA2_THROW(Error) 1069 1075 { 1070 1076 bool enable = false; … … 1084 1090 } 1085 1091 1086 int AudDevManager::getActiveDev(bool is_capture) const throw(Error)1092 int AudDevManager::getActiveDev(bool is_capture) const PJSUA2_THROW(Error) 1087 1093 { 1088 1094 int capture_dev = 0, playback_dev = 0; … … 1173 1179 } 1174 1180 1175 VideoWindowInfo VideoWindow::getInfo() const throw(Error)1181 VideoWindowInfo VideoWindow::getInfo() const PJSUA2_THROW(Error) 1176 1182 { 1177 1183 VideoWindowInfo vwi; … … 1195 1201 } 1196 1202 1197 VideoMedia VideoWindow::getVideoMedia() throw(Error)1203 VideoMedia VideoWindow::getVideoMedia() PJSUA2_THROW(Error) 1198 1204 { 1199 1205 #if PJSUA_HAS_VIDEO … … 1214 1220 } 1215 1221 1216 void VideoWindow::Show(bool show) throw(Error)1222 void VideoWindow::Show(bool show) PJSUA2_THROW(Error) 1217 1223 { 1218 1224 #if PJSUA_HAS_VIDEO … … 1223 1229 } 1224 1230 1225 void VideoWindow::setPos(const MediaCoordinate &pos) throw(Error)1231 void VideoWindow::setPos(const MediaCoordinate &pos) PJSUA2_THROW(Error) 1226 1232 { 1227 1233 #if PJSUA_HAS_VIDEO … … 1236 1242 } 1237 1243 1238 void VideoWindow::setSize(const MediaSize &size) throw(Error)1244 void VideoWindow::setSize(const MediaSize &size) PJSUA2_THROW(Error) 1239 1245 { 1240 1246 #if PJSUA_HAS_VIDEO … … 1249 1255 } 1250 1256 1251 void VideoWindow::rotate(int angle) throw(Error)1257 void VideoWindow::rotate(int angle) PJSUA2_THROW(Error) 1252 1258 { 1253 1259 #if PJSUA_HAS_VIDEO … … 1258 1264 } 1259 1265 1260 void VideoWindow::setWindow(const VideoWindowHandle &win) throw(Error)1266 void VideoWindow::setWindow(const VideoWindowHandle &win) PJSUA2_THROW(Error) 1261 1267 { 1262 1268 #if PJSUA_HAS_VIDEO … … 1327 1333 } 1328 1334 1329 void VideoPreview::start(const VideoPreviewOpParam ¶m) throw(Error)1335 void VideoPreview::start(const VideoPreviewOpParam ¶m) PJSUA2_THROW(Error) 1330 1336 { 1331 1337 #if PJSUA_HAS_VIDEO … … 1338 1344 } 1339 1345 1340 void VideoPreview::stop() throw(Error)1346 void VideoPreview::stop() PJSUA2_THROW(Error) 1341 1347 { 1342 1348 #if PJSUA_HAS_VIDEO … … 1354 1360 } 1355 1361 1356 VideoMedia VideoPreview::getVideoMedia() throw(Error)1362 VideoMedia VideoPreview::getVideoMedia() PJSUA2_THROW(Error) 1357 1363 { 1358 1364 #if PJSUA_HAS_VIDEO … … 1444 1450 1445 1451 /////////////////////////////////////////////////////////////////////////////// 1446 void VidDevManager::refreshDevs() throw(Error)1452 void VidDevManager::refreshDevs() PJSUA2_THROW(Error) 1447 1453 { 1448 1454 #if PJSUA_HAS_VIDEO … … 1460 1466 } 1461 1467 1462 VideoDevInfo VidDevManager::getDevInfo(int dev_id) const throw(Error)1468 VideoDevInfo VidDevManager::getDevInfo(int dev_id) const PJSUA2_THROW(Error) 1463 1469 { 1464 1470 VideoDevInfo dev_info; … … 1475 1481 } 1476 1482 1477 const VideoDevInfoVector &VidDevManager::enumDev() throw(Error)1483 const VideoDevInfoVector &VidDevManager::enumDev() PJSUA2_THROW(Error) 1478 1484 { 1479 1485 #if PJSUA_HAS_VIDEO … … 1495 1501 } 1496 1502 1497 VideoDevInfoVector2 VidDevManager::enumDev2() const throw(Error)1503 VideoDevInfoVector2 VidDevManager::enumDev2() const PJSUA2_THROW(Error) 1498 1504 { 1499 1505 VideoDevInfoVector2 vdiv2; … … 1514 1520 1515 1521 int VidDevManager::lookupDev(const string &drv_name, 1516 const string &dev_name) const throw(Error)1522 const string &dev_name) const PJSUA2_THROW(Error) 1517 1523 { 1518 1524 pjmedia_vid_dev_index pj_idx = 0; … … 1541 1547 void VidDevManager::setFormat(int dev_id, 1542 1548 const MediaFormatVideo &format, 1543 bool keep) throw(Error)1549 bool keep) PJSUA2_THROW(Error) 1544 1550 { 1545 1551 #if PJSUA_HAS_VIDEO … … 1557 1563 } 1558 1564 1559 MediaFormatVideo VidDevManager::getFormat(int dev_id) const throw(Error) 1565 MediaFormatVideo VidDevManager::getFormat(int dev_id) const 1566 PJSUA2_THROW(Error) 1560 1567 { 1561 1568 MediaFormatVideo vid_format; … … 1575 1582 void VidDevManager::setInputScale(int dev_id, 1576 1583 const MediaSize &scale, 1577 bool keep) throw(Error)1584 bool keep) PJSUA2_THROW(Error) 1578 1585 { 1579 1586 #if PJSUA_HAS_VIDEO … … 1592 1599 } 1593 1600 1594 MediaSize VidDevManager::getInputScale(int dev_id) const throw(Error)1601 MediaSize VidDevManager::getInputScale(int dev_id) const PJSUA2_THROW(Error) 1595 1602 { 1596 1603 MediaSize scale; … … 1612 1619 void VidDevManager::setOutputWindowFlags(int dev_id, 1613 1620 int flags, 1614 bool keep) throw(Error)1621 bool keep) PJSUA2_THROW(Error) 1615 1622 { 1616 1623 #if PJSUA_HAS_VIDEO … … 1626 1633 } 1627 1634 1628 int VidDevManager::getOutputWindowFlags(int dev_id) throw(Error)1635 int VidDevManager::getOutputWindowFlags(int dev_id) PJSUA2_THROW(Error) 1629 1636 { 1630 1637 int flags = 0; … … 1641 1648 1642 1649 void VidDevManager::switchDev(int dev_id, 1643 const VideoSwitchParam ¶m) throw(Error) 1650 const VideoSwitchParam ¶m) 1651 PJSUA2_THROW(Error) 1644 1652 { 1645 1653 #if PJSUA_HAS_VIDEO … … 1679 1687 void VidDevManager::setCaptureOrient(pjmedia_vid_dev_index dev_id, 1680 1688 pjmedia_orient orient, 1681 bool keep) throw(Error)1689 bool keep) PJSUA2_THROW(Error) 1682 1690 { 1683 1691 #if PJSUA_HAS_VIDEO … … 1867 1875 1868 1876 void VideoMedia::registerMediaPort(MediaPort port, pj_pool_t *pool) 1869 throw(Error)1877 PJSUA2_THROW(Error) 1870 1878 { 1871 1879 #if PJSUA_HAS_VIDEO … … 1907 1915 } 1908 1916 1909 VidConfPortInfo VideoMedia::getPortInfo() const throw(Error)1917 VidConfPortInfo VideoMedia::getPortInfo() const PJSUA2_THROW(Error) 1910 1918 { 1911 1919 return VideoMedia::getPortInfoFromId(id); … … 1917 1925 } 1918 1926 1919 VidConfPortInfo VideoMedia::getPortInfoFromId(int port_id) throw(Error)1927 VidConfPortInfo VideoMedia::getPortInfoFromId(int port_id) PJSUA2_THROW(Error) 1920 1928 { 1921 1929 #if PJSUA_HAS_VIDEO … … 1934 1942 void VideoMedia::startTransmit(const VideoMedia &sink, 1935 1943 const VideoMediaTransmitParam ¶m) const 1936 throw(Error)1944 PJSUA2_THROW(Error) 1937 1945 { 1938 1946 PJ_UNUSED_ARG(param); … … 1945 1953 } 1946 1954 1947 void VideoMedia::stopTransmit(const VideoMedia &sink) const throw(Error) 1955 void VideoMedia::stopTransmit(const VideoMedia &sink) const 1956 PJSUA2_THROW(Error) 1948 1957 { 1949 1958 #if PJSUA_HAS_VIDEO -
pjproject/trunk/pjsip/src/pjsua2/persistent.cpp
r4704 r6026 28 28 } 29 29 30 string PersistentDocument::unreadName() const throw(Error)30 string PersistentDocument::unreadName() const PJSUA2_THROW(Error) 31 31 { 32 32 return getRootContainer().unreadName(); 33 33 } 34 34 35 int PersistentDocument::readInt(const string &name) const throw(Error)35 int PersistentDocument::readInt(const string &name) const PJSUA2_THROW(Error) 36 36 { 37 37 return (int)getRootContainer().readNumber(name); 38 38 } 39 39 40 float PersistentDocument::readNumber(const string &name) const throw(Error) 40 float PersistentDocument::readNumber(const string &name) const 41 PJSUA2_THROW(Error) 41 42 { 42 43 return getRootContainer().readNumber(name); 43 44 } 44 45 45 bool PersistentDocument::readBool(const string &name) const throw(Error) 46 bool PersistentDocument::readBool(const string &name) const 47 PJSUA2_THROW(Error) 46 48 { 47 49 return getRootContainer().readBool(name); 48 50 } 49 51 50 string PersistentDocument::readString(const string &name) const throw(Error) 52 string PersistentDocument::readString(const string &name) const 53 PJSUA2_THROW(Error) 51 54 { 52 55 return getRootContainer().readString(name); … … 54 57 55 58 StringVector PersistentDocument::readStringVector(const string &name) const 56 throw(Error)59 PJSUA2_THROW(Error) 57 60 { 58 61 return getRootContainer().readStringVector(name); 59 62 } 60 63 61 void PersistentDocument::readObject(PersistentObject &obj) const throw(Error) 64 void PersistentDocument::readObject(PersistentObject &obj) const 65 PJSUA2_THROW(Error) 62 66 { 63 67 getRootContainer().readObject(obj); … … 65 69 66 70 ContainerNode PersistentDocument::readContainer(const string &name) const 67 throw(Error)71 PJSUA2_THROW(Error) 68 72 { 69 73 return getRootContainer().readContainer(name); … … 71 75 72 76 ContainerNode PersistentDocument::readArray(const string &name) const 73 throw(Error)77 PJSUA2_THROW(Error) 74 78 { 75 79 return getRootContainer().readArray(name); … … 77 81 78 82 void PersistentDocument::writeNumber(const string &name, 79 float num) throw(Error)83 float num) PJSUA2_THROW(Error) 80 84 { 81 85 getRootContainer().writeNumber(name, num); … … 83 87 84 88 void PersistentDocument::writeInt(const string &name, 85 int num) throw(Error)89 int num) PJSUA2_THROW(Error) 86 90 { 87 91 getRootContainer().writeNumber(name, (float)num); … … 89 93 90 94 void PersistentDocument::writeBool(const string &name, 91 bool value) throw(Error)95 bool value) PJSUA2_THROW(Error) 92 96 { 93 97 getRootContainer().writeBool(name, value); … … 95 99 96 100 void PersistentDocument::writeString(const string &name, 97 const string &value) throw(Error)101 const string &value) PJSUA2_THROW(Error) 98 102 { 99 103 getRootContainer().writeString(name, value); … … 102 106 void PersistentDocument::writeStringVector(const string &name, 103 107 const StringVector &value) 104 throw(Error)108 PJSUA2_THROW(Error) 105 109 { 106 110 getRootContainer().writeStringVector(name, value); 107 111 } 108 112 109 void PersistentDocument::writeObject(const PersistentObject &obj) throw(Error) 113 void PersistentDocument::writeObject(const PersistentObject &obj) 114 PJSUA2_THROW(Error) 110 115 { 111 116 getRootContainer().writeObject(obj); … … 113 118 114 119 ContainerNode PersistentDocument::writeNewContainer(const string &name) 115 throw(Error)120 PJSUA2_THROW(Error) 116 121 { 117 122 return getRootContainer().writeNewContainer(name); … … 119 124 120 125 ContainerNode PersistentDocument::writeNewArray(const string &name) 121 throw(Error)126 PJSUA2_THROW(Error) 122 127 { 123 128 return getRootContainer().writeNewArray(name); … … 131 136 } 132 137 133 string ContainerNode::unreadName() const throw(Error)138 string ContainerNode::unreadName() const PJSUA2_THROW(Error) 134 139 { 135 140 return op->unreadName(this); 136 141 } 137 142 138 int ContainerNode::readInt(const string &name) const throw(Error)143 int ContainerNode::readInt(const string &name) const PJSUA2_THROW(Error) 139 144 { 140 145 return (int)op->readNumber(this, name); 141 146 } 142 147 143 float ContainerNode::readNumber(const string &name) const throw(Error)148 float ContainerNode::readNumber(const string &name) const PJSUA2_THROW(Error) 144 149 { 145 150 return op->readNumber(this, name); 146 151 } 147 152 148 bool ContainerNode::readBool(const string &name) const throw(Error)153 bool ContainerNode::readBool(const string &name) const PJSUA2_THROW(Error) 149 154 { 150 155 return op->readBool(this, name); 151 156 } 152 157 153 string ContainerNode::readString(const string &name) const throw(Error)158 string ContainerNode::readString(const string &name) const PJSUA2_THROW(Error) 154 159 { 155 160 return op->readString(this, name); … … 157 162 158 163 StringVector ContainerNode::readStringVector(const string &name) const 159 throw(Error)164 PJSUA2_THROW(Error) 160 165 { 161 166 return op->readStringVector(this, name); 162 167 } 163 168 164 void ContainerNode::readObject(PersistentObject &obj) const throw(Error) 169 void ContainerNode::readObject(PersistentObject &obj) const 170 PJSUA2_THROW(Error) 165 171 { 166 172 obj.readObject(*this); … … 168 174 169 175 ContainerNode ContainerNode::readContainer(const string &name) const 170 throw(Error)176 PJSUA2_THROW(Error) 171 177 { 172 178 return op->readContainer(this, name); … … 174 180 175 181 ContainerNode ContainerNode::readArray(const string &name) const 176 throw(Error)182 PJSUA2_THROW(Error) 177 183 { 178 184 return op->readArray(this, name); … … 180 186 181 187 void ContainerNode::writeNumber(const string &name, 182 float num) throw(Error)188 float num) PJSUA2_THROW(Error) 183 189 { 184 190 return op->writeNumber(this, name, num); … … 186 192 187 193 void ContainerNode::writeInt(const string &name, 188 int num) throw(Error)194 int num) PJSUA2_THROW(Error) 189 195 { 190 196 return op->writeNumber(this, name, (float)num); … … 192 198 193 199 void ContainerNode::writeBool(const string &name, 194 bool value) throw(Error)200 bool value) PJSUA2_THROW(Error) 195 201 { 196 202 return op->writeBool(this, name, value); … … 198 204 199 205 void ContainerNode::writeString(const string &name, 200 const string &value) throw(Error)206 const string &value) PJSUA2_THROW(Error) 201 207 { 202 208 return op->writeString(this, name, value); … … 205 211 void ContainerNode::writeStringVector(const string &name, 206 212 const StringVector &value) 207 throw(Error)213 PJSUA2_THROW(Error) 208 214 { 209 215 return op->writeStringVector(this, name, value); 210 216 } 211 217 212 void ContainerNode::writeObject(const PersistentObject &obj) throw(Error) 218 void ContainerNode::writeObject(const PersistentObject &obj) 219 PJSUA2_THROW(Error) 213 220 { 214 221 obj.writeObject(*this); … … 216 223 217 224 ContainerNode ContainerNode::writeNewContainer(const string &name) 218 throw(Error)225 PJSUA2_THROW(Error) 219 226 { 220 227 return op->writeNewContainer(this, name); … … 222 229 223 230 ContainerNode ContainerNode::writeNewArray(const string &name) 224 throw(Error)231 PJSUA2_THROW(Error) 225 232 { 226 233 return op->writeNewArray(this, name); -
pjproject/trunk/pjsip/src/pjsua2/presence.cpp
r5969 r6026 37 37 /////////////////////////////////////////////////////////////////////////////// 38 38 39 void BuddyConfig::readObject(const ContainerNode &node) throw(Error)39 void BuddyConfig::readObject(const ContainerNode &node) PJSUA2_THROW(Error) 40 40 { 41 41 ContainerNode this_node = node.readContainer("BuddyConfig"); … … 45 45 } 46 46 47 void BuddyConfig::writeObject(ContainerNode &node) const throw(Error)47 void BuddyConfig::writeObject(ContainerNode &node) const PJSUA2_THROW(Error) 48 48 { 49 49 ContainerNode this_node = node.writeNewContainer("BuddyConfig"); … … 124 124 * Create buddy and register the buddy to PJSUA-LIB. 125 125 */ 126 void Buddy::create(Account &account, const BuddyConfig &cfg) throw(Error) 126 void Buddy::create(Account &account, const BuddyConfig &cfg) 127 PJSUA2_THROW(Error) 127 128 { 128 129 pjsua_buddy_config pj_cfg; … … 155 156 * Get detailed buddy info. 156 157 */ 157 BuddyInfo Buddy::getInfo() const throw(Error)158 BuddyInfo Buddy::getInfo() const PJSUA2_THROW(Error) 158 159 { 159 160 pjsua_buddy_info pj_bi; … … 168 169 * Enable/disable buddy's presence monitoring. 169 170 */ 170 void Buddy::subscribePresence(bool subscribe) throw(Error)171 void Buddy::subscribePresence(bool subscribe) PJSUA2_THROW(Error) 171 172 { 172 173 PJSUA2_CHECK_EXPR( pjsua_buddy_subscribe_pres(id, subscribe) ); … … 177 178 * Update the presence information for the buddy. 178 179 */ 179 void Buddy::updatePresence(void) throw(Error)180 void Buddy::updatePresence(void) PJSUA2_THROW(Error) 180 181 { 181 182 PJSUA2_CHECK_EXPR( pjsua_buddy_update_pres(id) ); … … 185 186 * Send instant messaging outside dialog. 186 187 */ 187 void Buddy::sendInstantMessage(const SendInstantMessageParam &prm) throw(Error) 188 void Buddy::sendInstantMessage(const SendInstantMessageParam &prm) 189 PJSUA2_THROW(Error) 188 190 { 189 191 BuddyInfo bi = getInfo(); … … 211 213 */ 212 214 void Buddy::sendTypingIndication(const SendTypingIndicationParam &prm) 213 throw(Error)215 PJSUA2_THROW(Error) 214 216 { 215 217 BuddyInfo bi = getInfo(); -
pjproject/trunk/pjsip/src/pjsua2/siptypes.cpp
r5926 r6026 31 31 void readIntVector( ContainerNode &node, 32 32 const string &array_name, 33 IntVector &v) throw(Error)33 IntVector &v) PJSUA2_THROW(Error) 34 34 { 35 35 ContainerNode array_node = node.readArray(array_name); … … 42 42 void writeIntVector(ContainerNode &node, 43 43 const string &array_name, 44 const IntVector &v) throw(Error)44 const IntVector &v) PJSUA2_THROW(Error) 45 45 { 46 46 ContainerNode array_node = node.writeNewArray(array_name); … … 51 51 52 52 void readQosParams( ContainerNode &node, 53 pj_qos_params &qos) throw(Error)53 pj_qos_params &qos) PJSUA2_THROW(Error) 54 54 { 55 55 ContainerNode this_node = node.readContainer("qosParams"); … … 62 62 63 63 void writeQosParams( ContainerNode &node, 64 const pj_qos_params &qos) throw(Error)64 const pj_qos_params &qos) PJSUA2_THROW(Error) 65 65 { 66 66 ContainerNode this_node = node.writeNewContainer("qosParams"); … … 74 74 void readSipHeaders( const ContainerNode &node, 75 75 const string &array_name, 76 SipHeaderVector &headers) throw(Error)76 SipHeaderVector &headers) PJSUA2_THROW(Error) 77 77 { 78 78 ContainerNode headers_node = node.readArray(array_name); … … 90 90 void writeSipHeaders(ContainerNode &node, 91 91 const string &array_name, 92 const SipHeaderVector &headers) throw(Error)92 const SipHeaderVector &headers) PJSUA2_THROW(Error) 93 93 { 94 94 ContainerNode headers_node = node.writeNewArray(array_name); … … 118 118 } 119 119 120 void AuthCredInfo::readObject(const ContainerNode &node) throw(Error)120 void AuthCredInfo::readObject(const ContainerNode &node) PJSUA2_THROW(Error) 121 121 { 122 122 ContainerNode this_node = node.readContainer("AuthCredInfo"); … … 132 132 } 133 133 134 void AuthCredInfo::writeObject(ContainerNode &node) const throw(Error)134 void AuthCredInfo::writeObject(ContainerNode &node) const PJSUA2_THROW(Error) 135 135 { 136 136 ContainerNode this_node = node.writeNewContainer("AuthCredInfo"); … … 209 209 } 210 210 211 void TlsConfig::readObject(const ContainerNode &node) throw(Error)211 void TlsConfig::readObject(const ContainerNode &node) PJSUA2_THROW(Error) 212 212 { 213 213 ContainerNode this_node = node.readContainer("TlsConfig"); … … 231 231 } 232 232 233 void TlsConfig::writeObject(ContainerNode &node) const throw(Error)233 void TlsConfig::writeObject(ContainerNode &node) const PJSUA2_THROW(Error) 234 234 { 235 235 ContainerNode this_node = node.writeNewContainer("TlsConfig"); … … 289 289 } 290 290 291 void TransportConfig::readObject(const ContainerNode &node) throw(Error)291 void TransportConfig::readObject(const ContainerNode &node) PJSUA2_THROW(Error) 292 292 { 293 293 ContainerNode this_node = node.readContainer("TransportConfig"); … … 302 302 } 303 303 304 void TransportConfig::writeObject(ContainerNode &node) const throw(Error) 304 void TransportConfig::writeObject(ContainerNode &node) const 305 PJSUA2_THROW(Error) 305 306 { 306 307 ContainerNode this_node = node.writeNewContainer("TransportConfig"); … … 379 380 /////////////////////////////////////////////////////////////////////////////// 380 381 381 void SipHeader::fromPj(const pjsip_hdr *hdr) throw(Error)382 void SipHeader::fromPj(const pjsip_hdr *hdr) PJSUA2_THROW(Error) 382 383 { 383 384 char *buf = NULL; … … 436 437 /////////////////////////////////////////////////////////////////////////////// 437 438 438 void SipMultipartPart::fromPj(const pjsip_multipart_part &prm) throw(Error) 439 void SipMultipartPart::fromPj(const pjsip_multipart_part &prm) 440 PJSUA2_THROW(Error) 439 441 { 440 442 headers.clear(); … … 575 577 } 576 578 577 void SipTxOption::fromPj(const pjsua_msg_data &prm) throw(Error)579 void SipTxOption::fromPj(const pjsua_msg_data &prm) PJSUA2_THROW(Error) 578 580 { 579 581 targetUri = pj2Str(prm.target_uri);
Note: See TracChangeset
for help on using the changeset viewer.