summaryrefslogtreecommitdiffstats
path: root/src/glx/dri_common.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-01-23 11:14:16 -0800
committerEric Anholt <[email protected]>2014-01-27 09:37:29 -0800
commit867d7c0e108a4e6511305f82b18ea6f606a18427 (patch)
treed6903aa5808d845181728ca7349d2faab98826a3 /src/glx/dri_common.h
parent4a8da40fc089d465b72ecee89e24cd92e6714669 (diff)
dri: Reuse dri_message to implement our other message handlers.
Reviewed-by: Keith Packard <[email protected]> Reviewed-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/glx/dri_common.h')
-rw-r--r--src/glx/dri_common.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/glx/dri_common.h b/src/glx/dri_common.h
index 425d89f9224..6234fd812bf 100644
--- a/src/glx/dri_common.h
+++ b/src/glx/dri_common.h
@@ -38,6 +38,7 @@
#include <GL/internal/dri_interface.h>
#include <stdbool.h>
+#include "loader.h"
#if (__GNUC__ >= 3)
#define PRINTFLIKE(f, a) __attribute__ ((format(__printf__, f, a)))
@@ -69,9 +70,9 @@ extern const __DRIsystemTimeExtension systemTimeExtension;
extern void dri_message(int level, const char *f, ...) PRINTFLIKE(2, 3);
-extern void InfoMessageF(const char *f, ...);
-extern void ErrorMessageF(const char *f, ...);
-extern void CriticalErrorMessageF(const char *f, ...);
+#define InfoMessageF(...) dri_message(_LOADER_INFO, __VA_ARGS__)
+#define ErrorMessageF(...) dri_message(_LOADER_WARNING, __VA_ARGS__)
+#define CriticalErrorMessageF(...) dri_message(_LOADER_FATAL, __VA_ARGS__)
extern void *driOpenDriver(const char *driverName);