mirror of
https://github.com/capstone-engine/capstone.git
synced 2025-02-13 02:33:34 +00:00
revert the cs_version() API
This commit is contained in:
parent
723fa80890
commit
36df4bb6a7
7
cs.c
7
cs.c
@ -32,6 +32,13 @@
|
||||
#define PKG_MAJOR 1
|
||||
#define PKG_MINOR 0
|
||||
|
||||
|
||||
void cs_version(int *major, int *minor)
|
||||
{
|
||||
*major = CS_API_MAJOR;
|
||||
*minor = CS_API_MINOR;
|
||||
}
|
||||
|
||||
cs_err cs_errno(csh handle)
|
||||
{
|
||||
if (!handle)
|
||||
|
@ -117,6 +117,16 @@ typedef enum cs_err {
|
||||
} cs_err;
|
||||
|
||||
|
||||
/*
|
||||
Return API version in major and minor numbers.
|
||||
|
||||
@major: major number of API version (for ex: 1)
|
||||
@minor: minor number of API version (for ex: 0)
|
||||
|
||||
For example, first API version would return 1 in @major, and 0 in @minor
|
||||
*/
|
||||
void cs_version(int *major, int *minor);
|
||||
|
||||
/*
|
||||
Initialize CS handle: this must be done before any usage of CS.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user