diff options
author | Justin Berger <j.david.berger@gmail.com> | 2018-04-05 08:39:25 -0600 |
---|---|---|
committer | Justin Berger <j.david.berger@gmail.com> | 2018-04-05 08:39:25 -0600 |
commit | 0653df1da7364e75953eea85e92d23f2b41480be (patch) | |
tree | d723f4d7ddaf647089c52bf75da6d7c8cd1528df | |
parent | 9e1883922de980c01e60bde10c1e67261752afa6 (diff) | |
download | libsurvive-0653df1da7364e75953eea85e92d23f2b41480be.tar.gz libsurvive-0653df1da7364e75953eea85e92d23f2b41480be.tar.bz2 |
Fixed naming in python binding
-rw-r--r-- | bindings/python/libsurvive.py | 12 |
1 files 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): |