summaryrefslogtreecommitdiff
path: root/src/egl/main/egllog.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-11-23 01:37:30 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-11-23 01:37:30 +0000
commitf049ca4e33e0e5d06223a1c05815bc564b4bf06e (patch)
tree18fde934dd1fd60a2decf47ce2629021615c20f8 /src/egl/main/egllog.h
parent9bcc9e91745a6125f31d127410ac38e99660da67 (diff)
New _eglLog() function to replace fprintf/printf calls for debug/info.
Diffstat (limited to 'src/egl/main/egllog.h')
-rw-r--r--src/egl/main/egllog.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/egl/main/egllog.h b/src/egl/main/egllog.h
new file mode 100644
index 0000000000..2fa352f155
--- /dev/null
+++ b/src/egl/main/egllog.h
@@ -0,0 +1,16 @@
+#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 */
+
+
+extern void
+_eglLog(EGLint level, const char *fmtStr, ...);
+
+
+#endif /* EGLLOG_INCLUDED */