bindings/python: Use more appropriate data types
commite9c07535b25fa53dfa5d5fd6850bfc547e1de8a1
authorAlberto Bertogli <albertito@blitiri.com.ar>
Sat, 26 Feb 2011 23:11:12 +0000 (26 23:11 +0000)
committerAlberto Bertogli <albertito@blitiri.com.ar>
Sun, 27 Feb 2011 21:23:26 +0000 (27 21:23 +0000)
tree3be0b51378cc6099348e901d5470116f300a6268
parent2c51596edc7bb67a0be4c692b9f66c3c250feb07
bindings/python: Use more appropriate data types

In the bindings we often used long instead of either ssize_t or int, specially
for return values.

This patch changes the definitions to match the appropriate data type, and
adds checks for some cases where we need to do so in Python (e.g. we convert
to (signed) long long and use it as an (unsigned) off_t).

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
bindings/python/libjio.c