Skip to content

Commit e96fc64

Browse files
glib: Ignore new unsafe functions
1 parent 902fdee commit e96fc64

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

Diff for: glib/Gir.toml

+3
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ status = "generate"
101101
pattern = "(clear_handle_id|clear_list|clear_pointer|clear_slist|clear_error|nullify_pointer)"
102102
ignore = true # Not useful freeing functions
103103
[[object.function]]
104+
pattern = "(fdwalk_set_cloexec|closefrom)"
105+
ignore = true # unsafe
106+
[[object.function]]
104107
pattern = "(datalist_.*|dataset_.*)"
105108
ignore = true # Not useful GData related functions
106109
[[object.function]]

Diff for: glib/src/auto/functions.rs

-14
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,6 @@ pub fn check_version(
6969
}
7070
}
7171

72-
#[cfg(feature = "v2_80")]
73-
#[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
74-
#[doc(alias = "g_closefrom")]
75-
pub fn closefrom(lowfd: i32) -> i32 {
76-
unsafe { ffi::g_closefrom(lowfd) }
77-
}
78-
7972
#[doc(alias = "g_compute_checksum_for_bytes")]
8073
pub fn compute_checksum_for_bytes(
8174
checksum_type: ChecksumType,
@@ -194,13 +187,6 @@ pub fn dpgettext2(domain: Option<&str>, context: &str, msgid: &str) -> crate::GS
194187
}
195188
}
196189

197-
#[cfg(feature = "v2_80")]
198-
#[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
199-
#[doc(alias = "g_fdwalk_set_cloexec")]
200-
pub fn fdwalk_set_cloexec(lowfd: i32) -> i32 {
201-
unsafe { ffi::g_fdwalk_set_cloexec(lowfd) }
202-
}
203-
204190
#[doc(alias = "g_file_set_contents")]
205191
pub fn file_set_contents(
206192
filename: impl AsRef<std::path::Path>,

0 commit comments

Comments
 (0)