[Forensics-changes] [yara] 402/407: Include version numbers in header files (issue #221)

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:28:49 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.3.0
in repository yara.

commit 4c0cdf96fa84b57b47644ec2bedc61659c4f0c41
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Tue Feb 10 11:53:49 2015 +0100

    Include version numbers in header files (issue #221)
---
 libyara/include/yara/libyara.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/libyara/include/yara/libyara.h b/libyara/include/yara/libyara.h
index 5ffb37a..4ca5fdb 100644
--- a/libyara/include/yara/libyara.h
+++ b/libyara/include/yara/libyara.h
@@ -19,6 +19,19 @@ limitations under the License.
 
 #include <yara/utils.h>
 
+#define YR_MAJOR_VERSION   3
+#define YR_MINOR_VERSION   3
+#define YR_MICRO_VERSION   0
+
+// Version as a string
+#define YR_VERSION         "3.3.0"
+
+// Version as a single 4-byte hex number, e.g. 0x030401 == 3.4.1.
+#define YR_VERSION_HEX ((YR_MAJOR_VERSION << 16) | \
+    (YR_MINOR_VERSION << 8) | \
+    (YR_MICRO_VERSION << 0)
+
+
 YR_API int yr_initialize(void);
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list