File: tmpllog.h

package info (click to toggle)
libhtml-template-pro-perl 0.9524-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,512 kB
  • sloc: ansic: 1,841; perl: 1,474; yacc: 404; pascal: 118; makefile: 6
file content (31 lines) | stat: -rw-r--r-- 941 bytes parent folder | download | duplicates (5)
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
26
27
28
29
30
31
/* -*- c -*- 
 * File: log.h
 * Author: Igor Vlasenko <vlasenko@imath.kiev.ua>
 * Created: Thu Sep  1 17:17:37 2005
 *
 * $Id$
 */

/* based on FFmpeg av_log API */

#include "pabidecl.h"
#include "pmiscdef.h"
#include <stdarg.h>

#define TMPL_LOG_QUIET -1
#define TMPL_LOG_ERROR 0
#define TMPL_LOG_INFO 1
#define TMPL_LOG_DEBUG 2
#define TMPL_LOG_DEBUG2 3

extern TMPLPRO_LOCAL void tmpl_log(int level, const char *fmt, ...) FORMAT_PRINTF(2,3);

extern TMPLPRO_LOCAL void tmpl_vlog(int level, const char *fmt, va_list);
extern TMPLPRO_LOCAL  int tmpl_log_get_level(void);
extern TMPLPRO_LOCAL void tmpl_log_set_level(int);
extern TMPLPRO_LOCAL void tmpl_log_set_callback(void (*)(int, const char*, va_list));

extern TMPLPRO_LOCAL FILE* tmpl_log_stream;

extern TMPLPRO_LOCAL void tmpl_log_default_callback(int level, const char* fmt, va_list vl);
extern TMPLPRO_LOCAL void tmpl_log_stream_callback(int level, const char* fmt, va_list vl);