[libhid-discuss] HID_RET_TIMEOUT missing from the python libhid wrapper?
Charles Lepple
clepple at ghz.cc
Thu Sep 10 01:19:55 UTC 2009
On Sep 9, 2009, at 9:56 AM, Gabriel Rossetti wrote:
> Charles Lepple wrote:
>> On Sep 9, 2009, at 7:56 AM, Gabriel Rossetti wrote:
>>
>>> Hello everyone,
>>>
>>> Why is missing from the python libhid wrapper?
>>
>> Please be more specific.
>>
>> What version of libhid?
>>
>> Did you compile from source?
>>
>> If not, what OS, and which distribution?
>
> Yes, sorry, I use version 0.2.15+20060325-2.1 (ubuntu 8.04),
> installed using aptitude
It does not appear that this version had HID_RET_TIMEOUT in the C
code, either. It must have been added later.
In Python, you should be able to check and see if that constant is
defined, and if not, assign it a value such as 'None' which will not
match any of the return codes.
More information about the libhid-discuss
mailing list