瀏覽代碼

Added udev_device_get_syspath() to udev context

Sam Lantinga 2 年之前
父節點
當前提交
b0d52f11f4
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      src/core/linux/SDL_udev.c
  2. 1 0
      src/core/linux/SDL_udev.h

+ 1 - 0
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);

+ 1 - 0
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 *);