agb/mgba-test-runner/c/include/mgba/core/cpu.h
2021-04-19 22:47:43 +01:00

32 lines
695 B
C

/* Copyright (c) 2013-2016 Jeffrey Pfau
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef M_CPU_H
#define M_CPU_H
#include <mgba-util/common.h>
CXX_GUARD_START
enum mCPUComponentType {
CPU_COMPONENT_DEBUGGER,
CPU_COMPONENT_CHEAT_DEVICE,
CPU_COMPONENT_MISC_1,
CPU_COMPONENT_MISC_2,
CPU_COMPONENT_MISC_3,
CPU_COMPONENT_MISC_4,
CPU_COMPONENT_MAX
};
struct mCPUComponent {
uint32_t id;
void (*init)(void* cpu, struct mCPUComponent* component);
void (*deinit)(struct mCPUComponent* component);
};
CXX_GUARD_END
#endif