summaryrefslogtreecommitdiff
path: root/src/analysis/scan/scanner.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-08-06 16:54:57 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-08-06 16:54:57 (GMT)
commit4fcc35a52ccb025b6d803d85e017931cd2452960 (patch)
treee95920f16c273e41f9cae1ea2f02571c221a514e /src/analysis/scan/scanner.h
parent74d062d4ec55d7ac3914bbf64b8b6c5ab52227df (diff)
Extend the ROST grammar with a first batch of new features.
Diffstat (limited to 'src/analysis/scan/scanner.h')
-rw-r--r--src/analysis/scan/scanner.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/analysis/scan/scanner.h b/src/analysis/scan/scanner.h
index 8a3919a..f838344 100644
--- a/src/analysis/scan/scanner.h
+++ b/src/analysis/scan/scanner.h
@@ -59,19 +59,18 @@ GContentScanner *g_content_scanner_new_from_text(const char *);
/* Prépare une recherche de motifs dans du contenu binaire. */
GContentScanner *g_content_scanner_new_from_file(const char *);
+/* Indique le chemin d'un éventuel fichier de source. */
+const char *g_content_scanner_get_filename(const GContentScanner *);
+
+/* Inclut les définitions d'un fichier de règles externe. */
+bool g_content_scanner_include_resource(GContentScanner *, const char *);
+
/* Intègre une nouvelle règle de détection. */
-void g_content_scanner_add_rule(GContentScanner *, GScanRule *);
+bool g_content_scanner_add_rule(GContentScanner *, GScanRule *);
/* Définit l'expression d'une correspondance recherchée. */
GScanContext *g_content_scanner_analyze(GContentScanner *, GScanOptions *, GBinContent *);
-
-
-/* Lance une analyse d'un élément, fichier ou répertoire. */
-//void g_content_scanner_analyze(GContentScanner *, const char *);
-
-
-
#endif /* _ANALYSIS_SCAN_SCANNER_H */