[Forensics-changes] [yara] 36/368: Exporting the library version to Python.

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:30:08 UTC 2017


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

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

commit 319c460edf8a4e26b7c87441a95a69720cabacb5
Author: Andreas Moser <amoser at google.com>
Date:   Tue Aug 25 21:07:25 2015 +0200

    Exporting the library version to Python.
---
 yara-python/yara-python.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/yara-python/yara-python.c b/yara-python/yara-python.c
index 9230c67..a39e8a0 100644
--- a/yara-python/yara-python.c
+++ b/yara-python/yara-python.c
@@ -1858,6 +1858,8 @@ MOD_INIT(yara)
 
   PyModule_AddIntConstant(m, "CALLBACK_CONTINUE", 0);
   PyModule_AddIntConstant(m, "CALLBACK_ABORT", 1);
+  PyModule_AddStringConstant(m, "YARA_VERSION", YR_VERSION);
+  PyModule_AddIntConstant(m, "YARA_VERSION_HEX", YR_VERSION_HEX);
 
 #if PYTHON_API_VERSION >= 1007
   YaraError = PyErr_NewException("yara.Error", PyExc_Exception, NULL);

-- 
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