summaryrefslogtreecommitdiffstats
path: root/src/egl/main/egllog.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2009-09-29 16:11:06 +0800
committerBrian Paul <[email protected]>2009-10-13 12:00:37 -0600
commitf1c5cab5525dfcb8edffa275e7c8c3e753c7536f (patch)
tree80facf59a8591e5d5d1cc3adf44a008365b23510 /src/egl/main/egllog.h
parent310c76812e5a2013dad36fc9d1686f57e7b1e626 (diff)
egl: Improve logging facility.
Add _eglSetLogger and _eglSetLogLevel to allow drivers to change the message logger or report level. Signed-off-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/egl/main/egllog.h')
-rw-r--r--src/egl/main/egllog.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/egl/main/egllog.h b/src/egl/main/egllog.h
index 2fa352f155d..83c8bb72a6e 100644
--- a/src/egl/main/egllog.h
+++ b/src/egl/main/egllog.h
@@ -9,6 +9,17 @@
#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, ...);