Implement scanner API.

A new set of functions yr_scanner_* has been added to the API. The purpose of these functions is providing a way for using the same YR_RULES object with different sets of values for external variables. With the existing yr_rules_scan_* functions all clients sharing a YR_RULES object were forced to use the same set of values for externals variables, because the external variables were associated to the YR_RULES object. With the new API each client can create a separate YR_SCANNER to be used with the same YR_RULES object. Each YR_SCANNER can have its own set of external variables. The existing API keeps working as usual.
This commit is contained in:
Victor M. Alvarez
2018-01-31 17:32:08 +01:00
committed by GitHub
parent d436178c64
commit be0fc3f52f
14 changed files with 847 additions and 348 deletions
+1
View File
@@ -217,6 +217,7 @@
<ClCompile Include="..\..\..\libyara\re_lexer.c" />
<ClCompile Include="..\..\..\libyara\rules.c" />
<ClCompile Include="..\..\..\libyara\scan.c" />
<ClCompile Include="..\..\..\libyara\scanner.c" />
<ClCompile Include="..\..\..\libyara\sizedstr.c" />
<ClCompile Include="..\..\..\libyara\stream.c" />
<ClCompile Include="..\..\..\libyara\strutils.c" />