revert the cs_version() API
diff --git a/cs.c b/cs.c
index 58a1a8c..b517f4e 100644
--- a/cs.c
+++ b/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)
diff --git a/include/capstone.h b/include/capstone.h
index 76b3843..7787406 100644
--- a/include/capstone.h
+++ b/include/capstone.h
@@ -118,6 +118,16 @@
/*
+ 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.
@arch: architecture type (CS_ARCH_*)