Discussion:
[libhid-discuss] a list of libhid return codes?
george wietor
2009-05-31 22:14:16 UTC
Permalink
Hello libhid-ers!

I am working on my first libhid project, and have come across a few return
code errors that i don't know what to do with. Is there a list or document
that explains what exactly the libhid return codes mean?

the three errors i have encountered are:

"hid_init failed with return code 4"

and also

"hid_force_open failed with return code 15"
"hid_force_open failed with return code 20"

I have seen some mention of what return codes 7, 12, and 13 mean but haven't
found anything for 4, 15, and 20 through some extensive google searches.

Any ideas what these mean?

Thanks in advance for your time!

Sincerely,
George Wietor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/libhid-discuss/attachments/20090531/f2bb63d8/attachment.htm>
Charles Lepple
2009-05-31 23:55:22 UTC
Permalink
Post by george wietor
I am working on my first libhid project, and have come across a few
return code errors that i don't know what to do with. Is there a
list or document that explains what exactly the libhid return codes
mean?
Use hid_strerror():

http://libhid.alioth.debian.org/doc/hid__presentation_8c-source.html#l00102

The return codes are enumerations, and part of the reason why there is
so little documentation on libhid is because it doesn't do a whole
lot. Most functions are less than a page long, and should be easy to
figure out.

Loading...