summaryrefslogtreecommitdiff
path: root/src/egl/main/egllog.h
blob: 83c8bb72a6e5580b96c91cb99565da5e55361f29 (plain)
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
#ifndef EGLLOG_INCLUDED
#define EGLLOG_INCLUDED

#include "egltypedefs.h"

#define _EGL_FATAL   0   /* unrecoverable error */
#define _EGL_WARNING 1   /* recoverable error/problem */
#define _EGL_INFO    2   /* just useful info */
#define _EGL_DEBUG   3   /* useful info for debugging */


typedef void (*_EGLLogProc)(EGLint level, const char *msg);


extern void
_eglSetLogProc(_EGLLogProc logger);


extern void
_eglSetLogLevel(EGLint level);


extern void
_eglLog(EGLint level, const char *fmtStr, ...);


#endif /* EGLLOG_INCLUDED */