define a dummy implementation of JoinLayer for non-threads runtime modes

This commit is contained in:
Vincent Wei
2020-02-21 09:49:57 +08:00
parent a6974206c2
commit b971ca6d80

View File

@@ -2521,6 +2521,31 @@ MG_EXPORT DESKTOPOPS* GUIAPI SetCustomDesktopOperationSet
*/
MG_EXPORT void GUIAPI DesktopUpdateAllWindow (void);
#ifndef _MGRM_PROCESSES
#define DUMMY_LAYER_HANDLE (GHANDLE)(-1)
/**
* \fn GHANDLE GUIAPI JoinLayer (const char* layer_name,
const char* client_name,
int max_nr_highers, int max_nr_normals)
* \brief The dummy replacement of the same function for MiniGUI-Processes.
*
* This function is a replacment of the same function for MiniGUI-Processes
* runtime mode. We provide this function for MiniGUI-Threads and
* MiniGUI-Standalone runtime modes, in order to avoid using the
* conditional compilation instructions in your source code.
*
* \return Always returns DUMMY_LAYER_HANDLE to indicate success.
*/
static inline GHANDLE GUIAPI JoinLayer (const char* layer_name,
const char* client_name, int max_nr_highers, int max_nr_normals)
{
return DUMMY_LAYER_HANDLE;
}
#endif /* not defined _MGRM_PROCESSES */
/** @} end of init_fns */
#ifdef _MGHAVE_MOUSECALIBRATE