summaryrefslogtreecommitdiff
path: root/src/analysis/scan/pattern.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis/scan/pattern.h')
-rw-r--r--src/analysis/scan/pattern.h18
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 *);