|
@@ -20,18 +20,18 @@
|
|
|
*/
|
|
|
#include "SDL_internal.h"
|
|
|
|
|
|
+#include "SDL_core_unsupported.h"
|
|
|
+
|
|
|
#ifndef SDL_VIDEO_DRIVER_X11
|
|
|
|
|
|
-SDL_DECLSPEC void SDLCALL SDL_SetX11EventHook(SDL_X11EventHook callback, void *userdata);
|
|
|
void SDL_SetX11EventHook(SDL_X11EventHook callback, void *userdata)
|
|
|
{
|
|
|
}
|
|
|
|
|
|
-#endif
|
|
|
+#endif /* !SDL_VIDEO_DRIVER_X11 */
|
|
|
|
|
|
#ifndef SDL_PLATFORM_LINUX
|
|
|
|
|
|
-SDL_DECLSPEC bool SDLCALL SDL_SetLinuxThreadPriority(Sint64 threadID, int priority);
|
|
|
bool SDL_SetLinuxThreadPriority(Sint64 threadID, int priority)
|
|
|
{
|
|
|
(void)threadID;
|
|
@@ -39,7 +39,6 @@ bool SDL_SetLinuxThreadPriority(Sint64 threadID, int priority)
|
|
|
return SDL_Unsupported();
|
|
|
}
|
|
|
|
|
|
-SDL_DECLSPEC bool SDLCALL SDL_SetLinuxThreadPriorityAndPolicy(Sint64 threadID, int sdlPriority, int schedPolicy);
|
|
|
bool SDL_SetLinuxThreadPriorityAndPolicy(Sint64 threadID, int sdlPriority, int schedPolicy)
|
|
|
{
|
|
|
(void)threadID;
|
|
@@ -48,37 +47,32 @@ bool SDL_SetLinuxThreadPriorityAndPolicy(Sint64 threadID, int sdlPriority, int s
|
|
|
return SDL_Unsupported();
|
|
|
}
|
|
|
|
|
|
-#endif
|
|
|
+#endif /* !SDL_PLATFORM_LINUX */
|
|
|
|
|
|
#ifndef SDL_PLATFORM_GDK
|
|
|
|
|
|
-SDL_DECLSPEC void SDLCALL SDL_GDKSuspendComplete(void);
|
|
|
void SDL_GDKSuspendComplete(void)
|
|
|
{
|
|
|
SDL_Unsupported();
|
|
|
}
|
|
|
|
|
|
-SDL_DECLSPEC bool SDLCALL SDL_GetGDKDefaultUser(void *outUserHandle); /* XUserHandle *outUserHandle */
|
|
|
-bool SDL_GetGDKDefaultUser(void *outUserHandle)
|
|
|
+bool SDL_GetGDKDefaultUser(XUserHandle *outUserHandle)
|
|
|
{
|
|
|
return SDL_Unsupported();
|
|
|
}
|
|
|
|
|
|
-SDL_DECLSPEC void SDLCALL SDL_GDKSuspendGPU(SDL_GPUDevice *device);
|
|
|
void SDL_GDKSuspendGPU(SDL_GPUDevice *device)
|
|
|
{
|
|
|
}
|
|
|
|
|
|
-SDL_DECLSPEC void SDLCALL SDL_GDKResumeGPU(SDL_GPUDevice *device);
|
|
|
void SDL_GDKResumeGPU(SDL_GPUDevice *device)
|
|
|
{
|
|
|
}
|
|
|
|
|
|
-#endif
|
|
|
+#endif /* !SDL_PLATFORM_GDK */
|
|
|
|
|
|
#if !defined(SDL_PLATFORM_WINDOWS)
|
|
|
|
|
|
-SDL_DECLSPEC bool SDLCALL SDL_RegisterApp(const char *name, Uint32 style, void *hInst);
|
|
|
bool SDL_RegisterApp(const char *name, Uint32 style, void *hInst)
|
|
|
{
|
|
|
(void)name;
|
|
@@ -87,7 +81,6 @@ bool SDL_RegisterApp(const char *name, Uint32 style, void *hInst)
|
|
|
return SDL_Unsupported();
|
|
|
}
|
|
|
|
|
|
-SDL_DECLSPEC void SDLCALL SDL_SetWindowsMessageHook(void *callback, void *userdata); // SDL_WindowsMessageHook callback
|
|
|
void SDL_SetWindowsMessageHook(void *callback, void *userdata)
|
|
|
{
|
|
|
(void)callback;
|
|
@@ -95,30 +88,26 @@ void SDL_SetWindowsMessageHook(void *callback, void *userdata)
|
|
|
SDL_Unsupported();
|
|
|
}
|
|
|
|
|
|
-SDL_DECLSPEC void SDLCALL SDL_UnregisterApp(void);
|
|
|
void SDL_UnregisterApp(void)
|
|
|
{
|
|
|
SDL_Unsupported();
|
|
|
}
|
|
|
|
|
|
-#endif
|
|
|
+#endif /* !SDL_PLATFORM_WINDOWS */
|
|
|
|
|
|
#ifndef SDL_PLATFORM_ANDROID
|
|
|
|
|
|
-SDL_DECLSPEC void SDLCALL SDL_SendAndroidBackButton(void);
|
|
|
void SDL_SendAndroidBackButton(void)
|
|
|
{
|
|
|
SDL_Unsupported();
|
|
|
}
|
|
|
|
|
|
-SDL_DECLSPEC void * SDLCALL SDL_GetAndroidActivity(void);
|
|
|
void *SDL_GetAndroidActivity(void)
|
|
|
{
|
|
|
SDL_Unsupported();
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
|
-SDL_DECLSPEC const char * SDLCALL SDL_GetAndroidCachePath(void);
|
|
|
const char *SDL_GetAndroidCachePath(void)
|
|
|
{
|
|
|
SDL_Unsupported();
|
|
@@ -126,35 +115,29 @@ const char *SDL_GetAndroidCachePath(void)
|
|
|
}
|
|
|
|
|
|
|
|
|
-SDL_DECLSPEC const char * SDLCALL SDL_GetAndroidExternalStoragePath(void);
|
|
|
const char *SDL_GetAndroidExternalStoragePath(void)
|
|
|
{
|
|
|
SDL_Unsupported();
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
|
-SDL_DECLSPEC Uint32 SDLCALL SDL_GetAndroidExternalStorageState(void);
|
|
|
Uint32 SDL_GetAndroidExternalStorageState(void)
|
|
|
{
|
|
|
SDL_Unsupported();
|
|
|
return 0;
|
|
|
}
|
|
|
-SDL_DECLSPEC const char * SDLCALL SDL_GetAndroidInternalStoragePath(void);
|
|
|
const char *SDL_GetAndroidInternalStoragePath(void)
|
|
|
{
|
|
|
SDL_Unsupported();
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
|
-SDL_DECLSPEC void * SDLCALL SDL_GetAndroidJNIEnv(void);
|
|
|
void *SDL_GetAndroidJNIEnv(void)
|
|
|
{
|
|
|
SDL_Unsupported();
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
|
-typedef void (SDLCALL *SDL_RequestAndroidPermissionCallback)(void *userdata, const char *permission, bool granted);
|
|
|
-SDL_DECLSPEC bool SDLCALL SDL_RequestAndroidPermission(const char *permission, SDL_RequestAndroidPermissionCallback cb, void *userdata);
|
|
|
bool SDL_RequestAndroidPermission(const char *permission, SDL_RequestAndroidPermissionCallback cb, void *userdata)
|
|
|
{
|
|
|
(void)permission;
|
|
@@ -163,7 +146,6 @@ bool SDL_RequestAndroidPermission(const char *permission, SDL_RequestAndroidPerm
|
|
|
return SDL_Unsupported();
|
|
|
}
|
|
|
|
|
|
-SDL_DECLSPEC bool SDLCALL SDL_SendAndroidMessage(Uint32 command, int param);
|
|
|
bool SDL_SendAndroidMessage(Uint32 command, int param)
|
|
|
{
|
|
|
(void)command;
|
|
@@ -171,7 +153,6 @@ bool SDL_SendAndroidMessage(Uint32 command, int param)
|
|
|
return SDL_Unsupported();
|
|
|
}
|
|
|
|
|
|
-SDL_DECLSPEC bool SDLCALL SDL_ShowAndroidToast(const char *message, int duration, int gravity, int xoffset, int yoffset);
|
|
|
bool SDL_ShowAndroidToast(const char *message, int duration, int gravity, int xoffset, int yoffset)
|
|
|
{
|
|
|
(void)message;
|
|
@@ -182,28 +163,24 @@ bool SDL_ShowAndroidToast(const char *message, int duration, int gravity, int xo
|
|
|
return SDL_Unsupported();
|
|
|
}
|
|
|
|
|
|
-SDL_DECLSPEC int SDLCALL SDL_GetAndroidSDKVersion(void);
|
|
|
int SDL_GetAndroidSDKVersion(void)
|
|
|
{
|
|
|
return SDL_Unsupported();
|
|
|
}
|
|
|
|
|
|
-SDL_DECLSPEC bool SDLCALL SDL_IsChromebook(void);
|
|
|
bool SDL_IsChromebook(void)
|
|
|
{
|
|
|
SDL_Unsupported();
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
-SDL_DECLSPEC bool SDLCALL SDL_IsDeXMode(void);
|
|
|
bool SDL_IsDeXMode(void)
|
|
|
{
|
|
|
SDL_Unsupported();
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
-SDL_DECLSPEC Sint32 SDLCALL JNI_OnLoad(void *vm, void *reserved);
|
|
|
-Sint32 JNI_OnLoad(void *vm, void *reserved)
|
|
|
+Sint32 JNI_OnLoad(JavaVM *vm, void *reserved)
|
|
|
{
|
|
|
(void)vm;
|
|
|
(void)reserved;
|