From 0653df1da7364e75953eea85e92d23f2b41480be Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Thu, 5 Apr 2018 08:39:25 -0600 Subject: Fixed naming in python binding --- bindings/python/libsurvive.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bindings/python/libsurvive.py b/bindings/python/libsurvive.py index 1cf9b67..e88657a 100644 --- a/bindings/python/libsurvive.py +++ b/bindings/python/libsurvive.py @@ -7,11 +7,11 @@ LP_LP_c_char = ctypes.POINTER(LP_c_char) _libsurvive.survive_async_init.argtypes = (ctypes.c_int, LP_LP_c_char) # argc, argv _libsurvive.survive_async_init.restype = ctypes.c_void_p -_libsurvive.survive_async_get_next_tracked.argtypes = [ctypes.c_void_p, ctypes.c_void_p] -_libsurvive.survive_async_get_next_tracked.restype = ctypes.c_void_p +_libsurvive.survive_async_get_next_object.argtypes = [ctypes.c_void_p, ctypes.c_void_p] +_libsurvive.survive_async_get_next_object.restype = ctypes.c_void_p -_libsurvive.survive_async_get_first_tracked.argtypes = [ctypes.c_void_p] -_libsurvive.survive_async_get_first_tracked.restype = ctypes.c_void_p +_libsurvive.survive_async_get_first_object.argtypes = [ctypes.c_void_p] +_libsurvive.survive_async_get_first_object.restype = ctypes.c_void_p _libsurvive.survive_async_get_next_updated.argtypes = [ctypes.c_void_p] _libsurvive.survive_async_get_next_updated.restype = ctypes.c_void_p @@ -63,10 +63,10 @@ class AsyncContext: self.ptr = _libsurvive.survive_async_init(argc, argv) self.objects = [] - curr = _libsurvive.survive_async_get_first_tracked(self.ptr); + curr = _libsurvive.survive_async_get_first_object(self.ptr); while curr: self.objects.append(AsyncObject(curr)) - curr = _libsurvive.survive_async_get_next_tracked(self.ptr, curr); + curr = _libsurvive.survive_async_get_next_object(self.ptr, curr); _libsurvive.survive_async_start_thread(self.ptr) def Objects(self): -- cgit v1.2.3