SDL_core_unsupported.h 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
  4. This software is provided 'as-is', without any express or implied
  5. warranty. In no event will the authors be held liable for any damages
  6. arising from the use of this software.
  7. Permission is granted to anyone to use this software for any purpose,
  8. including commercial applications, and to alter it and redistribute it
  9. freely, subject to the following restrictions:
  10. 1. The origin of this software must not be misrepresented; you must not
  11. claim that you wrote the original software. If you use this software
  12. in a product, an acknowledgment in the product documentation would be
  13. appreciated but is not required.
  14. 2. Altered source versions must be plainly marked as such, and must not be
  15. misrepresented as being the original software.
  16. 3. This notice may not be removed or altered from any source distribution.
  17. */
  18. #ifndef SDL_VIDEO_DRIVER_X11
  19. extern SDL_DECLSPEC void SDLCALL SDL_SetX11EventHook(SDL_X11EventHook callback, void *userdata);
  20. #endif
  21. #ifndef SDL_PLATFORM_LINUX
  22. extern SDL_DECLSPEC bool SDLCALL SDL_SetLinuxThreadPriority(Sint64 threadID, int priority);
  23. extern SDL_DECLSPEC bool SDLCALL SDL_SetLinuxThreadPriorityAndPolicy(Sint64 threadID, int sdlPriority, int schedPolicy);
  24. #endif
  25. #if !defined(SDL_PLATFORM_GDK)
  26. typedef struct XUserHandle XUserHandle;
  27. extern SDL_DECLSPEC void SDLCALL SDL_GDKSuspendComplete(void);
  28. extern SDL_DECLSPEC bool SDLCALL SDL_GetGDKDefaultUser(XUserHandle *outUserHandle);
  29. extern SDL_DECLSPEC void SDLCALL SDL_GDKSuspendGPU(SDL_GPUDevice *device);
  30. extern SDL_DECLSPEC void SDLCALL SDL_GDKResumeGPU(SDL_GPUDevice *device);
  31. #endif /* !SDL_PLATFORM_GDK */
  32. #if !defined(SDL_PLATFORM_WINDOWS)
  33. extern SDL_DECLSPEC bool SDLCALL SDL_RegisterApp(const char *name, Uint32 style, void *hInst);
  34. extern SDL_DECLSPEC void SDLCALL SDL_SetWindowsMessageHook(void *callback, void *userdata);
  35. extern SDL_DECLSPEC void SDLCALL SDL_UnregisterApp(void);
  36. #endif /* !SDL_PLATFORM_WINDOWS */
  37. #if !defined(SDL_PLATFORM_ANDROID)
  38. typedef void *SDL_RequestAndroidPermissionCallback;
  39. typedef void *JavaVM;
  40. extern SDL_DECLSPEC void SDLCALL SDL_SendAndroidBackButton(void);
  41. extern SDL_DECLSPEC void * SDLCALL SDL_GetAndroidActivity(void);
  42. extern SDL_DECLSPEC const char * SDLCALL SDL_GetAndroidCachePath(void);
  43. extern SDL_DECLSPEC const char * SDLCALL SDL_GetAndroidExternalStoragePath(void);
  44. extern SDL_DECLSPEC Uint32 SDLCALL SDL_GetAndroidExternalStorageState(void);
  45. extern SDL_DECLSPEC const char * SDLCALL SDL_GetAndroidInternalStoragePath(void);
  46. extern SDL_DECLSPEC void * SDLCALL SDL_GetAndroidJNIEnv(void);
  47. extern SDL_DECLSPEC bool SDLCALL SDL_RequestAndroidPermission(const char *permission, SDL_RequestAndroidPermissionCallback cb, void *userdata);
  48. extern SDL_DECLSPEC bool SDLCALL SDL_SendAndroidMessage(Uint32 command, int param);
  49. extern SDL_DECLSPEC bool SDLCALL SDL_ShowAndroidToast(const char *message, int duration, int gravity, int xoffset, int yoffset);
  50. extern SDL_DECLSPEC int SDLCALL SDL_GetAndroidSDKVersion(void);
  51. extern SDL_DECLSPEC bool SDLCALL SDL_IsChromebook(void);
  52. extern SDL_DECLSPEC bool SDLCALL SDL_IsDeXMode(void);
  53. extern SDL_DECLSPEC Sint32 SDLCALL JNI_OnLoad(JavaVM *vm, void *reserved);
  54. #endif /* !SDL_PLATFORM_ANDROID */