|
HOME
SIP/media Features
High Performance SIP
Small Footprint SIP
Symbian Port
FAQ
Documentation
Licensing
Download
Development (Trac)
Projects using pjsip
Mailing List
Open Source Links
About: PJLIB, PJLIB-UTIL, PJSIP, and PJMEDIA are created by: Benny Prijono <bennylp pjsip.org>
|
|
Home --> Documentations --> PJLIB Reference
errno.h File Reference
PJLIB Error Subsystem.
More...
Go to the source code of this file.
Defines |
| #define | PJ_ERR_MSG_SIZE 80 |
| #define | PJ_PERROR(level, arg) |
| #define | PJ_RETURN_OS_ERROR(os_code) |
| #define | PJ_STATUS_FROM_OS(e) |
| #define | PJ_STATUS_TO_OS(e) |
| #define | PJ_BUILD_ERR(code, msg) { code, msg " (" #code ")" } |
| #define | PJ_EUNKNOWN |
| #define | PJ_EPENDING |
| #define | PJ_ETOOMANYCONN |
| #define | PJ_EINVAL |
| #define | PJ_ENAMETOOLONG |
| #define | PJ_ENOTFOUND |
| #define | PJ_ENOMEM |
| #define | PJ_EBUG |
| #define | PJ_ETIMEDOUT |
| #define | PJ_ETOOMANY |
| #define | PJ_EBUSY |
| #define | PJ_ENOTSUP |
| #define | PJ_EINVALIDOP |
| #define | PJ_ECANCELLED |
| #define | PJ_EEXISTS |
| #define | PJ_EEOF |
| #define | PJ_ETOOBIG |
| #define | PJ_ERESOLVE |
| #define | PJ_ETOOSMALL |
| #define | PJ_EIGNORED |
| #define | PJ_EIPV6NOTSUP |
| #define | PJ_EAFNOTSUP |
| #define | PJ_ERRNO_START 20000 |
| #define | PJ_ERRNO_SPACE_SIZE 50000 |
| #define | PJ_ERRNO_START_STATUS (PJ_ERRNO_START + PJ_ERRNO_SPACE_SIZE) |
| #define | PJ_ERRNO_START_SYS (PJ_ERRNO_START_STATUS + PJ_ERRNO_SPACE_SIZE) |
| #define | PJ_ERRNO_START_USER (PJ_ERRNO_START_SYS + PJ_ERRNO_SPACE_SIZE) |
| #define | pj_perror_wrapper_1(arg) pj_perror_1 arg |
| #define | pj_perror_wrapper_2(arg) pj_perror_2 arg |
| #define | pj_perror_wrapper_3(arg) pj_perror_3 arg |
| #define | pj_perror_wrapper_4(arg) pj_perror_4 arg |
| #define | pj_perror_wrapper_5(arg) |
| #define | pj_perror_wrapper_6(arg) |
Typedefs |
| typedef pj_str_t(* | pj_error_callback )(pj_status_t e, char *msg, pj_size_t max) |
Functions |
| pj_status_t | pj_get_os_error (void) |
| void | pj_set_os_error (pj_status_t code) |
| pj_status_t | pj_get_netos_error (void) |
| void | pj_set_netos_error (pj_status_t code) |
| pj_str_t | pj_strerror (pj_status_t statcode, char *buf, pj_size_t bufsize) |
| void | pj_perror (int log_level, const char *sender, pj_status_t status, const char *title_fmt,...) |
| pj_status_t | pj_register_strerror (pj_status_t start_code, pj_status_t err_space, pj_error_callback f) |
|
void | pj_errno_clear_handlers (void) |
| void | pj_perror_1 (const char *sender, pj_status_t status, const char *title_fmt,...) |
| void | pj_perror_2 (const char *sender, pj_status_t status, const char *title_fmt,...) |
| void | pj_perror_3 (const char *sender, pj_status_t status, const char *title_fmt,...) |
| void | pj_perror_4 (const char *sender, pj_status_t status, const char *title_fmt,...) |
Detailed Description
PJLIB Error Subsystem.
Define Documentation
| #define PJ_ERRNO_SPACE_SIZE 50000 |
PJ_ERRNO_SPACE_SIZE is the maximum number of errors in one of the error/status range below.
| #define PJ_ERRNO_START 20000 |
PJ_ERRNO_START is where PJLIB specific error values start.
| #define PJ_ERRNO_START_STATUS (PJ_ERRNO_START + PJ_ERRNO_SPACE_SIZE) |
PJ_ERRNO_START_STATUS is where PJLIB specific status codes start. Effectively the error in this class would be 70000 - 119000.
| #define PJ_ERRNO_START_SYS (PJ_ERRNO_START_STATUS + PJ_ERRNO_SPACE_SIZE) |
PJ_ERRNO_START_SYS converts platform specific error codes into pj_status_t values. Effectively the error in this class would be 120000 - 169000.
| #define PJ_ERRNO_START_USER (PJ_ERRNO_START_SYS + PJ_ERRNO_SPACE_SIZE) |
PJ_ERRNO_START_USER are reserved for applications that use error codes along with PJLIB codes. Effectively the error in this class would be 170000 - 219000.
| #define pj_perror_wrapper_1 |
( |
arg |
|
) |
pj_perror_1 arg |
Internal function to write log with verbosity 1. Will evaluate to empty expression if PJ_LOG_MAX_LEVEL is below 1.
- Parameters:
-
| #define pj_perror_wrapper_2 |
( |
arg |
|
) |
pj_perror_2 arg |
Internal function to write log with verbosity 2. Will evaluate to empty expression if PJ_LOG_MAX_LEVEL is below 2.
- Parameters:
-
| #define pj_perror_wrapper_3 |
( |
arg |
|
) |
pj_perror_3 arg |
Internal function to write log with verbosity 3. Will evaluate to empty expression if PJ_LOG_MAX_LEVEL is below 3.
- Parameters:
-
| #define pj_perror_wrapper_4 |
( |
arg |
|
) |
pj_perror_4 arg |
Internal function to write log with verbosity 4. Will evaluate to empty expression if PJ_LOG_MAX_LEVEL is below 4.
- Parameters:
-
| #define pj_perror_wrapper_5 |
( |
arg |
|
) |
|
Internal function to write log with verbosity 5. Will evaluate to empty expression if PJ_LOG_MAX_LEVEL is below 5.
- Parameters:
-
| #define pj_perror_wrapper_6 |
( |
arg |
|
) |
|
Internal function to write log with verbosity 6. Will evaluate to empty expression if PJ_LOG_MAX_LEVEL is below 6.
- Parameters:
-
Function Documentation
| void pj_perror_1 |
( |
const char * |
sender, |
|
|
pj_status_t |
status, |
|
|
const char * |
title_fmt, |
|
|
|
... | |
|
) |
| | |
| void pj_perror_2 |
( |
const char * |
sender, |
|
|
pj_status_t |
status, |
|
|
const char * |
title_fmt, |
|
|
|
... | |
|
) |
| | |
| void pj_perror_3 |
( |
const char * |
sender, |
|
|
pj_status_t |
status, |
|
|
const char * |
title_fmt, |
|
|
|
... | |
|
) |
| | |
| void pj_perror_4 |
( |
const char * |
sender, |
|
|
pj_status_t |
status, |
|
|
const char * |
title_fmt, |
|
|
|
... | |
|
) |
| | |
PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.
|
|