diff options
Diffstat (limited to 'src/analysis/scan/pattern-int.h')
-rw-r--r-- | src/analysis/scan/pattern-int.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/analysis/scan/pattern-int.h b/src/analysis/scan/pattern-int.h index 03af30f..b510c75 100644 --- a/src/analysis/scan/pattern-int.h +++ b/src/analysis/scan/pattern-int.h @@ -28,9 +28,15 @@ #include "pattern.h" +#include "context.h" -/* Décompte le nombre de correspondances identifiées. */ -typedef size_t (* count_pattern_matchs_fc) (const GSearchPattern *); + + +/* Affiche un motif de recherche au format texte. */ +typedef void (* output_pattern_to_text_fc) (const GSearchPattern *, GScanContext *, int); + +/* Affiche un motif de recherche au format JSON. */ +typedef void (* output_pattern_to_json_fc) (const GSearchPattern *, GScanContext *, const sized_string_t *, unsigned int, int); /* Motif à rechercher au sein d'un contenu (instance) */ @@ -47,7 +53,8 @@ struct _GSearchPatternClass { GObjectClass parent; /* A laisser en premier */ - count_pattern_matchs_fc count; /* Décompte des résultats */ + output_pattern_to_text_fc to_text; /* Impression au format texte */ + output_pattern_to_json_fc to_json; /* Impression au format JSON */ }; |