diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2024-02-20 08:11:17 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2024-02-20 08:11:17 (GMT) |
commit | 26f93f593542cc550107744e92f95e9516e7435e (patch) | |
tree | 058cf883324274965356beb42398c387c0e49217 /src/analysis/scan/matches-int.h | |
parent | 30e56f25772247d76c7775d32ccd5b5a0661d3bf (diff) |
Share GObject instances between scan contexts and matches.
Diffstat (limited to 'src/analysis/scan/matches-int.h')
-rw-r--r-- | src/analysis/scan/matches-int.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/analysis/scan/matches-int.h b/src/analysis/scan/matches-int.h index 674fe03..4e6a244 100644 --- a/src/analysis/scan/matches-int.h +++ b/src/analysis/scan/matches-int.h @@ -44,7 +44,13 @@ struct _GScanMatches { GObject parent; /* A laisser en premier */ - GSearchPattern *source; /* Motif d'origine recherché */ + /** + * L'aspect constant des instances marque seulement le fait que les + * pointeurs sont partagés avec un contexte, qui est le réel propriétaire + * de ces instances. + */ + const GScanContext *context; /* Contexte de rattachement */ + const GSearchPattern *source; /* Motif d'origine recherché */ }; |