diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-04-08 20:04:03 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2021-07-29 11:19:01 +0100 |
commit | 6243afd9f89bd5b375868f4de21b582fa84bec55 (patch) | |
tree | 8787f88d58ebe9a24418bab7819c6939c08a5f35 /giscanner/annotationparser.py | |
parent | 793b46cc0458da6c04a8037db6aabb10f4409c21 (diff) | |
download | gobject-introspection-6243afd9f89bd5b375868f4de21b582fa84bec55.tar.gz |
Add "forever" scopescope-forever
Some functions are meant to exist for the entire duration of the
process, and thus have no need for a notification function because
one will never be called.
Fixes: #49
Diffstat (limited to 'giscanner/annotationparser.py')
-rw-r--r-- | giscanner/annotationparser.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py index 267542f9..a6542332 100644 --- a/giscanner/annotationparser.py +++ b/giscanner/annotationparser.py @@ -278,10 +278,12 @@ NOT_OPTIONS = [OPT_NOT_NULLABLE] OPT_SCOPE_ASYNC = 'async' OPT_SCOPE_CALL = 'call' OPT_SCOPE_NOTIFIED = 'notified' +OPT_SCOPE_FOREVER = 'forever' SCOPE_OPTIONS = [OPT_SCOPE_ASYNC, OPT_SCOPE_CALL, - OPT_SCOPE_NOTIFIED] + OPT_SCOPE_NOTIFIED, + OPT_SCOPE_FOREVER] # (transfer) annotation options OPT_TRANSFER_CONTAINER = 'container' |