Ver código fonte

Added udev_device_get_syspath() to udev context

Sam Lantinga 1 ano atrás
pai
commit
b0d52f11f4
2 arquivos alterados com 2 adições e 0 exclusões
  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 *);