X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=mupen64plus-pandora.git;a=blobdiff_plain;f=source%2Ffront-end%2Fsrc%2Fcore_interface.h;fp=source%2Ffront-end%2Fsrc%2Fcore_interface.h;h=295daae697edcf536e2b19253cdd372762ea5872;hp=0000000000000000000000000000000000000000;hb=5288f5429f38c99c73856e285d35e7d0c4c779d0;hpb=48d77f736bea02afeb362cff05c81375752b3015 diff --git a/source/front-end/src/core_interface.h b/source/front-end/src/core_interface.h new file mode 100644 index 0000000..295daae --- /dev/null +++ b/source/front-end/src/core_interface.h @@ -0,0 +1,104 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Mupen64plus-ui-console - core_interface.h * + * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * + * Copyright (C) 2009 Richard Goedeken * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +#if !defined(CORE_INTERFACE_H) +#define CORE_INTERFACE_H + +#include "m64p_types.h" +#include "m64p_common.h" +#include "m64p_frontend.h" +#include "m64p_config.h" +#include "m64p_debugger.h" + +/* function declarations */ +extern m64p_error AttachCoreLib(const char *CoreLibFilepath); +extern m64p_error DetachCoreLib(void); + +/* global variables from core_interface.c */ +extern int g_CoreCapabilities; +extern int g_CoreAPIVersion; + +/* declarations of Core library handle and pointers to common functions */ +extern m64p_dynlib_handle CoreHandle; +extern ptr_CoreErrorMessage CoreErrorMessage; + +/* declarations of pointers to Core front-end functions */ +extern ptr_CoreStartup CoreStartup; +extern ptr_CoreShutdown CoreShutdown; +extern ptr_CoreAttachPlugin CoreAttachPlugin; +extern ptr_CoreDetachPlugin CoreDetachPlugin; +extern ptr_CoreDoCommand CoreDoCommand; +extern ptr_CoreOverrideVidExt CoreOverrideVidExt; +extern ptr_CoreAddCheat CoreAddCheat; +extern ptr_CoreCheatEnabled CoreCheatEnabled; + +/* declarations of pointers to Core config functions */ +extern ptr_ConfigListSections ConfigListSections; +extern ptr_ConfigOpenSection ConfigOpenSection; +extern ptr_ConfigDeleteSection ConfigDeleteSection; +extern ptr_ConfigSaveSection ConfigSaveSection; +extern ptr_ConfigListParameters ConfigListParameters; +extern ptr_ConfigSaveFile ConfigSaveFile; +extern ptr_ConfigSetParameter ConfigSetParameter; +extern ptr_ConfigGetParameter ConfigGetParameter; +extern ptr_ConfigGetParameterType ConfigGetParameterType; +extern ptr_ConfigGetParameterHelp ConfigGetParameterHelp; +extern ptr_ConfigSetDefaultInt ConfigSetDefaultInt; +extern ptr_ConfigSetDefaultFloat ConfigSetDefaultFloat; +extern ptr_ConfigSetDefaultBool ConfigSetDefaultBool; +extern ptr_ConfigSetDefaultString ConfigSetDefaultString; +extern ptr_ConfigGetParamInt ConfigGetParamInt; +extern ptr_ConfigGetParamFloat ConfigGetParamFloat; +extern ptr_ConfigGetParamBool ConfigGetParamBool; +extern ptr_ConfigGetParamString ConfigGetParamString; + +extern ptr_ConfigGetSharedDataFilepath ConfigGetSharedDataFilepath; +extern ptr_ConfigGetUserConfigPath ConfigGetUserConfigPath; +extern ptr_ConfigGetUserDataPath ConfigGetUserDataPath; +extern ptr_ConfigGetUserCachePath ConfigGetUserCachePath; + +/* declarations of pointers to Core debugger functions */ +extern ptr_DebugSetCallbacks DebugSetCallbacks; +extern ptr_DebugSetCoreCompare DebugSetCoreCompare; +extern ptr_DebugSetRunState DebugSetRunState; +extern ptr_DebugGetState DebugGetState; +extern ptr_DebugStep DebugStep; +extern ptr_DebugDecodeOp DebugDecodeOp; +extern ptr_DebugMemGetRecompInfo DebugMemGetRecompInfo; +extern ptr_DebugMemGetMemInfo DebugMemGetMemInfo; +extern ptr_DebugMemGetPointer DebugMemGetPointer; + +extern ptr_DebugMemRead64 DebugMemRead64; +extern ptr_DebugMemRead32 DebugMemRead32; +extern ptr_DebugMemRead16 DebugMemRead16; +extern ptr_DebugMemRead8 DebugMemRead8; + +extern ptr_DebugMemWrite64 DebugMemWrite64; +extern ptr_DebugMemWrite32 DebugMemWrite32; +extern ptr_DebugMemWrite16 DebugMemWrite16; +extern ptr_DebugMemWrite8 DebugMemWrite8; + +extern ptr_DebugGetCPUDataPtr DebugGetCPUDataPtr; +extern ptr_DebugBreakpointLookup DebugBreakpointLookup; +extern ptr_DebugBreakpointCommand DebugBreakpointCommand; + +#endif /* #define CORE_INTERFACE_H */ +