mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 12:35:27 +00:00
More plugin specs changes, please check that it compiles on windows as well.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1821 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
7f7c55d7a1
commit
6053f26a4c
@ -11,6 +11,7 @@
|
|||||||
#define EXPORT __declspec(dllexport)
|
#define EXPORT __declspec(dllexport)
|
||||||
#define CALL __cdecl
|
#define CALL __cdecl
|
||||||
#else
|
#else
|
||||||
|
#define __cdecl
|
||||||
#define EXPORT __attribute__ ((visibility("default")))
|
#define EXPORT __attribute__ ((visibility("default")))
|
||||||
#define CALL
|
#define CALL
|
||||||
#endif
|
#endif
|
||||||
@ -26,7 +27,6 @@
|
|||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define __cdecl
|
|
||||||
|
|
||||||
// simulate something that looks like win32
|
// simulate something that looks like win32
|
||||||
// long term, kill these
|
// long term, kill these
|
||||||
@ -67,6 +67,35 @@ typedef struct
|
|||||||
void *messageLogger;
|
void *messageLogger;
|
||||||
} PLUGIN_GLOBALS;
|
} PLUGIN_GLOBALS;
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
// GLOBAL I N T E R F A C E ///////////////////////////////////////////////////
|
||||||
|
// ____________________________________________________________________________
|
||||||
|
// Function: GetDllInfo
|
||||||
|
// Purpose: This function allows the emulator to gather information
|
||||||
|
// about the DLL by filling in the PluginInfo structure.
|
||||||
|
// input: A pointer to a PLUGIN_INFO structure that needs to be
|
||||||
|
// filled by the function. (see def above)
|
||||||
|
// output: none
|
||||||
|
//
|
||||||
|
EXPORT void CALL GetDllInfo(PLUGIN_INFO* _pPluginInfo);
|
||||||
|
|
||||||
|
// ___________________________________________________________________________
|
||||||
|
// Function: DllConfig
|
||||||
|
// Purpose: This function is optional function that is provided
|
||||||
|
// to allow the user to configure the DLL
|
||||||
|
// input: A handle to the window that calls this function
|
||||||
|
// output: none
|
||||||
|
//
|
||||||
|
EXPORT void CALL DllConfig(void *_hParent);
|
||||||
|
|
||||||
|
// ___________________________________________________________________________
|
||||||
|
// Function: DllDebugger
|
||||||
|
// Purpose: Open the debugger
|
||||||
|
// input: a handle to the window that calls this function
|
||||||
|
// output: none
|
||||||
|
//
|
||||||
|
EXPORT void CALL DllDebugger(void *_hParent, bool Show);
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -30,41 +30,6 @@ typedef struct
|
|||||||
TAudioGetStreaming pGetAudioStreaming;
|
TAudioGetStreaming pGetAudioStreaming;
|
||||||
} DSPInitialize;
|
} DSPInitialize;
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
|
||||||
// Function: GetDllInfo
|
|
||||||
// Purpose: This function allows the emulator to gather information
|
|
||||||
// about the DLL by filling in the PluginInfo structure.
|
|
||||||
// input: a pointer to a PLUGIN_INFO structure that needs to be
|
|
||||||
// filled by the function. (see def above)
|
|
||||||
// output: none
|
|
||||||
//
|
|
||||||
EXPORT void CALL GetDllInfo(PLUGIN_INFO* _pPluginInfo);
|
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
|
||||||
// Function: DllConfig
|
|
||||||
// Purpose: This function is optional function that is provided
|
|
||||||
// to allow the user to configure the DLL
|
|
||||||
// input: a handle to the window that calls this function
|
|
||||||
// output: none
|
|
||||||
//
|
|
||||||
EXPORT void CALL DllConfig(HWND _hParent);
|
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
|
||||||
// Function: DllDebugger
|
|
||||||
// Purpose: Open the debugger
|
|
||||||
// input: a handle to the window that calls this function
|
|
||||||
// output: none
|
|
||||||
//
|
|
||||||
EXPORT void CALL DllDebugger(HWND _hParent, bool Show);
|
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
|
||||||
// Function: DSP_Initialize
|
|
||||||
// Purpose:
|
|
||||||
// input: DSPInitialize
|
|
||||||
// output: none
|
|
||||||
//
|
|
||||||
EXPORT void CALL DSP_Initialize(DSPInitialize _dspInitialize);
|
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
// __________________________________________________________________________________________________
|
||||||
// Function: DSP_Shutdown
|
// Function: DSP_Shutdown
|
||||||
// Purpose: This function is called when the emulator is shutting down
|
// Purpose: This function is called when the emulator is shutting down
|
||||||
|
@ -53,35 +53,7 @@ typedef struct
|
|||||||
} SPADStatus;
|
} SPADStatus;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// I N T E R F A C E ////////////////////////////////////////////////////////////////////////////////
|
// I N T E R F A C E ///////////////////////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
|
||||||
// Function: GetDllInfo
|
|
||||||
// Purpose: This function allows the emulator to gather information
|
|
||||||
// about the DLL by filling in the PluginInfo structure.
|
|
||||||
// input: A pointer to a PLUGIN_INFO structure that needs to be
|
|
||||||
// filled by the function. (see def above)
|
|
||||||
// output: none
|
|
||||||
//
|
|
||||||
EXPORT void CALL GetDllInfo(PLUGIN_INFO* _pPluginInfo);
|
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
|
||||||
// Function: DllConfig
|
|
||||||
// Purpose: This function is optional function that is provided
|
|
||||||
// to allow the user to configure the DLL
|
|
||||||
// input: A handle to the window that calls this function
|
|
||||||
// output: none
|
|
||||||
//
|
|
||||||
EXPORT void CALL DllConfig(HWND _hParent);
|
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
|
||||||
// Function: DllDebugger
|
|
||||||
// Purpose: Open the debugger
|
|
||||||
// input: a handle to the window that calls this function
|
|
||||||
// output: none
|
|
||||||
//
|
|
||||||
EXPORT void CALL DllDebugger(HWND _hParent, bool Show);
|
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
// __________________________________________________________________________________________________
|
||||||
// Function:
|
// Function:
|
||||||
|
@ -78,38 +78,6 @@ typedef struct
|
|||||||
// I N T E R F A C E ////////////////////////////////////////////////////////////////////////////////
|
// I N T E R F A C E ////////////////////////////////////////////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
|
||||||
// Function: GetDllInfo
|
|
||||||
// Purpose: This function allows the emulator to gather information
|
|
||||||
// about the DLL by filling in the PluginInfo structure.
|
|
||||||
// input: a pointer to a PLUGIN_INFO structure that needs to be
|
|
||||||
// filled by the function. (see def above)
|
|
||||||
// output: none
|
|
||||||
//
|
|
||||||
//
|
|
||||||
#ifndef _WIN32
|
|
||||||
#define _CDECLCALL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
EXPORT void CALL GetDllInfo(PLUGIN_INFO* _pPluginInfo);
|
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
|
||||||
// Function: DllConfig
|
|
||||||
// Purpose: This function is optional function that is provided
|
|
||||||
// to allow the user to configure the DLL
|
|
||||||
// input: a handle to the window that calls this function
|
|
||||||
// output: none
|
|
||||||
//
|
|
||||||
EXPORT void CALL DllConfig(HWND _hParent);
|
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
|
||||||
// Function: DllDebugger
|
|
||||||
// Purpose: Open the debugger
|
|
||||||
// input: a handle to the window that calls this function
|
|
||||||
// output: none
|
|
||||||
//
|
|
||||||
EXPORT void CALL DllDebugger(HWND _hParent, bool Show);
|
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
// __________________________________________________________________________________________________
|
||||||
// Function: Video_Initialize
|
// Function: Video_Initialize
|
||||||
// Purpose:
|
// Purpose:
|
||||||
|
@ -46,33 +46,6 @@ typedef struct
|
|||||||
// I N T E R F A C E ////////////////////////////////////////////////////////////////////////////////
|
// I N T E R F A C E ////////////////////////////////////////////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
|
||||||
// Function: GetDllInfo
|
|
||||||
// Purpose: This function allows the emulator to gather information
|
|
||||||
// about the DLL by filling in the PluginInfo structure.
|
|
||||||
// input: a pointer to a PLUGIN_INFO structure that needs to be
|
|
||||||
// filled by the function. (see def above)
|
|
||||||
// output: none
|
|
||||||
//
|
|
||||||
EXPORT void CALL GetDllInfo(PLUGIN_INFO* _pPluginInfo);
|
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
|
||||||
// Function: DllConfig
|
|
||||||
// Purpose: This function is optional function that is provided
|
|
||||||
// to allow the user to configure the DLL
|
|
||||||
// input: a handle to the window that calls this function
|
|
||||||
// output: none
|
|
||||||
//
|
|
||||||
EXPORT void CALL DllConfig(HWND _hParent);
|
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
|
||||||
// Function: DllDebugger
|
|
||||||
// Purpose: Open the debugger
|
|
||||||
// input: a handle to the window that calls this function
|
|
||||||
// output: none
|
|
||||||
//
|
|
||||||
EXPORT void CALL DllDebugger(HWND _hParent, bool Show);
|
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
// __________________________________________________________________________________________________
|
||||||
// Function:
|
// Function:
|
||||||
// Purpose:
|
// Purpose:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user