#include #include #include int main(){ //initiate the usb thing libusb_context *context; int status=libusb_init(&context); if(status!=0) {perror("libusb_init"); exit(-1);} /* ... some code ... */ // actually enumerates all the usb and gives some infos abot the usb things libusb_device **list; ssize_t count=libusb_get_device_list(context,&list); if(count<0) {perror("libusb_get_device_list"); exit(-1);} ssize_t i=0; for(i=0;i