dlnote: embed trailing semicolon in SDL_ELF_NOTE_DLOPEN macro
This commit is contained in:
committed by
Özkan Sezer
parent
e18b301c51
commit
9dd3e2305e
@@ -41,7 +41,7 @@
|
|||||||
* "Support for video through SDL",
|
* "Support for video through SDL",
|
||||||
* SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
* SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
* "libSDL-1.2.so.0", "libSDL-2.0.so.0", "libSDL3.so.0"
|
* "libSDL-1.2.so.0", "libSDL-2.0.so.0", "libSDL3.so.0"
|
||||||
* );
|
* )
|
||||||
* int main(int argc, char *argv[]) {
|
* int main(int argc, char *argv[]) {
|
||||||
* return argc + argv[0][1];
|
* return argc + argv[0][1];
|
||||||
* }
|
* }
|
||||||
@@ -183,9 +183,11 @@
|
|||||||
* "Support for loading PNG images using libpng (required for APNG)",
|
* "Support for loading PNG images using libpng (required for APNG)",
|
||||||
* SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
* SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
||||||
* "libpng12.so.0"
|
* "libpng12.so.0"
|
||||||
* );
|
* )
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
|
* A trailing semicolon is not needed.
|
||||||
|
*
|
||||||
* Or if you support multiple versions of a library, you can list them:
|
* Or if you support multiple versions of a library, you can list them:
|
||||||
*
|
*
|
||||||
* ```c
|
* ```c
|
||||||
@@ -195,7 +197,7 @@
|
|||||||
* "Create windows through SDL video backend",
|
* "Create windows through SDL video backend",
|
||||||
* SDL_ELF_NOTE_DLOPEN_PRIORITY_REQUIRED
|
* SDL_ELF_NOTE_DLOPEN_PRIORITY_REQUIRED
|
||||||
* "libSDL-1.2.so.0", "libSDL2-2.0.so.0", "libSDL3.so.0"
|
* "libSDL-1.2.so.0", "libSDL2-2.0.so.0", "libSDL3.so.0"
|
||||||
* );
|
* )
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* This macro is not available for compilers that do not support variadic
|
* This macro is not available for compilers that do not support variadic
|
||||||
@@ -213,7 +215,7 @@
|
|||||||
"\",\"description\":\"" description \
|
"\",\"description\":\"" description \
|
||||||
"\",\"priority\":\"" priority \
|
"\",\"priority\":\"" priority \
|
||||||
"\",\"soname\":" SDL_DLNOTE_JSON_ARRAY(__VA_ARGS__) "}]", \
|
"\",\"soname\":" SDL_DLNOTE_JSON_ARRAY(__VA_ARGS__) "}]", \
|
||||||
SDL_DLNOTE_UNIQUE_NAME)
|
SDL_DLNOTE_UNIQUE_NAME);
|
||||||
|
|
||||||
#elif defined(__GNUC__) && __GNUC__ < 3
|
#elif defined(__GNUC__) && __GNUC__ < 3
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for audio through AAudio",
|
"Support for audio through AAudio",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
LIB_AAUDIO_SO
|
LIB_AAUDIO_SO
|
||||||
);
|
)
|
||||||
|
|
||||||
typedef struct AAUDIO_Data
|
typedef struct AAUDIO_Data
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for audio through libalsa",
|
"Support for audio through libalsa",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
SDL_AUDIO_DRIVER_ALSA_DYNAMIC
|
SDL_AUDIO_DRIVER_ALSA_DYNAMIC
|
||||||
);
|
)
|
||||||
|
|
||||||
static void UnloadALSALibrary(void)
|
static void UnloadALSALibrary(void)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for audio through libjack",
|
"Support for audio through libjack",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
SDL_AUDIO_DRIVER_JACK_DYNAMIC
|
SDL_AUDIO_DRIVER_JACK_DYNAMIC
|
||||||
);
|
)
|
||||||
|
|
||||||
static const char *jack_library = SDL_AUDIO_DRIVER_JACK_DYNAMIC;
|
static const char *jack_library = SDL_AUDIO_DRIVER_JACK_DYNAMIC;
|
||||||
static SDL_SharedObject *jack_handle = NULL;
|
static SDL_SharedObject *jack_handle = NULL;
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for audio through libpipewire",
|
"Support for audio through libpipewire",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC
|
SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC
|
||||||
);
|
)
|
||||||
|
|
||||||
static const char *pipewire_library = SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC;
|
static const char *pipewire_library = SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC;
|
||||||
static SDL_SharedObject *pipewire_handle = NULL;
|
static SDL_SharedObject *pipewire_handle = NULL;
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for audio through libpulseaudio",
|
"Support for audio through libpulseaudio",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC
|
SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC
|
||||||
);
|
)
|
||||||
|
|
||||||
static const char *pulseaudio_library = SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC;
|
static const char *pulseaudio_library = SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC;
|
||||||
static SDL_SharedObject *pulseaudio_handle = NULL;
|
static SDL_SharedObject *pulseaudio_handle = NULL;
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for audio through libsndio",
|
"Support for audio through libsndio",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
SDL_AUDIO_DRIVER_SNDIO_DYNAMIC
|
SDL_AUDIO_DRIVER_SNDIO_DYNAMIC
|
||||||
);
|
)
|
||||||
|
|
||||||
static void UnloadSNDIOLibrary(void)
|
static void UnloadSNDIOLibrary(void)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for camera through libpipewire",
|
"Support for camera through libpipewire",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
SDL_CAMERA_DRIVER_PIPEWIRE_DYNAMIC
|
SDL_CAMERA_DRIVER_PIPEWIRE_DYNAMIC
|
||||||
);
|
)
|
||||||
|
|
||||||
static const char *pipewire_library = SDL_CAMERA_DRIVER_PIPEWIRE_DYNAMIC;
|
static const char *pipewire_library = SDL_CAMERA_DRIVER_PIPEWIRE_DYNAMIC;
|
||||||
static SDL_SharedObject *pipewire_handle = NULL;
|
static SDL_SharedObject *pipewire_handle = NULL;
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for D-Bus IPC",
|
"Support for D-Bus IPC",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
||||||
SDL_DRIVER_DBUS_DYNAMIC
|
SDL_DRIVER_DBUS_DYNAMIC
|
||||||
);
|
)
|
||||||
|
|
||||||
static bool LoadDBUSSyms(void)
|
static bool LoadDBUSSyms(void)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for events through libudev",
|
"Support for events through libudev",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
||||||
SDL_UDEV_DLNOTE_LIBS
|
SDL_UDEV_DLNOTE_LIBS
|
||||||
);
|
)
|
||||||
|
|
||||||
static SDL_UDEV_PrivateData *_this = NULL;
|
static SDL_UDEV_PrivateData *_this = NULL;
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Bidirectional text support",
|
"Bidirectional text support",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
SDL_FRIBIDI_DYNAMIC
|
SDL_FRIBIDI_DYNAMIC
|
||||||
);
|
)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
SDL_FriBidi *SDL_FriBidi_Create(void)
|
SDL_FriBidi *SDL_FriBidi_Create(void)
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Thai language support",
|
"Thai language support",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
SDL_LIBTHAI_DYNAMIC
|
SDL_LIBTHAI_DYNAMIC
|
||||||
);
|
)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for joysticks through libusb",
|
"Support for joysticks through libusb",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
SDL_LIBUSB_DYNAMIC
|
SDL_LIBUSB_DYNAMIC
|
||||||
);
|
)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(SDL_PLATFORM_WIN32) || defined(SDL_PLATFORM_WINGDK)
|
#if defined(SDL_PLATFORM_WIN32) || defined(SDL_PLATFORM_WINGDK)
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for async IO through liburing",
|
"Support for async IO through liburing",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
SDL_DRIVER_LIBURING_DYNAMIC
|
SDL_DRIVER_LIBURING_DYNAMIC
|
||||||
);
|
)
|
||||||
|
|
||||||
#define SDL_LIBURING_FUNCS \
|
#define SDL_LIBURING_FUNCS \
|
||||||
SDL_LIBURING_FUNC(int, io_uring_queue_init, (unsigned entries, struct io_uring *ring, unsigned flags)) \
|
SDL_LIBURING_FUNC(int, io_uring_queue_init, (unsigned entries, struct io_uring *ring, unsigned flags)) \
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for joysticks through libusb",
|
"Support for joysticks through libusb",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
SDL_LIBUSB_DYNAMIC
|
SDL_LIBUSB_DYNAMIC
|
||||||
);
|
)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static SDL_AtomicInt SDL_libusb_refcount;
|
static SDL_AtomicInt SDL_libusb_refcount;
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for Steam user storage",
|
"Support for Steam user storage",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
SDL_DRIVER_STEAMAPI_DYNAMIC
|
SDL_DRIVER_STEAMAPI_DYNAMIC
|
||||||
);
|
)
|
||||||
|
|
||||||
// !!! FIXME: Async API can use SteamRemoteStorage_ReadFileAsync
|
// !!! FIXME: Async API can use SteamRemoteStorage_ReadFileAsync
|
||||||
// !!! FIXME: Async API can use SteamRemoteStorage_WriteFileAsync
|
// !!! FIXME: Async API can use SteamRemoteStorage_WriteFileAsync
|
||||||
|
|||||||
@@ -116,31 +116,31 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for OpenGL",
|
"Support for OpenGL",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
DEFAULT_OGL, ALT_OGL
|
DEFAULT_OGL, ALT_OGL
|
||||||
);
|
)
|
||||||
SDL_ELF_NOTE_DLOPEN(
|
SDL_ELF_NOTE_DLOPEN(
|
||||||
"egl-egl",
|
"egl-egl",
|
||||||
"Support for EGL",
|
"Support for EGL",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
DEFAULT_EGL
|
DEFAULT_EGL
|
||||||
);
|
)
|
||||||
SDL_ELF_NOTE_DLOPEN(
|
SDL_ELF_NOTE_DLOPEN(
|
||||||
"egl-es2",
|
"egl-es2",
|
||||||
"Support for EGL ES2",
|
"Support for EGL ES2",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
DEFAULT_OGL_ES2
|
DEFAULT_OGL_ES2
|
||||||
);
|
)
|
||||||
SDL_ELF_NOTE_DLOPEN(
|
SDL_ELF_NOTE_DLOPEN(
|
||||||
"egl-es-pvr",
|
"egl-es-pvr",
|
||||||
"Support for EGL ES PVR",
|
"Support for EGL ES PVR",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
DEFAULT_OGL_ES_PVR
|
DEFAULT_OGL_ES_PVR
|
||||||
);
|
)
|
||||||
SDL_ELF_NOTE_DLOPEN(
|
SDL_ELF_NOTE_DLOPEN(
|
||||||
"egl-ogl-es",
|
"egl-ogl-es",
|
||||||
"Support for OpenGL ES",
|
"Support for OpenGL ES",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
DEFAULT_OGL_ES
|
DEFAULT_OGL_ES
|
||||||
);
|
)
|
||||||
#endif // SDL_VIDEO_DRIVER_RPI
|
#endif // SDL_VIDEO_DRIVER_RPI
|
||||||
|
|
||||||
#if defined(SDL_VIDEO_OPENGL) && !defined(SDL_VIDEO_VITA_PVR_OGL)
|
#if defined(SDL_VIDEO_OPENGL) && !defined(SDL_VIDEO_VITA_PVR_OGL)
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for KMSDRM",
|
"Support for KMSDRM",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC
|
SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC
|
||||||
);
|
)
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for Vulkan on KMSDRM",
|
"Support for Vulkan on KMSDRM",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
DEFAULT_VULKAN
|
DEFAULT_VULKAN
|
||||||
);
|
)
|
||||||
|
|
||||||
bool KMSDRM_Vulkan_LoadLibrary(SDL_VideoDevice *_this, const char *path)
|
bool KMSDRM_Vulkan_LoadLibrary(SDL_VideoDevice *_this, const char *path)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for offscreen Vulkan",
|
"Support for offscreen Vulkan",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
"libvulkan.so.1"
|
"libvulkan.so.1"
|
||||||
);
|
)
|
||||||
|
|
||||||
#if defined( SDL_PLATFORM_APPLE )
|
#if defined( SDL_PLATFORM_APPLE )
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for OpenVR video",
|
"Support for OpenVR video",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
SDL_OPENVR_DRIVER_DYNAMIC
|
SDL_OPENVR_DRIVER_DYNAMIC
|
||||||
);
|
)
|
||||||
|
|
||||||
#define MARKER_ID 0
|
#define MARKER_ID 0
|
||||||
#define MARKER_STR "vr-marker,frame_end,type,application"
|
#define MARKER_STR "vr-marker,frame_end,type,application"
|
||||||
|
|||||||
@@ -33,14 +33,14 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for Wayland video",
|
"Support for Wayland video",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC
|
SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC
|
||||||
);
|
)
|
||||||
#ifdef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL
|
#ifdef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL
|
||||||
SDL_ELF_NOTE_DLOPEN(
|
SDL_ELF_NOTE_DLOPEN(
|
||||||
"wayland",
|
"wayland",
|
||||||
"Support for Wayland video",
|
"Support for Wayland video",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL
|
SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL
|
||||||
);
|
)
|
||||||
#endif
|
#endif
|
||||||
#ifdef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR
|
#ifdef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR
|
||||||
SDL_ELF_NOTE_DLOPEN(
|
SDL_ELF_NOTE_DLOPEN(
|
||||||
@@ -48,7 +48,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for Wayland video",
|
"Support for Wayland video",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR
|
SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR
|
||||||
);
|
)
|
||||||
#endif
|
#endif
|
||||||
#ifdef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON
|
#ifdef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON
|
||||||
SDL_ELF_NOTE_DLOPEN(
|
SDL_ELF_NOTE_DLOPEN(
|
||||||
@@ -56,7 +56,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for Wayland video",
|
"Support for Wayland video",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON
|
SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON
|
||||||
);
|
)
|
||||||
#endif
|
#endif
|
||||||
#ifdef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR
|
#ifdef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR
|
||||||
SDL_ELF_NOTE_DLOPEN(
|
SDL_ELF_NOTE_DLOPEN(
|
||||||
@@ -64,7 +64,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for Wayland video",
|
"Support for Wayland video",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR
|
SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR
|
||||||
);
|
)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for Vulkan on wayland backend",
|
"Support for Vulkan on wayland backend",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
DEFAULT_VULKAN
|
DEFAULT_VULKAN
|
||||||
);
|
)
|
||||||
|
|
||||||
bool Wayland_Vulkan_LoadLibrary(SDL_VideoDevice *_this, const char *path)
|
bool Wayland_Vulkan_LoadLibrary(SDL_VideoDevice *_this, const char *path)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for video through X11 backend",
|
"Support for video through X11 backend",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
||||||
SDL_VIDEO_DRIVER_X11_DYNAMIC
|
SDL_VIDEO_DRIVER_X11_DYNAMIC
|
||||||
);
|
)
|
||||||
|
|
||||||
#ifdef SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT
|
#ifdef SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT
|
||||||
SDL_ELF_NOTE_DLOPEN(
|
SDL_ELF_NOTE_DLOPEN(
|
||||||
@@ -51,7 +51,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for video through X11 backend",
|
"Support for video through X11 backend",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
||||||
SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT
|
SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT
|
||||||
);
|
)
|
||||||
#else
|
#else
|
||||||
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT NULL
|
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT NULL
|
||||||
#endif
|
#endif
|
||||||
@@ -62,7 +62,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for video through X11 backend",
|
"Support for video through X11 backend",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
||||||
SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR
|
SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR
|
||||||
);
|
)
|
||||||
#else
|
#else
|
||||||
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR NULL
|
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR NULL
|
||||||
#endif
|
#endif
|
||||||
@@ -73,7 +73,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for video through X11 backend",
|
"Support for video through X11 backend",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
||||||
SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2
|
SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2
|
||||||
);
|
)
|
||||||
#else
|
#else
|
||||||
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 NULL
|
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 NULL
|
||||||
#endif
|
#endif
|
||||||
@@ -84,7 +84,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for video through X11 backend",
|
"Support for video through X11 backend",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
||||||
SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES
|
SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES
|
||||||
);
|
)
|
||||||
#else
|
#else
|
||||||
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES NULL
|
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES NULL
|
||||||
#endif
|
#endif
|
||||||
@@ -95,7 +95,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for video through X11 backend",
|
"Support for video through X11 backend",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
||||||
SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR
|
SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR
|
||||||
);
|
)
|
||||||
#else
|
#else
|
||||||
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR NULL
|
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR NULL
|
||||||
#endif
|
#endif
|
||||||
@@ -106,7 +106,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for video through X11 backend",
|
"Support for video through X11 backend",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
||||||
SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS
|
SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS
|
||||||
);
|
)
|
||||||
#else
|
#else
|
||||||
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS NULL
|
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS NULL
|
||||||
#endif
|
#endif
|
||||||
@@ -117,7 +117,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for video through X11 backend",
|
"Support for video through X11 backend",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
||||||
SDL_VIDEO_DRIVER_X11_DYNAMIC_XTEST
|
SDL_VIDEO_DRIVER_X11_DYNAMIC_XTEST
|
||||||
);
|
)
|
||||||
#else
|
#else
|
||||||
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XTEST NULL
|
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XTEST NULL
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -44,14 +44,14 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for vulkan on X11",
|
"Support for vulkan on X11",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
DEFAULT_VULKAN
|
DEFAULT_VULKAN
|
||||||
);
|
)
|
||||||
|
|
||||||
SDL_ELF_NOTE_DLOPEN(
|
SDL_ELF_NOTE_DLOPEN(
|
||||||
"x11-vulkan",
|
"x11-vulkan",
|
||||||
"Support for vulkan on X11",
|
"Support for vulkan on X11",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
DEFAULT_X11_XCB
|
DEFAULT_X11_XCB
|
||||||
);
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
typedef uint32_t xcb_window_t;
|
typedef uint32_t xcb_window_t;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ SDL_ELF_NOTE_DLOPEN(
|
|||||||
"Support for loading PNG images using libpng",
|
"Support for loading PNG images using libpng",
|
||||||
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED,
|
||||||
PNG_SHARED_LIBRARY
|
PNG_SHARED_LIBRARY
|
||||||
);
|
)
|
||||||
|
|
||||||
typedef int png_sig_cmp_fn(const unsigned char *sig, size_t start, size_t num_to_check);
|
typedef int png_sig_cmp_fn(const unsigned char *sig, size_t start, size_t num_to_check);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user