SDL: Added udev_device_get_syspath() to udev context

From b0d52f11f4fdd49d3d95bbbe52a3c067f97ff306 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 24 May 2023 10:39:43 -0700
Subject: [PATCH] Added udev_device_get_syspath() to udev context

---
 src/core/linux/SDL_udev.c | 1 +
 src/core/linux/SDL_udev.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/core/linux/SDL_udev.c b/src/core/linux/SDL_udev.c
index 973e2da9dacc..73d3e7473599 100644
--- a/src/core/linux/SDL_udev.c
+++ b/src/core/linux/SDL_udev.c
@@ -64,6 +64,7 @@ static int SDL_UDEV_load_syms(void)
 
     SDL_UDEV_SYM(udev_device_get_action);
     SDL_UDEV_SYM(udev_device_get_devnode);
+    SDL_UDEV_SYM(udev_device_get_syspath);
     SDL_UDEV_SYM(udev_device_get_subsystem);
     SDL_UDEV_SYM(udev_device_get_parent_with_subsystem_devtype);
     SDL_UDEV_SYM(udev_device_get_property_value);
diff --git a/src/core/linux/SDL_udev.h b/src/core/linux/SDL_udev.h
index f5e831410f6e..2f44e929452c 100644
--- a/src/core/linux/SDL_udev.h
+++ b/src/core/linux/SDL_udev.h
@@ -56,6 +56,7 @@ typedef struct SDL_UDEV_Symbols
 {
     const char *(*udev_device_get_action)(struct udev_device *);
     const char *(*udev_device_get_devnode)(struct udev_device *);
+    const char *(*udev_device_get_syspath)(struct udev_device *);
     const char *(*udev_device_get_subsystem)(struct udev_device *);
     struct udev_device *(*udev_device_get_parent_with_subsystem_devtype)(struct udev_device *udev_device, const char *subsystem, const char *devtype);
     const char *(*udev_device_get_property_value)(struct udev_device *, const char *);