Atlas - SDL_core_unsupported.c

Home / ext / SDL / src / core Lines: 1 | Size: 3790 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1/* 2 Simple DirectMedia Layer 3 Copyright (C) 1997-2025 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 72#endif /* !SDL_PLATFORM_GDK */ 73 74#if !defined(SDL_PLATFORM_WINDOWS) 75 76bool SDL_RegisterApp(const char *name, Uint32 style, void *hInst) 77{ 78 (void)name; 79 (void)style; 80 (void)hInst; 81 return SDL_Unsupported(); 82} 83 84void SDL_SetWindowsMessageHook(void *callback, void *userdata) 85{ 86 (void)callback; 87 (void)userdata; 88 SDL_Unsupported(); 89} 90 91void SDL_UnregisterApp(void) 92{ 93 SDL_Unsupported(); 94} 95 96#endif /* !SDL_PLATFORM_WINDOWS */ 97 98#ifndef SDL_PLATFORM_ANDROID 99 100void SDL_SendAndroidBackButton(void) 101{ 102 SDL_Unsupported(); 103} 104 105void *SDL_GetAndroidActivity(void) 106{ 107 SDL_Unsupported(); 108 return NULL; 109} 110 111const char *SDL_GetAndroidCachePath(void) 112{ 113 SDL_Unsupported(); 114 return NULL; 115} 116 117 118const char *SDL_GetAndroidExternalStoragePath(void) 119{ 120 SDL_Unsupported(); 121 return NULL; 122} 123 124Uint32 SDL_GetAndroidExternalStorageState(void) 125{ 126 SDL_Unsupported(); 127 return 0; 128} 129const char *SDL_GetAndroidInternalStoragePath(void) 130{ 131 SDL_Unsupported(); 132 return NULL; 133} 134 135void *SDL_GetAndroidJNIEnv(void) 136{ 137 SDL_Unsupported(); 138 return NULL; 139} 140 141bool SDL_RequestAndroidPermission(const char *permission, SDL_RequestAndroidPermissionCallback cb, void *userdata) 142{ 143 (void)permission; 144 (void)cb; 145 (void)userdata; 146 return SDL_Unsupported(); 147} 148 149bool SDL_SendAndroidMessage(Uint32 command, int param) 150{ 151 (void)command; 152 (void)param; 153 return SDL_Unsupported(); 154} 155 156bool SDL_ShowAndroidToast(const char *message, int duration, int gravity, int xoffset, int yoffset) 157{ 158 (void)message; 159 (void)duration; 160 (void)gravity; 161 (void)xoffset; 162 (void)yoffset; 163 return SDL_Unsupported(); 164} 165 166int SDL_GetAndroidSDKVersion(void) 167{ 168 return SDL_Unsupported(); 169} 170 171bool SDL_IsChromebook(void) 172{ 173 SDL_Unsupported(); 174 return false; 175} 176 177bool SDL_IsDeXMode(void) 178{ 179 SDL_Unsupported(); 180 return false; 181} 182 183Sint32 JNI_OnLoad(JavaVM *vm, void *reserved) 184{ 185 (void)vm; 186 (void)reserved; 187 return 0x00010004; // JNI_VERSION_1_4 188} 189#endif 190
[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.