Ignore:
Timestamp:
Oct 25, 2009 8:46:40 AM (15 years ago)
Author:
bennylp
Message:

Ticket #981: new pj_perror() utility API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/errno.h

    r2506 r2965  
    111111PJ_DECL(pj_str_t) pj_strerror( pj_status_t statcode,  
    112112                               char *buf, pj_size_t bufsize); 
     113 
     114/** 
     115 * Print the error message pertaining to the specified error code to 
     116 * the log. 
     117 * 
     118 * @param log_level The log will be printed at this log level. 
     119 * @param sender    The log sender string. 
     120 * @param status    The error code which error message will be printed. 
     121 * @param title     String to be printed before the error message. Note 
     122 *                  that a colon will be added automatically between 
     123 *                  this string and the error message. 
     124 * @param options   Options, currently must be zero. 
     125 */ 
     126#if PJ_LOG_MAX_LEVEL >= 1 
     127PJ_DECL(void) pj_perror(int log_level, const char *sender,  
     128                        pj_status_t status, const char *title, 
     129                        int options); 
     130#else 
     131#   define pj_perror(level, sender, status, title, options) 
     132#endif  /* #if PJ_LOG_MAX_LEVEL >= 1 */ 
     133 
    113134 
    114135/** 
Note: See TracChangeset for help on using the changeset viewer.