diff options
author | Christian Hergert <chergert@redhat.com> | 2016-10-28 18:29:02 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2016-11-22 14:14:37 -0800 |
commit | 18a33f72db6a410606674d8d53fb2dadb706091d (patch) | |
tree | d12312302fad79c562f796d250ede4b58c2e0b01 /gio/gtlscertificate.c | |
parent | a4012abbdf2c6c095ae34a97dca760b2446436aa (diff) | |
download | glib-18a33f72db6a410606674d8d53fb2dadb706091d.tar.gz |
introspection: use (nullable) or (optional) instead of (allow-none)
If we have an input parameter (or return value) we need to use (nullable).
However, if it is an (inout) or (out) parameter, (optional) is sufficient.
It looks like (nullable) could be used for everything according to the
Annotation documentation, but (optional) is more specific.
Diffstat (limited to 'gio/gtlscertificate.c')
-rw-r--r-- | gio/gtlscertificate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gio/gtlscertificate.c b/gio/gtlscertificate.c index e75ea2adf..b30ed1fd2 100644 --- a/gio/gtlscertificate.c +++ b/gio/gtlscertificate.c @@ -678,8 +678,8 @@ g_tls_certificate_get_issuer (GTlsCertificate *cert) /** * g_tls_certificate_verify: * @cert: a #GTlsCertificate - * @identity: (allow-none): the expected peer identity - * @trusted_ca: (allow-none): the certificate of a trusted authority + * @identity: (nullable): the expected peer identity + * @trusted_ca: (nullable): the certificate of a trusted authority * * This verifies @cert and returns a set of #GTlsCertificateFlags * indicating any problems found with it. This can be used to verify a |