File: log.h

package info (click to toggle)
rtpengine 13.5.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,676 kB
  • sloc: ansic: 86,775; perl: 59,422; python: 3,193; sh: 1,037; makefile: 687; asm: 211
file content (25 lines) | stat: -rw-r--r-- 571 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef __LOG_H__
#define __LOG_H__

#include "loglib.h"
#define __ilog(prio, fmt, ...) fprintf(stderr, fmt "\n", ##__VA_ARGS__)
#define __C_DBG(x...) ilog(LOG_DEBUG, x)

INLINE void rtcplog(const char *x) {
}
INLINE void cdrlog(const char *x) {
}
extern int _log_facility_rtcp;
extern int _log_facility_cdr;
extern int _log_facility_dtmf;
extern GString *dtmf_logs;

INLINE void dtmflog(GString *s) {
	if (!dtmf_logs)
		dtmf_logs = g_string_new("");
	if (dtmf_logs->len > 0)
		g_string_append(dtmf_logs, "\n");
	g_string_append_len(dtmf_logs, s->str, s->len);
}

#endif