summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/errors.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-04-14 10:24:22 -0600
committerBrian Paul <[email protected]>2015-04-15 16:30:49 -0600
commit2926bbfb280b2eb195cc031991c956da38d89508 (patch)
tree670f7450f6d5e08ad1f7054023dedc0edcb2689a /src/mesa/main/errors.h
parent11bfee4c3a9f285f4cd5467dac1af5f7f0dfa307 (diff)
mesa: add _mesa_log(), _mesa_get_log_file() functions
_mesa_log() simply writes log information to stderr or MESA_LOG_FILE. _mesa_get_log_file() returns the file handle to use for logging. This will be used for shader dumping/logging instead of always printing to stderr. Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/main/errors.h')
-rw-r--r--src/mesa/main/errors.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/errors.h b/src/mesa/main/errors.h
index 0c521c0d040..e6dc9b5f1b9 100644
--- a/src/mesa/main/errors.h
+++ b/src/mesa/main/errors.h
@@ -36,6 +36,7 @@
#define ERRORS_H
+#include <stdio.h>
#include "compiler.h"
#include "glheader.h"
#include "mtypes.h"
@@ -69,6 +70,12 @@ extern void
_mesa_debug( const struct gl_context *ctx, const char *fmtString, ... ) PRINTFLIKE(2, 3);
extern void
+_mesa_log(const char *fmtString, ...) PRINTFLIKE(1, 2);
+
+extern FILE *
+_mesa_get_log_file(void);
+
+extern void
_mesa_gl_debug(struct gl_context *ctx,
GLuint *id,
enum mesa_debug_source source,