Changeset 1735 for pjproject/trunk/pjmedia/include/pjmedia/errno.h
- Timestamp:
- Jan 23, 2008 8:39:07 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/errno.h
r1639 r1735 43 43 */ 44 44 #define PJMEDIA_ERRNO_START (PJ_ERRNO_START_USER + PJ_ERRNO_SPACE_SIZE) 45 #define PJMEDIA_ERRNO_END (PJMEDIA_ERRNO_START + PJ_ERRNO_SPACE_SIZE - 1) 45 46 46 47 … … 48 49 * Mapping from PortAudio error codes to pjmedia error space. 49 50 */ 50 #define PJMEDIA_PORTAUDIO_ERRNO_START (PJMEDIA_ERRNO_ START+PJ_ERRNO_SPACE_SIZE-1000)51 51 #define PJMEDIA_PORTAUDIO_ERRNO_START (PJMEDIA_ERRNO_END-10000) 52 #define PJMEDIA_PORTAUDIO_ERRNO_END (PJMEDIA_PORTAUDIO_ERRNO_START + 10000 -1) 52 53 /** 53 54 * Convert PortAudio error code to PJMEDIA error code. 54 */ 55 #define PJMEDIA_ERRNO_FROM_PORTAUDIO(err) (err+PJMEDIA_PORTAUDIO_ERRNO_START) 56 55 * PortAudio error code range: 0 >= err >= -10000 56 */ 57 #define PJMEDIA_ERRNO_FROM_PORTAUDIO(err) ((int)PJMEDIA_PORTAUDIO_ERRNO_START-err) 58 59 60 #if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0) 61 62 /** 63 * Mapping from LibSRTP error codes to pjmedia error space. 64 */ 65 #define PJMEDIA_LIBSRTP_ERRNO_START (PJMEDIA_ERRNO_END-10200) 66 #define PJMEDIA_LIBSRTP_ERRNO_END (PJMEDIA_LIBSRTP_ERRNO_START + 200 - 1) 67 /** 68 * Convert LibSRTP error code to PJMEDIA error code. 69 * LibSRTP error code range: 0 <= err < 200 70 */ 71 #define PJMEDIA_ERRNO_FROM_LIBSRTP(err) (PJMEDIA_LIBSRTP_ERRNO_START+err) 72 73 #endif 57 74 58 75 /************************************************************ … … 525 542 */ 526 543 #define PJMEDIA_ESNDINSAMPLEFMT (PJMEDIA_ERRNO_START+203) /* 220203 */ 544 545 546 #if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0) 547 /************************************************************ 548 * SRTP TRANSPORT ERRORS 549 ***********************************************************/ 550 /** 551 * @hideinitializer 552 * SRTP crypto-suite name not match the offerer tag. 553 */ 554 #define PJMEDIA_SRTP_ECRYPTONOTMATCH (PJMEDIA_ERRNO_START+220) /* 220220 */ 555 /** 556 * @hideinitializer 557 * Invalid SRTP key length for specific crypto. 558 */ 559 #define PJMEDIA_SRTP_EINKEYLEN (PJMEDIA_ERRNO_START+221) /* 220221 */ 560 /** 561 * @hideinitializer 562 * Unsupported SRTP crypto-suite. 563 */ 564 #define PJMEDIA_SRTP_ENOTSUPCRYPTO (PJMEDIA_ERRNO_START+222) /* 220222 */ 565 /** 566 * @hideinitializer 567 * SRTP SDP contains ambigue answer. 568 */ 569 #define PJMEDIA_SRTP_ESDPAMBIGUEANS (PJMEDIA_ERRNO_START+223) /* 220223 */ 570 /** 571 * @hideinitializer 572 * Duplicated crypto tag. 573 */ 574 #define PJMEDIA_SRTP_ESDPDUPCRYPTOTAG (PJMEDIA_ERRNO_START+224) /* 220224 */ 575 /** 576 * @hideinitializer 577 * Invalid crypto attribute. 578 */ 579 #define PJMEDIA_SRTP_ESDPINCRYPTO (PJMEDIA_ERRNO_START+225) /* 220225 */ 580 /** 581 * @hideinitializer 582 * Invalid crypto tag. 583 */ 584 #define PJMEDIA_SRTP_ESDPINCRYPTOTAG (PJMEDIA_ERRNO_START+226) /* 220226 */ 585 /** 586 * @hideinitializer 587 * Invalid SDP media transport for SRTP. 588 */ 589 #define PJMEDIA_SRTP_ESDPINTRANSPORT (PJMEDIA_ERRNO_START+227) /* 220227 */ 590 /** 591 * @hideinitializer 592 * SRTP crypto attribute required in SDP. 593 */ 594 #define PJMEDIA_SRTP_ESDPREQCRYPTO (PJMEDIA_ERRNO_START+228) /* 220228 */ 595 /** 596 * @hideinitializer 597 * Secure transport required in SDP media descriptor. 598 */ 599 #define PJMEDIA_SRTP_ESDPREQSECTP (PJMEDIA_ERRNO_START+229) /* 220229 */ 600 601 #endif /* PJMEDIA_HAS_SRTP */ 527 602 528 603
Note: See TracChangeset
for help on using the changeset viewer.