summaryrefslogtreecommitdiff
path: root/src/analysis/scan/matches/bytes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis/scan/matches/bytes.c')
-rw-r--r--src/analysis/scan/matches/bytes.c51
1 files changed, 28 insertions, 23 deletions
diff --git a/src/analysis/scan/matches/bytes.c b/src/analysis/scan/matches/bytes.c
index 218121d..a23188b 100644
--- a/src/analysis/scan/matches/bytes.c
+++ b/src/analysis/scan/matches/bytes.c
@@ -56,6 +56,9 @@ static void g_scan_bytes_matches_finalize(GScanBytesMatches *);
/* --------------------- IMPLEMENTATION DES FONCTIONS DE CLASSE --------------------- */
+/* Dénombre les correspondances enregistrées pour un motif. */
+static size_t g_scan_bytes_matches_count(const GScanBytesMatches *);
+
/* Affiche une correspondance au format texte. */
static void g_scan_bytes_matches_output_to_text(const GScanBytesMatches *, int);
@@ -97,6 +100,8 @@ static void g_scan_bytes_matches_class_init(GScanBytesMatchesClass *klass)
matches = G_SCAN_MATCHES_CLASS(klass);
+ matches->count = (count_scan_matches_fc)g_scan_bytes_matches_count;
+
matches->to_text = (output_scan_matches_to_text_fc)g_scan_bytes_matches_output_to_text;
matches->to_json = (output_scan_matches_to_json_fc)g_scan_bytes_matches_output_to_json;
@@ -210,29 +215,6 @@ void g_scan_bytes_matches_set_list(GScanBytesMatches *matches, match_area_t *lis
/******************************************************************************
* *
* Paramètres : matches = suivi de correspondances à consulter. *
-* *
-* Description : Indique le nombre de correspondances pour une définition. *
-* *
-* Retour : Quantité de correspondances établies pour un motif entier. *
-* *
-* Remarques : - *
-* *
-******************************************************************************/
-
-size_t g_scan_bytes_matches_count(const GScanBytesMatches *matches)
-{
- size_t result; /* Quantité à retourner */
-
- result = matches->count;
-
- return result;
-
-}
-
-
-/******************************************************************************
-* *
-* Paramètres : matches = suivi de correspondances à consulter. *
* index = indice de la correspondance recherchée. *
* *
* Description : Fournit les informations relatives à une correspondance. *
@@ -337,6 +319,29 @@ char *g_scan_bytes_matches_get_modifier_path(const GScanBytesMatches *matches)
/******************************************************************************
* *
+* Paramètres : matches = suivi de correspondances à consulter. *
+* *
+* Description : Dénombre les correspondances enregistrées pour un motif. *
+* *
+* Retour : Quantité de correspondances établies. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+static size_t g_scan_bytes_matches_count(const GScanBytesMatches *matches)
+{
+ size_t result; /* Quantité à retourner */
+
+ result = matches->count;
+
+ return result;
+
+}
+
+
+/******************************************************************************
+* *
* Paramètres : matches = définition de correspondance à manipuler. *
* fd = canal d'écriture. *
* *