a-oRTP  5.2.0
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
ortp.h File Reference

General purpose library functions. More...

#include "ortp/rtpsession.h"

Go to the source code of this file.

Data Structures

struct  _OList
 

Macros

#define ortp_log_level_enabled(level)   (__ortp_log_mask & (level))
 
#define ortp_debug(...)
 
#define o_list_next(elem)   ((elem)->next)
 
#define o_list_prev(elem)   ((elem)->prev)
 

Typedefs

typedef void(* OrtpLogFunc) (OrtpLogLevel lev, const char *fmt, va_list args)
 
typedef struct _OList OList
 

Enumerations

enum  OrtpLogLevel {
  ORTP_DEBUG = 1 , ORTP_MESSAGE = 1 << 1 , ORTP_WARNING = 1 << 2 , ORTP_ERROR = 1 << 3 ,
  ORTP_FATAL = 1 << 4 , ORTP_LOGLEV_END = 1 << 5
}
 

Functions

bool_t ortp_min_version_required (int major, int minor, int micro)
 
void ortp_init (void)
 
void ortp_scheduler_init (void)
 
void ortp_exit (void)
 
uint32_t ortp_random (void)
 
void ortp_set_log_file (FILE *file)
 
void ortp_set_log_handler (OrtpLogFunc func)
 
void ortp_logv (int level, const char *fmt, va_list args)
 
void ortp_set_log_level_mask (int levelmask)
 
void ortp_global_stats_reset (void)
 
rtp_stats_tortp_get_global_stats (void)
 
void ortp_global_stats_display (void)
 
void rtp_stats_display (const rtp_stats_t *stats, const char *header)
 
void rtp_stats_reset (rtp_stats_t *stats)
 
OListo_list_append (OList *elem, void *data)
 
OListo_list_insert (OList *before_elem, void *data)
 
OListo_list_remove (OList *list, void *data)
 
OListo_list_free (OList *elem)
 

Variables

VAR_DECLSPEC OrtpLogFunc ortp_logv_out
 
unsigned int __ortp_log_mask
 
rtp_stats_t ortp_global_stats
 

Detailed Description

General purpose library functions.