glx: Fix error message when no driverName is available
[mesa.git] / src / glx / glx_error.h
index 6ba2f854dbfe79bb2b84837c39c1104d810863f6..6a2f32aa56e510bbef756922d38ffba336a095b8 100644 (file)
  promote the sale, use or other dealings in this Software without
  prior written authorization.
 */
+
+#ifndef GLX_ERROR_H
+#define GLX_ERROR_H
+
 #include <stdbool.h>
+#include <stdint.h>
 #include <X11/Xlib.h>
+#include <xcb/xcb.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void __glXSendError(Display * dpy, int_fast8_t errorCode,
+                   uint_fast32_t resourceID, uint_fast16_t minorCode,
+                   bool coreX11error);
+
+_X_HIDDEN void __glXSendErrorForXcb(Display * dpy,
+                                   const xcb_generic_error_t *err);
+
+#ifdef __cplusplus
+}
+#endif
 
-void __glXSendError(Display * dpy, int errorCode, unsigned long resourceID,
-                    unsigned long minorCode, bool coreX11error);
+#endif