src/platform/python/sio.h (view raw)
1/* Copyright (c) 2013-2017 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#ifdef M_CORE_GBA
7
8#include <mgba/gba/interface.h>
9
10struct GBASIOPythonDriver {
11 struct GBASIODriver d;
12 void* pyobj;
13};
14
15struct GBASIODriver* GBASIOPythonDriverCreate(void* pyobj);
16
17PYEXPORT bool _pyGBASIOPythonDriverInit(void* driver);
18PYEXPORT void _pyGBASIOPythonDriverDeinit(void* driver);
19PYEXPORT bool _pyGBASIOPythonDriverLoad(void* driver);
20PYEXPORT bool _pyGBASIOPythonDriverUnload(void* driver);
21PYEXPORT uint16_t _pyGBASIOPythonDriverWriteRegister(void* driver, uint32_t address, uint16_t value);
22
23#endif