X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fegl%2Fmain%2Fegllog.h;h=2a06a34684a4d4ca74cb10ff93c23749e306b5d2;hb=30ecd869471722db6cb693aaaa75120a4dfe7837;hp=10a418447bdc24bc57663a619108c558272da5c2;hpb=c3b2230b71cb3a00a7f4c0987197d397bada650b;p=mesa.git diff --git a/src/egl/main/egllog.h b/src/egl/main/egllog.h index 10a418447bd..2a06a34684a 100644 --- a/src/egl/main/egllog.h +++ b/src/egl/main/egllog.h @@ -1,6 +1,6 @@ /************************************************************************** * - * Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas. + * Copyright 2008 VMware, Inc. * Copyright 2009-2010 Chia-I Wu * All Rights Reserved. * @@ -34,25 +34,22 @@ #include "egltypedefs.h" +#ifdef __cplusplus +extern "C" { +#endif + #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 */ -typedef void (*_EGLLogProc)(EGLint level, const char *msg); - - -PUBLIC void -_eglSetLogProc(_EGLLogProc logger); - - -PUBLIC void -_eglSetLogLevel(EGLint level); - - -PUBLIC void +extern void _eglLog(EGLint level, const char *fmtStr, ...); +#ifdef __cplusplus +} +#endif + #endif /* EGLLOG_INCLUDED */