Atlas - SDL_core_unsupported.c
Home / ext / SDL / src / core Lines: 1 | Size: 3903 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1/* 2 Simple DirectMedia Layer 3 Copyright (C) 1997-2026 Sam Lantinga <[email protected]> 4 5 This software is provided 'as-is', without any express or implied 6 warranty. In no event will the authors be held liable for any damages 7 arising from the use of this software. 8 9 Permission is granted to anyone to use this software for any purpose, 10 including commercial applications, and to alter it and redistribute it 11 freely, subject to the following restrictions: 12 13 1. The origin of this software must not be misrepresented; you must not 14 claim that you wrote the original software. If you use this software 15 in a product, an acknowledgment in the product documentation would be 16 appreciated but is not required. 17 2. Altered source versions must be plainly marked as such, and must not be 18 misrepresented as being the original software. 19 3. This notice may not be removed or altered from any source distribution. 20*/ 21#include "SDL_internal.h" 22 23#include "SDL_core_unsupported.h" 24 25#ifndef SDL_VIDEO_DRIVER_X11 26 27void SDL_SetX11EventHook(SDL_X11EventHook callback, void *userdata) 28{ 29} 30 31#endif /* !SDL_VIDEO_DRIVER_X11 */ 32 33#ifndef SDL_PLATFORM_LINUX 34 35bool SDL_SetLinuxThreadPriority(Sint64 threadID, int priority) 36{ 37 (void)threadID; 38 (void)priority; 39 return SDL_Unsupported(); 40} 41 42bool SDL_SetLinuxThreadPriorityAndPolicy(Sint64 threadID, int sdlPriority, int schedPolicy) 43{ 44 (void)threadID; 45 (void)sdlPriority; 46 (void)schedPolicy; 47 return SDL_Unsupported(); 48} 49 50#endif /* !SDL_PLATFORM_LINUX */ 51 52#ifndef SDL_PLATFORM_GDK 53 54void SDL_GDKSuspendComplete(void) 55{ 56 SDL_Unsupported(); 57} 58 59bool SDL_GetGDKDefaultUser(XUserHandle *outUserHandle) 60{ 61 return SDL_Unsupported(); 62} 63 64void SDL_GDKSuspendGPU(SDL_GPUDevice *device) 65{ 66} 67 68void SDL_GDKResumeGPU(SDL_GPUDevice *device) 69{ 70} 71 72void SDL_GDKSuspendRenderer(SDL_Renderer *renderer) 73{ 74} 75 76void SDL_GDKResumeRenderer(SDL_Renderer *renderer) 77{ 78} 79 80#endif /* !SDL_PLATFORM_GDK */ 81 82#if !defined(SDL_PLATFORM_WINDOWS) 83 84bool SDL_RegisterApp(const char *name, Uint32 style, void *hInst) 85{ 86 (void)name; 87 (void)style; 88 (void)hInst; 89 return SDL_Unsupported(); 90} 91 92void SDL_SetWindowsMessageHook(void *callback, void *userdata) 93{ 94 (void)callback; 95 (void)userdata; 96 SDL_Unsupported(); 97} 98 99void SDL_UnregisterApp(void) 100{ 101 SDL_Unsupported(); 102} 103 104#endif /* !SDL_PLATFORM_WINDOWS */ 105 106#ifndef SDL_PLATFORM_ANDROID 107 108void SDL_SendAndroidBackButton(void) 109{ 110 SDL_Unsupported(); 111} 112 113void *SDL_GetAndroidActivity(void) 114{ 115 SDL_Unsupported(); 116 return NULL; 117} 118 119const char *SDL_GetAndroidCachePath(void) 120{ 121 SDL_Unsupported(); 122 return NULL; 123} 124 125 126const char *SDL_GetAndroidExternalStoragePath(void) 127{ 128 SDL_Unsupported(); 129 return NULL; 130} 131 132Uint32 SDL_GetAndroidExternalStorageState(void) 133{ 134 SDL_Unsupported(); 135 return 0; 136} 137const char *SDL_GetAndroidInternalStoragePath(void) 138{ 139 SDL_Unsupported(); 140 return NULL; 141} 142 143void *SDL_GetAndroidJNIEnv(void) 144{ 145 SDL_Unsupported(); 146 return NULL; 147} 148 149bool SDL_RequestAndroidPermission(const char *permission, SDL_RequestAndroidPermissionCallback cb, void *userdata) 150{ 151 (void)permission; 152 (void)cb; 153 (void)userdata; 154 return SDL_Unsupported(); 155} 156 157bool SDL_SendAndroidMessage(Uint32 command, int param) 158{ 159 (void)command; 160 (void)param; 161 return SDL_Unsupported(); 162} 163 164bool SDL_ShowAndroidToast(const char *message, int duration, int gravity, int xoffset, int yoffset) 165{ 166 (void)message; 167 (void)duration; 168 (void)gravity; 169 (void)xoffset; 170 (void)yoffset; 171 return SDL_Unsupported(); 172} 173 174int SDL_GetAndroidSDKVersion(void) 175{ 176 return SDL_Unsupported(); 177} 178 179bool SDL_IsChromebook(void) 180{ 181 SDL_Unsupported(); 182 return false; 183} 184 185bool SDL_IsDeXMode(void) 186{ 187 SDL_Unsupported(); 188 return false; 189} 190 191Sint32 JNI_OnLoad(JavaVM *vm, void *reserved) 192{ 193 (void)vm; 194 (void)reserved; 195 return 0x00010004; // JNI_VERSION_1_4 196} 197#endif 198[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.