Commit 274d6da8 by Caleb Fenton Committed by Victor M. Alvarez

Add rule, rules, match as module object (#102)

parent 9c590726
......@@ -2372,6 +2372,10 @@ MOD_INIT(yara)
if (PyType_Ready(&Match_Type) < 0)
return MOD_ERROR_VAL;
PyModule_AddObject(m, "Rule", &Rule_Type);
PyModule_AddObject(m, "Rules", &Rules_Type);
PyModule_AddObject(m, "Match", &Match_Type);
PyModule_AddObject(m, "Error", YaraError);
PyModule_AddObject(m, "SyntaxError", YaraSyntaxError);
PyModule_AddObject(m, "TimeoutError", YaraTimeoutError);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment