[libhid-discuss] HID_RET_TIMEOUT missing from the python libhid wrapper?

Gabriel Rossetti gabriel.rossetti at arimaz.com
Wed Sep 30 08:38:02 UTC 2009


Charles Lepple wrote:
> 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.
Ok, I added it like it's done in C, thanks



More information about the libhid-discuss mailing list