loadso: library handles are now SDL_SharedObject* instead of void*.

Improved the SDL_loadso.h documentation a little, too.

Fixes #11009.
This commit is contained in:
Ryan C. Gordon
2024-10-01 11:11:40 -04:00
parent f351395c46
commit 0b5e01a305
38 changed files with 102 additions and 73 deletions

View File

@@ -26,7 +26,7 @@
#ifdef SDL_USE_LIBDBUS
// we never link directly to libdbus.
static const char *dbus_library = "libdbus-1.so.3";
static void *dbus_handle = NULL;
static SDL_SharedObject *dbus_handle = NULL;
static char *inhibit_handle = NULL;
static unsigned int screensaver_cookie = 0;
static SDL_DBusContext dbus;

View File

@@ -86,7 +86,7 @@ typedef struct SDL_UDEV_Symbols
typedef struct SDL_UDEV_PrivateData
{
const char *udev_library;
void *udev_handle;
SDL_SharedObject *udev_handle;
struct udev *udev;
struct udev_monitor *udev_mon;
int ref_count;