summaryrefslogtreecommitdiff
path: root/src/analysis/scan/exprs/handler-int.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis/scan/exprs/handler-int.h')
-rw-r--r--src/analysis/scan/exprs/handler-int.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/analysis/scan/exprs/handler-int.h b/src/analysis/scan/exprs/handler-int.h
index f707fdb..e051b30 100644
--- a/src/analysis/scan/exprs/handler-int.h
+++ b/src/analysis/scan/exprs/handler-int.h
@@ -37,7 +37,14 @@ struct _GScanPatternHandler
{
GScanExpression parent; /* A laisser en premier */
- GSearchPattern *pattern; /* Motif associé */
+ union
+ {
+ const GSearchPattern **patterns; /* Motifs associés */
+ GSearchPattern **ref_patterns; /* Motifs associés */
+ };
+ size_t count; /* Nombre de ces motifs */
+ bool shared; /* Définition de propriété */
+
ScanHandlerType type; /* Manipulation attendue */
};
@@ -51,7 +58,10 @@ struct _GScanPatternHandlerClass
/* Met en place une manipulation de correspondances établies. */
-bool g_scan_pattern_handler_create(GScanPatternHandler *, GSearchPattern *, ScanHandlerType);
+bool g_scan_pattern_handler_create_shared(GScanPatternHandler *, const GSearchPattern ** const, size_t, ScanHandlerType);
+
+/* Met en place une manipulation de correspondances établies. */
+bool g_scan_pattern_handler_create_and_ref(GScanPatternHandler *, GSearchPattern ** const, size_t, ScanHandlerType);