- Timestamp:
- Nov 1, 2013 7:11:48 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/pjsua2/pjsip/include/pjsua2/types.hpp
r4638 r4639 71 71 72 72 /* 73 * Forward declaration of Account , AccountConfig,to be used73 * Forward declaration of Account to be used 74 74 * by Endpoint. 75 75 */ 76 76 class Account; 77 class AccountConfig;78 77 79 78 … … 143 142 144 143 # define PJSUA2_RAISE_ERROR3(status,op,txt) \ 145 throw Error(status, op, txt, __FILE__, __LINE__) 144 do { \ 145 Error err_ = Error(status, op, txt, __FILE__, __LINE__); \ 146 PJ_LOG(1,(THIS_FILE, "%s", err_.info().c_str())); \ 147 throw err_; \ 148 } while (0) 146 149 147 150 #else … … 153 156 154 157 # define PJSUA2_RAISE_ERROR3(status,op,txt) \ 155 throw Error(status, op, txt, string(), 0) 158 do { \ 159 Error err_ = Error(status, op, txt, string(), 0); \ 160 PJ_LOG(1,(THIS_FILE, "%s", err_.info().c_str())); \ 161 throw err_; \ 162 } while (0) 156 163 157 164 #endif … … 159 166 #define PJSUA2_CHECK_RAISE_ERROR2(status, op) \ 160 167 do { \ 161 if (status != PJ_SUCCESS) \168 if (status != PJ_SUCCESS) { \ 162 169 PJSUA2_RAISE_ERROR2(status, op); \ 170 } \ 163 171 } while (0) 164 172 … … 171 179 PJSUA2_CHECK_RAISE_ERROR2(the_status, #expr); \ 172 180 } while (0) 181 182 ////////////////////////////////////////////////////////////////////////////// 183 184 struct Version 185 { 186 /** Major number */ 187 int major; 188 189 /** Minor number */ 190 int minor; 191 192 /** Additional revision number */ 193 int rev; 194 195 /** Version suffix (e.g. "-svn") */ 196 string suffix; 197 198 /** The full version info (e.g. "2.1.0-svn") */ 199 string full; 200 201 /** 202 * PJLIB version number as three bytes with the following format: 203 * 0xMMIIRR00, where MM: major number, II: minor number, RR: revision 204 * number, 00: always zero for now. 205 */ 206 unsigned numeric; 207 }; 173 208 174 209 ////////////////////////////////////////////////////////////////////////////// … … 232 267 const int data_type, 233 268 const string data); 234 }; 235 236 /** Array of SIP credentials */ 237 typedef std::vector<AuthCredInfo> AuthCredInfoVector; 269 270 }; 271 238 272 239 273 //////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.