SDL_sandbox.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 1997-2022 Sam Lantinga <[email protected]>
  4. Copyright (C) 2022 Collabora Ltd.
  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. Permission is granted to anyone to use this software for any purpose,
  9. including commercial applications, and to alter it and redistribute it
  10. freely, subject to the following restrictions:
  11. 1. The origin of this software must not be misrepresented; you must not
  12. claim that you wrote the original software. If you use this software
  13. in a product, an acknowledgment in the product documentation would be
  14. appreciated but is not required.
  15. 2. Altered source versions must be plainly marked as such, and must not be
  16. misrepresented as being the original software.
  17. 3. This notice may not be removed or altered from any source distribution.
  18. */
  19. #ifndef SDL_SANDBOX_H
  20. #define SDL_SANDBOX_H
  21. typedef enum
  22. {
  23. SDL_SANDBOX_NONE = 0,
  24. SDL_SANDBOX_UNKNOWN_CONTAINER,
  25. SDL_SANDBOX_FLATPAK,
  26. SDL_SANDBOX_SNAP,
  27. } SDL_Sandbox;
  28. /* Return the sandbox type currently in use, if any */
  29. SDL_Sandbox SDL_DetectSandbox(void);
  30. #endif /* SDL_SANDBOX_H */
  31. /* vi: set ts=4 sw=4 expandtab: */