include/mgba/core/cpu.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#ifndef M_CPU_H
7#define M_CPU_H
8
9#include <mgba-util/common.h>
10
11CXX_GUARD_START
12
13enum mCPUComponentType {
14 CPU_COMPONENT_DEBUGGER,
15 CPU_COMPONENT_CHEAT_DEVICE,
16 CPU_COMPONENT_MISC_1,
17 CPU_COMPONENT_MISC_2,
18 CPU_COMPONENT_MISC_3,
19 CPU_COMPONENT_MISC_4,
20 CPU_COMPONENT_MAX
21};
22
23struct mCPUComponent {
24 uint32_t id;
25 void (*init)(void* cpu, struct mCPUComponent* component);
26 void (*deinit)(struct mCPUComponent* component);
27};
28
29CXX_GUARD_END
30
31#endif