-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Binding changes for binding authors version 2.1
This page details all the changes affecting the bindings, so binding authors only need to look into here to update theirs.
- API change: cs_close() changes from
cs_err cs_close(csh handle);
to
cs_err cs_close(csh *handle);
Internally, this API invalidates handle after cs_close(). This is to make sure it is impossible to (wrongly) continue to use other APIs after that.
-
Diet mode added CS_SUPPORT_DIET & CS_ERR_DIET error code.
CS_ERR_DIET = 10
CS_SUPPORT_DIET = (0xFFFF+1) // CS_SUPPORT_DIET is of int type.
-
API version bumped to 2.1, so all bindings should update their info.
-
PPC update (see include/ppc.h):
https://github.com/aquynh/capstone/commit/8b915ed765d7d755c2902c3efee44622b203ef62
-
Mips update (see include/mips.h):
https://github.com/aquynh/capstone/commit/bc0b3b92fdea909479d36031eddca8f181baa752
-
X86 update (see include/x86.h):
https://github.com/aquynh/capstone/commit/13f40d26a2572bd6938a4e508a6133720cb6d967
https://github.com/aquynh/capstone/commit/9dfdae64216c002cc1b774cbca8ec28526b374e8
-
Make sure to verify binding version with core version (best to do this in open function, before doing anything else). See example in Python binding:
https://github.com/aquynh/capstone/commit/590d1cfd9acc0ac7155ae23b37d3fe154660e041
-
Added new error code CS_ERR_VERSION to report out-of-sync version between binding & core
CS_ERR_VERSION = 9
See https://github.com/aquynh/capstone/commit/4f220287d1944db17891dc992161604f16b565fe