Pete Batard wrote: > +int API_EXPORTED libusb_get_port_path(libusb_context *ctx, libusb_device > *dev, uint8_t* path, uint8_t path_len)
I think the proposed API could be simplified. There's a hard upper limit on the path length (7 ports including the HC) so I would suggest to drop the path_len input parameter and document that path must be uint8_t [7] or longer. > + /* The device needs to be open, else the parents may have been > destroyed */ Please explain this comment in more detail? Does it refer to the libusb_device refcounting? > +libusb_device * LIBUSB_CALL libusb_get_parent(libusb_device *dev) > +{ > + return dev->parent_dev; > +} Are all devices refcounted by their children? //Peter ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel