diff options
Diffstat (limited to 'src/analysis/scan/patterns/token-int.h')
-rw-r--r-- | src/analysis/scan/patterns/token-int.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/analysis/scan/patterns/token-int.h b/src/analysis/scan/patterns/token-int.h index 294a3b1..f1d63f0 100644 --- a/src/analysis/scan/patterns/token-int.h +++ b/src/analysis/scan/patterns/token-int.h @@ -32,19 +32,17 @@ -/* Inscrit la définition d'un motif dans un moteur de recherche. */ -typedef bool (* enroll_token_fc) (GStringToken *, GScanContext *, GEngineBackend *, size_t); - -/* Transforme les correspondances locales en trouvailles. */ -typedef void (* check_token_fc) (const GStringToken *, GScanContext *, GBinContent *, pending_matches_t *); - - /* Encadrement d'une bribe de recherche textuelle (instance) */ struct _GStringToken { GSearchPattern parent; /* A laisser en premier */ GScanTokenNode *root; /* Motif à rechercher */ + size_t slow; /* Surcoût du motif */ + bool need_backward; /* Besoin d'une seconde passe */ + + bool fullword; /* Cible de mots entiers ? */ + bool private; /* Vocation privée ? */ }; @@ -53,14 +51,11 @@ struct _GStringTokenClass { GSearchPatternClass parent; /* A laisser en premier */ - enroll_token_fc enroll; /* Inscription d'un motif */ - check_token_fc check; /* Conversion en trouvailles */ - }; /* Met en place un gestionnaire de recherche de binaire. */ -bool g_string_token_create(GStringToken *, GScanTokenNode *); +bool g_string_token_create(GStringToken *, GScanTokenNode *, bool, bool); |