all repos — mgba @ 38c8e4c4e1d04ef3a6d3439a9c0c55499dd9e701

mGBA Game Boy Advance Emulator

src/platform/python/log.h (view raw)

 1/* Copyright (c) 2013-2016 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#include <mgba/core/log.h>
 7
 8#include "pycommon.h"
 9
10struct mLoggerPy {
11    struct mLogger d;
12    void* pyobj;
13};
14
15struct mLogger* mLoggerPythonCreate(void* pyobj);
16
17PYEXPORT void _pyLog(void* logger, int category, enum mLogLevel level, const char* message);