diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-08-18 00:07:39 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-08-18 00:07:39 (GMT) |
commit | 2424c52c4f3bc44ce5f36348442cfa103e0989c2 (patch) | |
tree | f68aea488f403b234d4fcc6fd6e0f7b88a628ac8 /src/analysis/scan/pattern.h | |
parent | 1c5a0e67186def152536d9c506e2e6c3a3a265c5 (diff) |
Create some modifiers and handle match properties inside ROST.
Diffstat (limited to 'src/analysis/scan/pattern.h')
-rw-r--r-- | src/analysis/scan/pattern.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/analysis/scan/pattern.h b/src/analysis/scan/pattern.h index 9ea66d3..0e4327d 100644 --- a/src/analysis/scan/pattern.h +++ b/src/analysis/scan/pattern.h @@ -30,9 +30,14 @@ #include "../../arch/archbase.h" #include "../../arch/vmpa.h" +#include "../../common/szstr.h" +/* Depuis context.h: contexte de suivi d'une analyse en cours (instance) */ +typedef struct _GScanContext GScanContext; +; + #define G_TYPE_SEARCH_PATTERN g_search_pattern_get_type() #define G_SEARCH_PATTERN(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_SEARCH_PATTERN, GSearchPattern)) #define G_IS_SEARCH_PATTERN(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), G_TYPE_SEARCH_PATTERN)) @@ -57,8 +62,17 @@ const char *g_search_pattern_get_name(const GSearchPattern *); /* Inscrit la désignation attribuée à un motif de recherche. */ void g_search_pattern_set_name(GSearchPattern *, const char *, size_t); -/* Décompte le nombre de correspondances identifiées. */ -size_t g_search_pattern_count_matchs(const GSearchPattern *); +/* Affiche un motif de recherche au format texte. */ +void g_search_pattern_output_to_text(const GSearchPattern *, GScanContext *, int); + +/* Convertit un motif de recherche en texte. */ +void g_search_pattern_convert_as_text(const GSearchPattern *, GScanContext *); + +/* Affiche un motif de recherche au format JSON. */ +void g_search_pattern_output_to_json(const GSearchPattern *, GScanContext *, const sized_string_t *, unsigned int, int, bool); + +/* Convertit un motif de recherche en JSON. */ +void g_search_pattern_convert_as_json(const GSearchPattern *, GScanContext *); |