Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: generate with fixed array params #1318

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gdk-pixbuf/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)
2 changes: 1 addition & 1 deletion gdk-pixbuf/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)
4 changes: 2 additions & 2 deletions gio/src/auto/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ pub fn content_type_get_symbolic_icon(type_: &str) -> Icon {
#[doc(alias = "g_content_type_guess")]
pub fn content_type_guess(
filename: Option<impl AsRef<std::path::Path>>,
data: &[u8],
data: Option<&[u8]>,
) -> (glib::GString, bool) {
let data_size = data.len() as _;
let data_size = data.map(|arr| arr.len()).unwrap_or(0) as _;
unsafe {
let mut result_uncertain = std::mem::MaybeUninit::uninit();
let ret = from_glib_full(ffi::g_content_type_guess(
Expand Down
2 changes: 1 addition & 1 deletion gio/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)
2 changes: 1 addition & 1 deletion gio/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)
2 changes: 1 addition & 1 deletion gir
2 changes: 1 addition & 1 deletion glib/gobject-sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)
6 changes: 3 additions & 3 deletions glib/src/auto/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ pub fn base64_decode(text: &str) -> Vec<u8> {
//}

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

Expand Down Expand Up @@ -757,7 +757,7 @@ pub fn spawn_async(
//#[cfg(feature = "v2_68")]
//#[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
//#[doc(alias = "g_spawn_async_with_pipes_and_fds")]
//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> {
//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> {
// unsafe { TODO: call ffi:g_spawn_async_with_pipes_and_fds() }
//}

Expand Down
2 changes: 1 addition & 1 deletion glib/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)
2 changes: 1 addition & 1 deletion glib/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)
2 changes: 1 addition & 1 deletion graphene/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)
2 changes: 1 addition & 1 deletion graphene/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)
2 changes: 1 addition & 1 deletion pango/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)
2 changes: 1 addition & 1 deletion pango/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)
2 changes: 1 addition & 1 deletion pangocairo/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)
2 changes: 1 addition & 1 deletion pangocairo/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393)
Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393+)
from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4)
Loading