1 /******************************************************************************
2 * Arachnoid Graphics Plugin for Mupen64Plus
3 * http://bitbucket.org/wahrhaft/mupen64plus-video-arachnoid/
5 * Copyright (C) 2009 Jon Ring
6 * Copyright (C) 2007 Kristofer Karlsson, Rickard Niklasson
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 *****************************************************************************/
27 #include "m64p_types.h"
29 //*****************************************************************************
30 //*****************************************************************************
32 //! Class for sending log messages to M64P
33 //*****************************************************************************
41 static Logger& getSingleton()
43 static Logger pInstance;
47 //Initialize / Dispose
48 bool initialize(void (*debugCallback)(void*, int, const char*), void *context);
52 void printMsg(const char* msg, m64p_msg_level lml=M64MSG_VERBOSE);
56 Logger() { m_debugCallback = NULL; m_debugCallContext = NULL; }
59 void (*m_debugCallback)(void *, int, const char *);
60 void *m_debugCallContext;