python: update to reflect latest API change
diff --git a/bindings/python/capstone/capstone.py b/bindings/python/capstone/capstone.py
index 20b6e8c..1c20bbc 100644
--- a/bindings/python/capstone/capstone.py
+++ b/bindings/python/capstone/capstone.py
@@ -118,7 +118,7 @@
class _cs_insn(ctypes.Structure):
_fields_ = (
('id', ctypes.c_uint),
- ('address', ctypes.c_size_t),
+ ('address', ctypes.c_uint64),
('size', ctypes.c_uint16),
('mnemonic', ctypes.c_char * 32),
('op_str', ctypes.c_char * 96),
@@ -138,7 +138,7 @@
_setup_prototype(_cs, "cs_open", ctypes.c_int, ctypes.c_uint, ctypes.c_uint, ctypes.POINTER(ctypes.c_size_t))
_setup_prototype(_cs, "cs_disasm_dyn", ctypes.c_size_t, ctypes.c_size_t, ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, \
- ctypes.c_size_t, ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(_cs_insn)))
+ ctypes.c_uint64, ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(_cs_insn)))
_setup_prototype(_cs, "cs_free", None, ctypes.c_void_p)
_setup_prototype(_cs, "cs_close", ctypes.c_int, ctypes.POINTER(ctypes.c_size_t))
_setup_prototype(_cs, "cs_reg_name", ctypes.c_char_p, ctypes.c_size_t, ctypes.c_uint)
diff --git a/bindings/python/setup.py b/bindings/python/setup.py
index a92bb9a..355a74e 100644
--- a/bindings/python/setup.py
+++ b/bindings/python/setup.py
@@ -1,24 +1,24 @@
-#!/usr/bin/env python
-
-from distutils.core import setup
-
-VERSION = '0.9'
-
-setup(
- provides = ['capstone'],
- packages = ['capstone'],
- name = 'capstone',
- version = VERSION,
- author = 'Nguyen Anh Quynh',
- author_email = 'aquynh@gmail.com',
- description = 'Capstone disassembly engine',
- url = 'https://www.capstone-engine.org',
- #download_url = 'https://www.capstone-engine.org/files/capstone-0.9.zip',
- classifiers = [
- 'License :: OSI Approved :: BSD License',
- 'Development Status :: 4 - Beta',
- 'Programming Language :: Python :: 2',
- ],
-)
-
-
+#!/usr/bin/env python
+
+from distutils.core import setup
+
+VERSION = '1.0'
+
+setup(
+ provides = ['capstone'],
+ packages = ['capstone'],
+ name = 'capstone',
+ version = VERSION,
+ author = 'Nguyen Anh Quynh',
+ author_email = 'aquynh@gmail.com',
+ description = 'Capstone disassembly engine',
+ url = 'https://www.capstone-engine.org',
+ #download_url = 'https://www.capstone-engine.org/files/capstone-0.9.zip',
+ classifiers = [
+ 'License :: OSI Approved :: BSD License',
+ 'Development Status :: 4 - Beta',
+ 'Programming Language :: Python :: 2',
+ ],
+)
+
+