Added missing launcher
[mupen64plus-pandora.git] / source / front-end / src / core_interface.h
CommitLineData
5288f542 1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2 * Mupen64plus-ui-console - core_interface.h *
3 * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ *
4 * Copyright (C) 2009 Richard Goedeken *
5 * *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program; if not, write to the *
18 * Free Software Foundation, Inc., *
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
20 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
21
22#if !defined(CORE_INTERFACE_H)
23#define CORE_INTERFACE_H
24
25#include "m64p_types.h"
26#include "m64p_common.h"
27#include "m64p_frontend.h"
28#include "m64p_config.h"
29#include "m64p_debugger.h"
30
31/* function declarations */
32extern m64p_error AttachCoreLib(const char *CoreLibFilepath);
33extern m64p_error DetachCoreLib(void);
34
35/* global variables from core_interface.c */
36extern int g_CoreCapabilities;
37extern int g_CoreAPIVersion;
38
39/* declarations of Core library handle and pointers to common functions */
40extern m64p_dynlib_handle CoreHandle;
41extern ptr_CoreErrorMessage CoreErrorMessage;
42
43/* declarations of pointers to Core front-end functions */
44extern ptr_CoreStartup CoreStartup;
45extern ptr_CoreShutdown CoreShutdown;
46extern ptr_CoreAttachPlugin CoreAttachPlugin;
47extern ptr_CoreDetachPlugin CoreDetachPlugin;
48extern ptr_CoreDoCommand CoreDoCommand;
49extern ptr_CoreOverrideVidExt CoreOverrideVidExt;
50extern ptr_CoreAddCheat CoreAddCheat;
51extern ptr_CoreCheatEnabled CoreCheatEnabled;
52
53/* declarations of pointers to Core config functions */
54extern ptr_ConfigListSections ConfigListSections;
55extern ptr_ConfigOpenSection ConfigOpenSection;
56extern ptr_ConfigDeleteSection ConfigDeleteSection;
57extern ptr_ConfigSaveSection ConfigSaveSection;
58extern ptr_ConfigListParameters ConfigListParameters;
59extern ptr_ConfigSaveFile ConfigSaveFile;
60extern ptr_ConfigSetParameter ConfigSetParameter;
61extern ptr_ConfigGetParameter ConfigGetParameter;
62extern ptr_ConfigGetParameterType ConfigGetParameterType;
63extern ptr_ConfigGetParameterHelp ConfigGetParameterHelp;
64extern ptr_ConfigSetDefaultInt ConfigSetDefaultInt;
65extern ptr_ConfigSetDefaultFloat ConfigSetDefaultFloat;
66extern ptr_ConfigSetDefaultBool ConfigSetDefaultBool;
67extern ptr_ConfigSetDefaultString ConfigSetDefaultString;
68extern ptr_ConfigGetParamInt ConfigGetParamInt;
69extern ptr_ConfigGetParamFloat ConfigGetParamFloat;
70extern ptr_ConfigGetParamBool ConfigGetParamBool;
71extern ptr_ConfigGetParamString ConfigGetParamString;
72
73extern ptr_ConfigGetSharedDataFilepath ConfigGetSharedDataFilepath;
74extern ptr_ConfigGetUserConfigPath ConfigGetUserConfigPath;
75extern ptr_ConfigGetUserDataPath ConfigGetUserDataPath;
76extern ptr_ConfigGetUserCachePath ConfigGetUserCachePath;
77
78/* declarations of pointers to Core debugger functions */
79extern ptr_DebugSetCallbacks DebugSetCallbacks;
80extern ptr_DebugSetCoreCompare DebugSetCoreCompare;
81extern ptr_DebugSetRunState DebugSetRunState;
82extern ptr_DebugGetState DebugGetState;
83extern ptr_DebugStep DebugStep;
84extern ptr_DebugDecodeOp DebugDecodeOp;
85extern ptr_DebugMemGetRecompInfo DebugMemGetRecompInfo;
86extern ptr_DebugMemGetMemInfo DebugMemGetMemInfo;
87extern ptr_DebugMemGetPointer DebugMemGetPointer;
88
89extern ptr_DebugMemRead64 DebugMemRead64;
90extern ptr_DebugMemRead32 DebugMemRead32;
91extern ptr_DebugMemRead16 DebugMemRead16;
92extern ptr_DebugMemRead8 DebugMemRead8;
93
94extern ptr_DebugMemWrite64 DebugMemWrite64;
95extern ptr_DebugMemWrite32 DebugMemWrite32;
96extern ptr_DebugMemWrite16 DebugMemWrite16;
97extern ptr_DebugMemWrite8 DebugMemWrite8;
98
99extern ptr_DebugGetCPUDataPtr DebugGetCPUDataPtr;
100extern ptr_DebugBreakpointLookup DebugBreakpointLookup;
101extern ptr_DebugBreakpointCommand DebugBreakpointCommand;
102
103#endif /* #define CORE_INTERFACE_H */
104