Skip to content

Commit 26aab58

Browse files
committed
Manual updates for MR#1622
* [`gdk_pixbuf_format_get_extensions`] > The array is `NULL`-terminated. * [`gdk_pixbuf_format_get_mime_types`] > The array is `NULL`-terminated. * [`g_dbus_proxy_get_cached_property_names`] > [...] `NULL` if the value is not in the cache. * [`g_file_info_list_attributes`] > [...] `NULL` on error. ==> but NULL as an error is only used for the case where `FileInfo` is NULL, which is not possible in Rust. * [`g_tls_certificate_get_dns_names`] > [...] `NULL` if it’s not available. * [`g_tls_certificate_get_ip_addresses`] > [...] `NULL` if it’s not available. * [`pango_font_get_languages`] > The array is `NULL`-terminated. * [`pango_font_face_list_sizes`] > This is only applicable to bitmap fonts. For scalable fonts, stores `NULL` at the location pointed to by sizes and `0` at the location pointed to by `n_sizes`. * [`pango_language_get_preferred`](https://docs.gtk.org/Pango/type_func.Language.get_preferred.html) > The array is `NULL`-terminated. [`gdk_pixbuf_format_get_extensions`]: https://docs.gtk.org/gdk-pixbuf/method.PixbufFormat.get_extensions.html [`gdk_pixbuf_format_get_mime_types`]: https://docs.gtk.org/gdk-pixbuf/method.PixbufFormat.get_mime_types.html [`g_dbus_proxy_get_cached_property_names`]: https://docs.gtk.org/gio/method.DBusProxy.get_cached_property.html [`g_file_info_list_attributes`]: https://docs.gtk.org/gio/method.FileInfo.list_attributes.html [`g_tls_certificate_get_dns_names`]: https://docs.gtk.org/gio/method.TlsCertificate.get_dns_names.html [`g_tls_certificate_get_ip_addresses`]: https://docs.gtk.org/gio/method.TlsCertificate.get_ip_addresses.html [`pango_font_get_languages`]: https://docs.gtk.org/Pango/method.Font.get_languages.html [`pango_font_face_list_sizes`]: https://docs.gtk.org/Pango/method.FontFace.list_sizes.html [`pango_language_get_preferred`]: https://docs.gtk.org/Pango/type_func.Language.get_preferred.html
1 parent b0dee47 commit 26aab58

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

gdk-pixbuf/Gir.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,13 @@ concurrency = "send+sync"
176176
[[object.function.parameter]]
177177
name = "format"
178178
const = true
179+
[[object.function]]
180+
name = "get_extensions"
181+
[object.function.return]
182+
# The array is `NULL`-terminated
183+
nullable = false
184+
[[object.function]]
185+
name = "get_mime_types"
186+
[object.function.return]
187+
# The array is `NULL`-terminated
188+
nullable = false

gio/Gir.toml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ generate = [
143143
"Gio.TestDBusFlags",
144144
"Gio.TlsAuthenticationMode",
145145
"Gio.TlsBackend",
146-
"Gio.TlsCertificate",
147146
"Gio.TlsCertificateRequestFlags",
148147
"Gio.TlsChannelBindingError",
149148
"Gio.TlsClientConnection",
@@ -931,6 +930,11 @@ status = "generate"
931930
name = "set_attribute_stringv"
932931
# use strv
933932
manual = true
933+
[[object.function]]
934+
name = "list_attributes"
935+
[object.function.return]
936+
# `NULL` on error it's only used for the case where `FileInfo` is NULL, which is not possible in Rust.
937+
nullable = false
934938

935939
[[object]]
936940
name = "Gio.FilterOutputStream"
@@ -1496,6 +1500,20 @@ status = "generate"
14961500
# Better to provide None than -1 when you don't want to specify the number of threads
14971501
manual = true
14981502

1503+
[[object]]
1504+
name = "Gio.TlsCertificate"
1505+
status = "generate"
1506+
[[object.function]]
1507+
name = "get_dns_names"
1508+
[object.function.return]
1509+
# `NULL` if it’s not available.
1510+
nullable = true
1511+
[[object.function]]
1512+
name = "get_ip_addresses"
1513+
[object.function.return]
1514+
# `NULL` if it’s not available.
1515+
nullable = true
1516+
14991517
[[object]]
15001518
name = "Gio.TlsCertificateFlags"
15011519
status = "generate"

0 commit comments

Comments
 (0)