summaryrefslogtreecommitdiffstats
path: root/cython/stdint.pxi
diff options
context:
space:
mode:
authorGravatar Bryan Forbes2010-05-13 09:41:12 -0500
committerGravatar Martin Szulecki2012-03-20 23:25:55 +0100
commit7d4a26663a812c383738fc6390759266851cf953 (patch)
treec765b16c60909f49d935f0705049e6ab155cb9e7 /cython/stdint.pxi
parent3877711296cbfa4a0bcafc3c5560609a1ce2d079 (diff)
downloadlibimobiledevice-7d4a26663a812c383738fc6390759266851cf953.tar.gz
libimobiledevice-7d4a26663a812c383738fc6390759266851cf953.tar.bz2
Python bindings for new sync interface.
Diffstat (limited to 'cython/stdint.pxi')
-rw-r--r--cython/stdint.pxi6
1 files changed, 6 insertions, 0 deletions
diff --git a/cython/stdint.pxi b/cython/stdint.pxi
index 2617dec..f9e5e95 100644
--- a/cython/stdint.pxi
+++ b/cython/stdint.pxi
@@ -4,9 +4,15 @@ cdef extern from *:
ctypedef unsigned short int uint16_t
ctypedef unsigned int uint32_t
ctypedef int int32_t
+ ctypedef long int time_t
IF UNAME_MACHINE == 'x86_64':
ctypedef long int int64_t
ctypedef unsigned long int uint64_t
ELSE:
ctypedef long long int int64_t
ctypedef unsigned long long int uint64_t
+
+cdef extern from "time.h":
+ cdef struct timeval:
+ time_t tv_sec
+ time_t tv_usec