Searched refs:dev_path (Results 1 – 4 of 4) sorted by relevance
/AliOS-Things-master/components/SDL2/src/core/alios/ |
A D | SDL_evdev.c | 75 static int SDL_EVDEV_device_removed(const char *dev_path); 80 const char *dev_path); 216 const char* dev_path) in SDL_EVDEV_udev_callback() argument 218 if (dev_path == NULL) { in SDL_EVDEV_udev_callback() 228 SDL_EVDEV_device_added(dev_path, udev_class); in SDL_EVDEV_udev_callback() 231 SDL_EVDEV_device_removed(dev_path); in SDL_EVDEV_udev_callback() 353 SDL_EVDEV_device_added(const char *dev_path, int udev_class) in SDL_EVDEV_device_added() argument 360 if (SDL_strcmp(dev_path, item->path) == 0) { in SDL_EVDEV_device_added() 370 item->fd = open(dev_path, O_RDONLY | O_NONBLOCK); in SDL_EVDEV_device_added() 373 return SDL_SetError("Unable to open %s", dev_path); in SDL_EVDEV_device_added() [all …]
|
/AliOS-Things-master/components/SDL2/src/core/linux/ |
A D | SDL_evdev.c | 113 static int SDL_EVDEV_device_removed(const char *dev_path); 118 const char *dev_path); 213 const char* dev_path) in SDL_EVDEV_udev_callback() argument 215 if (dev_path == NULL) { in SDL_EVDEV_udev_callback() 225 SDL_EVDEV_device_added(dev_path, udev_class); in SDL_EVDEV_udev_callback() 228 SDL_EVDEV_device_removed(dev_path); in SDL_EVDEV_udev_callback() 715 if (SDL_strcmp(dev_path, item->path) == 0) { in SDL_EVDEV_device_added() 725 item->fd = open(dev_path, O_RDONLY | O_NONBLOCK); in SDL_EVDEV_device_added() 731 item->path = SDL_strdup(dev_path); in SDL_EVDEV_device_added() 762 SDL_EVDEV_device_removed(const char *dev_path) in SDL_EVDEV_device_removed() argument [all …]
|
/AliOS-Things-master/components/SDL2/src/hidapi/linux/ |
A D | hid.c | 492 const char *dev_path; in hid_enumerate() local 509 dev_path = udev_device_get_devnode(raw_dev); in hid_enumerate() 539 if (access(dev_path, R_OK|W_OK) != 0) { in hid_enumerate() 562 cur_dev->path = dev_path? strdup(dev_path): NULL; in hid_enumerate()
|
/AliOS-Things-master/components/SDL2/src/hidapi/libusb/ |
A D | hid.c | 991 char *dev_path = make_path(usb_dev, intf_desc->bInterfaceNumber); in hid_open_path() local 992 if (!strcmp(dev_path, path)) { in hid_open_path() 1001 free(dev_path); in hid_open_path() 1014 free(dev_path); in hid_open_path() 1025 free(dev_path); in hid_open_path() 1083 free(dev_path); in hid_open_path()
|
Completed in 11 milliseconds