add UC_VERSION_{MAJOR, MINOR, EXTRA}

This commit is contained in:
Nguyen Anh Quynh
2016-10-25 14:37:47 +08:00
parent c59e06d798
commit 7a1930a879
6 changed files with 27 additions and 1 deletions

View File

@ -71,7 +71,7 @@ for _path in _path_list:
else:
raise ImportError("ERROR: fail to load the dynamic library.")
__version__ = "%s.%s" % (uc.UC_API_MAJOR, uc.UC_API_MINOR)
__version__ = "%u.%u.%u" % (uc.UC_VERSION_MAJOR, uc.UC_VERSION_MINOR, uc.UC_VERSION_EXTRA)
# setup all the function prototype
def _setup_prototype(lib, fname, restype, *argtypes):

View File

@ -2,6 +2,11 @@
UC_API_MAJOR = 1
UC_API_MINOR = 0
UC_VERSION_MAJOR = 1
UC_VERSION_MINOR = 0
UC_VERSION_EXTRA = 0
UC_SECOND_SCALE = 1000000
UC_MILISECOND_SCALE = 1000
UC_ARCH_ARM = 1