Skip to content

Commit c370d23

Browse files
WIP: generate with fixed array params
1 parent 8e5054e commit c370d23

File tree

16 files changed

+19
-19
lines changed

16 files changed

+19
-19
lines changed

gdk-pixbuf/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)

gdk-pixbuf/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)

gio/src/auto/functions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ pub fn content_type_get_symbolic_icon(type_: &str) -> Icon {
181181
#[doc(alias = "g_content_type_guess")]
182182
pub fn content_type_guess(
183183
filename: Option<impl AsRef<std::path::Path>>,
184-
data: &[u8],
184+
data: Option<&[u8]>,
185185
) -> (glib::GString, bool) {
186-
let data_size = data.len() as _;
186+
let data_size = data.map(|arr| arr.len()).unwrap_or(0) as _;
187187
unsafe {
188188
let mut result_uncertain = std::mem::MaybeUninit::uninit();
189189
let ret = from_glib_full(ffi::g_content_type_guess(

gio/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)

gio/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)

glib/gobject-sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)

glib/src/auto/functions.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ pub fn base64_decode(text: &str) -> Vec<u8> {
4242
//}
4343

4444
#[doc(alias = "g_base64_encode")]
45-
pub fn base64_encode(data: &[u8]) -> crate::GString {
46-
let len = data.len() as _;
45+
pub fn base64_encode(data: Option<&[u8]>) -> crate::GString {
46+
let len = data.map(|arr| arr.len()).unwrap_or(0) as _;
4747
unsafe { from_glib_full(ffi::g_base64_encode(data.to_glib_none().0, len)) }
4848
}
4949

@@ -757,7 +757,7 @@ pub fn spawn_async(
757757
//#[cfg(feature = "v2_68")]
758758
//#[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
759759
//#[doc(alias = "g_spawn_async_with_pipes_and_fds")]
760-
//pub fn spawn_async_with_pipes_and_fds(working_directory: Option<impl AsRef<std::path::Path>>, argv: &[&std::path::Path], envp: &[&std::path::Path], flags: SpawnFlags, child_setup: Option<Box_<dyn FnOnce() + 'static>>, stdin_fd: i32, stdout_fd: i32, stderr_fd: i32, source_fds: &[i32], target_fds: &[i32], n_fds: usize) -> Result<(Pid, i32, i32, i32), crate::Error> {
760+
//pub fn spawn_async_with_pipes_and_fds(working_directory: Option<impl AsRef<std::path::Path>>, argv: &[&std::path::Path], envp: &[&std::path::Path], flags: SpawnFlags, child_setup: Option<Box_<dyn FnOnce() + 'static>>, stdin_fd: i32, stdout_fd: i32, stderr_fd: i32, source_fds: Option<&[i32]>, target_fds: Option<&[i32]>, n_fds: usize) -> Result<(Pid, i32, i32, i32), crate::Error> {
761761
// unsafe { TODO: call ffi:g_spawn_async_with_pipes_and_fds() }
762762
//}
763763

glib/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)

glib/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)

0 commit comments

Comments
 (0)