| | |
| | | files located at the root of the source distribution. |
| | | These files may also be found in the public source |
| | | code repository located at: |
| | | http://github.com/signal11/hidapi . |
| | | https://github.com/libusb/hidapi . |
| | | ********************************************************/ |
| | | #include "../../SDL_internal.h" |
| | | |
| | |
| | | struct hid_device_info *tmp; |
| | | |
| | | /* VID/PID match. Create the record. */ |
| | | tmp = (struct hid_device_info *)malloc(sizeof(struct hid_device_info)); |
| | | tmp = (struct hid_device_info *)calloc(1, sizeof(struct hid_device_info)); |
| | | if (cur_dev) { |
| | | cur_dev->next = tmp; |
| | | } |