94 typedef void (*OrtpLogFunc)(OrtpLogLevel lev,
const char *fmt, va_list args);
99 VAR_DECLSPEC OrtpLogFunc ortp_logv_out;
101 extern unsigned int __ortp_log_mask;
103 #define ortp_log_level_enabled(level) (__ortp_log_mask & (level)) 105 #if !defined(WIN32) && !defined(_WIN32_WCE) 106 #define ortp_logv(level,fmt,args) \ 108 if (ortp_logv_out!=NULL && ortp_log_level_enabled(level)) \ 109 ortp_logv_out(level,fmt,args);\ 110 if ((level)==ORTP_FATAL) abort();\ 113 void ortp_logv(
int level,
const char *fmt, va_list args);
118 #ifdef ORTP_DEBUG_MODE 119 static inline void ortp_debug(
const char *fmt,...)
122 va_start (args, fmt);
123 ortp_logv(ORTP_DEBUG, fmt, args);
128 #define ortp_debug(...) 132 #ifdef ORTP_NOMESSAGE_MODE 134 #define ortp_log(...) 135 #define ortp_message(...) 136 #define ortp_warning(...) 140 static inline void ortp_log(OrtpLogLevel lev,
const char *fmt,...){
142 va_start (args, fmt);
143 ortp_logv(lev, fmt, args);
147 static inline void ortp_message(
const char *fmt,...)
150 va_start (args, fmt);
151 ortp_logv(ORTP_MESSAGE, fmt, args);
155 static inline void ortp_warning(
const char *fmt,...)
158 va_start (args, fmt);
159 ortp_logv(ORTP_WARNING, fmt, args);
165 static inline void ortp_error(
const char *fmt,...)
168 va_start (args, fmt);
169 ortp_logv(ORTP_ERROR, fmt, args);
173 static inline void ortp_fatal(
const char *fmt,...)
176 va_start (args, fmt);
177 ortp_logv(ORTP_FATAL, fmt, args);
188 void ortp_global_stats_reset(
void);
void ortp_set_log_file(FILE *file)
Definition: ortp.c:139
void ortp_global_stats_display(void)
Definition: ortp.c:273
bool_t ortp_min_version_required(int major, int minor, int micro)
Definition: ortp.c:376
void rtp_stats_display(const rtp_stats_t *stats, const char *header)
Definition: ortp.c:284
void ortp_exit(void)
Definition: ortp.c:116
void ortp_init(void)
Definition: ortp.c:69
void ortp_scheduler_init(void)
Definition: ortp.c:91
void ortp_set_log_handler(OrtpLogFunc func)
Definition: ortp.c:152
Sending and receiving multiple streams together with only one thread.
void ortp_set_log_level_mask(int levelmask)
Definition: ortp.c:163