1848b8605Smrg/************************************************************************** 2848b8605Smrg * 3848b8605Smrg * Copyright 2008 VMware, Inc. 4848b8605Smrg * Copyright 2009-2010 Chia-I Wu <olvaffe@gmail.com> 5848b8605Smrg * All Rights Reserved. 6848b8605Smrg * 7848b8605Smrg * Permission is hereby granted, free of charge, to any person obtaining a 8848b8605Smrg * copy of this software and associated documentation files (the 9848b8605Smrg * "Software"), to deal in the Software without restriction, including 10848b8605Smrg * without limitation the rights to use, copy, modify, merge, publish, 11848b8605Smrg * distribute, sub license, and/or sell copies of the Software, and to 12848b8605Smrg * permit persons to whom the Software is furnished to do so, subject to 13848b8605Smrg * the following conditions: 14848b8605Smrg * 15848b8605Smrg * The above copyright notice and this permission notice (including the 16848b8605Smrg * next paragraph) shall be included in all copies or substantial portions 17848b8605Smrg * of the Software. 18848b8605Smrg * 19848b8605Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 20848b8605Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 21848b8605Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 22848b8605Smrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 23848b8605Smrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 24848b8605Smrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 25848b8605Smrg * DEALINGS IN THE SOFTWARE. 26848b8605Smrg * 27848b8605Smrg **************************************************************************/ 28848b8605Smrg 29848b8605Smrg 30848b8605Smrg#ifndef EGLLOG_INCLUDED 31848b8605Smrg#define EGLLOG_INCLUDED 32848b8605Smrg 33848b8605Smrg 34848b8605Smrg#include "egltypedefs.h" 35848b8605Smrg 36848b8605Smrg 37b8e80941Smrg#ifdef __cplusplus 38b8e80941Smrgextern "C" { 39b8e80941Smrg#endif 40b8e80941Smrg 41848b8605Smrg#define _EGL_FATAL 0 /* unrecoverable error */ 42848b8605Smrg#define _EGL_WARNING 1 /* recoverable error/problem */ 43848b8605Smrg#define _EGL_INFO 2 /* just useful info */ 44848b8605Smrg#define _EGL_DEBUG 3 /* useful info for debugging */ 45848b8605Smrg 46848b8605Smrg 47b8e80941Smrgextern void 48848b8605Smrg_eglLog(EGLint level, const char *fmtStr, ...); 49848b8605Smrg 50848b8605Smrg 51b8e80941Smrg#ifdef __cplusplus 52b8e80941Smrg} 53b8e80941Smrg#endif 54b8e80941Smrg 55848b8605Smrg#endif /* EGLLOG_INCLUDED */ 56