[libhid-discuss] usb_control_msg

Charles Lepple clepple at ghz.cc
Fri Jun 22 23:12:24 UTC 2007


On Jun 22, 2007, at 8:53 AM, Jorgen Lundman wrote:

> But, should I be de-referencing your struct hid to fiddle with your
> internal reference to usb? Is that normal? Or should I replace
> usb_control_msg() call with a hid_* method of some kind?

It depends what you want to accomplish - if you just want to make it  
work, then feel free to dereference it. I can't guarantee that it  
will stay that way forever, but I will try not to change it  
unnecessarily.

In an ideal world, the libhid functions would do everything you need  
them to, but the HID devices people are trying to use with libhid are  
way more diverse than we expected back when this project was started.

-- 
Charles Lepple





More information about the libhid-discuss mailing list