Changeset 1108f3
- Timestamp:
- 03/06/12 13:58:31 (15 months ago)
- Branches:
- ('master', 'a231b56d57a69513303d0061f5fa3e3cd51c85c1')('controller-upgrade', '72b31cc86eeeef18f1371a3067b6e8a5ca21abfc')('windows_service_fixes', 'df6bd2788365991d36d5af2a75833b8de2a5860f')
- Children:
- 902c12d88d93b6cd0438380e4cce3a7ad409bbb1
- Parents:
- e921be65b427d1473693ad89d469c4e15449b773
- git-author:
- Erik Johansson <erik@ejohansson.se>2012-03-06 13:58:31+01:00
- git-committer:
- Erik Johansson <erik@ejohansson.se>2012-03-06 13:58:31+01:00
- Location:
- examples/python
- Files:
-
- 2 edited
-
callbacks.py (modified) (1 diff)
-
sensors/sensorscallback.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
examples/python/callbacks.py
r875bb2 r1108f3 59 59 60 60 if (platform.system() == 'Windows'): 61 CMPFUNC = WINFUNCTYPE( c_void_p, c_int, c_int, POINTER(c_ubyte), c_int, c_void_p) #first is return type62 CMPFUNCRAW = WINFUNCTYPE( c_void_p, POINTER(c_ubyte), c_int, c_int, c_void_p)61 CMPFUNC = WINFUNCTYPE(None, c_int, c_int, POINTER(c_ubyte), c_int, c_void_p) #first is return type 62 CMPFUNCRAW = WINFUNCTYPE(None, POINTER(c_ubyte), c_int, c_int, c_void_p) 63 63 else: 64 CMPFUNC = CFUNCTYPE( c_void_p, c_int, c_int, POINTER(c_ubyte), c_int, c_void_p)65 CMPFUNCRAW = CFUNCTYPE( c_void_p, POINTER(c_ubyte), c_int, c_int, c_void_p)64 CMPFUNC = CFUNCTYPE(None, c_int, c_int, POINTER(c_ubyte), c_int, c_void_p) 65 CMPFUNCRAW = CFUNCTYPE(None, POINTER(c_ubyte), c_int, c_int, c_void_p) 66 66 67 67 cmp_func = CMPFUNC(callbackfunction) -
examples/python/sensors/sensorscallback.py
rc1f357 r1108f3 30 30 31 31 if (platform.system() == 'Windows'): 32 CMPFUNC = WINFUNCTYPE( c_void_p, POINTER(c_ubyte), POINTER(c_ubyte), c_int, c_int, POINTER(c_ubyte), c_int, c_int, c_void_p) #first is return type32 CMPFUNC = WINFUNCTYPE(None, POINTER(c_ubyte), POINTER(c_ubyte), c_int, c_int, POINTER(c_ubyte), c_int, c_int, c_void_p) #first is return type 33 33 else: 34 CMPFUNC = CFUNCTYPE( c_void_p, POINTER(c_ubyte), POINTER(c_ubyte), c_int, c_int, POINTER(c_ubyte), c_int, c_int, c_void_p)34 CMPFUNC = CFUNCTYPE(None, POINTER(c_ubyte), POINTER(c_ubyte), c_int, c_int, POINTER(c_ubyte), c_int, c_int, c_void_p) 35 35 36 36 cmp_func = CMPFUNC(callbackfunction)
Note: See TracChangeset
for help on using the changeset viewer.
