Skip to content

Commit

Permalink
glib: Ignore new unsafe functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Mar 9, 2024
1 parent 902fdee commit e96fc64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
3 changes: 3 additions & 0 deletions glib/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ status = "generate"
pattern = "(clear_handle_id|clear_list|clear_pointer|clear_slist|clear_error|nullify_pointer)"
ignore = true # Not useful freeing functions
[[object.function]]
pattern = "(fdwalk_set_cloexec|closefrom)"
ignore = true # unsafe
[[object.function]]
pattern = "(datalist_.*|dataset_.*)"
ignore = true # Not useful GData related functions
[[object.function]]
Expand Down
14 changes: 0 additions & 14 deletions glib/src/auto/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,6 @@ pub fn check_version(
}
}

#[cfg(feature = "v2_80")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
#[doc(alias = "g_closefrom")]
pub fn closefrom(lowfd: i32) -> i32 {
unsafe { ffi::g_closefrom(lowfd) }
}

#[doc(alias = "g_compute_checksum_for_bytes")]
pub fn compute_checksum_for_bytes(
checksum_type: ChecksumType,
Expand Down Expand Up @@ -194,13 +187,6 @@ pub fn dpgettext2(domain: Option<&str>, context: &str, msgid: &str) -> crate::GS
}
}

#[cfg(feature = "v2_80")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
#[doc(alias = "g_fdwalk_set_cloexec")]
pub fn fdwalk_set_cloexec(lowfd: i32) -> i32 {
unsafe { ffi::g_fdwalk_set_cloexec(lowfd) }
}

#[doc(alias = "g_file_set_contents")]
pub fn file_set_contents(
filename: impl AsRef<std::path::Path>,
Expand Down

0 comments on commit e96fc64

Please sign in to comment.