You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rtpengine/daemon/log.h

49 lines
709 B

#ifndef __LOG_H__
#define __LOG_H__
#include "str.h"
#include "loglib.h"
struct call;
struct stream_fd;
struct ice_agent;
struct log_info {
union {
struct call *call;
struct stream_fd *stream_fd;
const str *str;
const char *cstr;
struct ice_agent *ice_agent;
void *ptr;
} u;
enum {
LOG_INFO_NONE = 0,
LOG_INFO_CALL,
LOG_INFO_STREAM_FD,
LOG_INFO_STR,
LOG_INFO_C_STRING,
LOG_INFO_ICE_AGENT,
} e;
};
extern int _log_facility_cdr;
extern int _log_facility_rtcp;
extern struct log_info __thread log_info;
void cdrlog(const char* cdrbuffer);
void rtcplog(const char* cdrbuffer);
void __ilog(int prio, const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
#endif