Skip to content

Commit bd5573f

Browse files
glib/sys: Don't generate UnixPipe
That is part of glib-unix
1 parent 353f86a commit bd5573f

File tree

5 files changed

+2
-54
lines changed

5 files changed

+2
-54
lines changed

glib/sys/Gir.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ status = "manual"
102102

103103
[[object]]
104104
name = "GLib.UnixPipe"
105-
status = "generate"
105+
status = "ignore"
106106
cfg_condition = "unix"
107107

108108
[[object]]
109109
name = "GLib.UnixPipeEnd"
110-
status = "generate"
110+
status = "ignore"
111111
cfg_condition = "unix"
112112

113113
[[object]]

glib/sys/src/lib.rs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -652,16 +652,6 @@ pub const G_UNICODE_LINE_SEPARATOR: GUnicodeType = 27;
652652
pub const G_UNICODE_PARAGRAPH_SEPARATOR: GUnicodeType = 28;
653653
pub const G_UNICODE_SPACE_SEPARATOR: GUnicodeType = 29;
654654

655-
#[cfg(unix)]
656-
#[cfg_attr(docsrs, doc(cfg(unix)))]
657-
pub type GUnixPipeEnd = c_int;
658-
#[cfg(unix)]
659-
#[cfg_attr(docsrs, doc(cfg(unix)))]
660-
pub const G_UNIX_PIPE_END_READ: GUnixPipeEnd = 0;
661-
#[cfg(unix)]
662-
#[cfg_attr(docsrs, doc(cfg(unix)))]
663-
pub const G_UNIX_PIPE_END_WRITE: GUnixPipeEnd = 1;
664-
665655
pub type GUriError = c_int;
666656
pub const G_URI_ERROR_FAILED: GUriError = 0;
667657
pub const G_URI_ERROR_BAD_SCHEME: GUriError = 1;
@@ -2537,24 +2527,6 @@ impl ::std::fmt::Debug for GTuples {
25372527
}
25382528
}
25392529

2540-
#[cfg(unix)]
2541-
#[cfg_attr(docsrs, doc(cfg(unix)))]
2542-
#[derive(Copy, Clone)]
2543-
#[repr(C)]
2544-
pub struct GUnixPipe {
2545-
pub fds: [c_int; 2],
2546-
}
2547-
2548-
#[cfg(unix)]
2549-
#[cfg_attr(docsrs, doc(cfg(unix)))]
2550-
impl ::std::fmt::Debug for GUnixPipe {
2551-
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2552-
f.debug_struct(&format!("GUnixPipe @ {self:p}"))
2553-
.field("fds", &self.fds)
2554-
.finish()
2555-
}
2556-
}
2557-
25582530
#[repr(C)]
25592531
#[allow(dead_code)]
25602532
pub struct GUri {

glib/sys/tests/abi.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -922,24 +922,6 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
922922
alignment: align_of::<GUnicodeType>(),
923923
},
924924
),
925-
#[cfg(unix)]
926-
#[cfg_attr(docsrs, doc(cfg(unix)))]
927-
(
928-
"GUnixPipe",
929-
Layout {
930-
size: size_of::<GUnixPipe>(),
931-
alignment: align_of::<GUnixPipe>(),
932-
},
933-
),
934-
#[cfg(unix)]
935-
#[cfg_attr(docsrs, doc(cfg(unix)))]
936-
(
937-
"GUnixPipeEnd",
938-
Layout {
939-
size: size_of::<GUnixPipeEnd>(),
940-
alignment: align_of::<GUnixPipeEnd>(),
941-
},
942-
),
943925
(
944926
"GUriError",
945927
Layout {
@@ -1803,8 +1785,6 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
18031785
("(gint) G_UNICODE_TITLECASE_LETTER", "8"),
18041786
("(gint) G_UNICODE_UNASSIGNED", "2"),
18051787
("(gint) G_UNICODE_UPPERCASE_LETTER", "9"),
1806-
("(gint) G_UNIX_PIPE_END_READ", "0"),
1807-
("(gint) G_UNIX_PIPE_END_WRITE", "1"),
18081788
("(gint) G_URI_ERROR_BAD_AUTH_PARAMS", "4"),
18091789
("(gint) G_URI_ERROR_BAD_FRAGMENT", "9"),
18101790
("(gint) G_URI_ERROR_BAD_HOST", "5"),

glib/sys/tests/constant.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,8 +784,6 @@ int main() {
784784
PRINT_CONSTANT((gint) G_UNICODE_TITLECASE_LETTER);
785785
PRINT_CONSTANT((gint) G_UNICODE_UNASSIGNED);
786786
PRINT_CONSTANT((gint) G_UNICODE_UPPERCASE_LETTER);
787-
PRINT_CONSTANT((gint) G_UNIX_PIPE_END_READ);
788-
PRINT_CONSTANT((gint) G_UNIX_PIPE_END_WRITE);
789787
PRINT_CONSTANT((gint) G_URI_ERROR_BAD_AUTH_PARAMS);
790788
PRINT_CONSTANT((gint) G_URI_ERROR_BAD_FRAGMENT);
791789
PRINT_CONSTANT((gint) G_URI_ERROR_BAD_HOST);

glib/sys/tests/layout.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ int main() {
110110
printf("%s;%zu;%zu\n", "GUnicodeBreakType", sizeof(GUnicodeBreakType), alignof(GUnicodeBreakType));
111111
printf("%s;%zu;%zu\n", "GUnicodeScript", sizeof(GUnicodeScript), alignof(GUnicodeScript));
112112
printf("%s;%zu;%zu\n", "GUnicodeType", sizeof(GUnicodeType), alignof(GUnicodeType));
113-
printf("%s;%zu;%zu\n", "GUnixPipe", sizeof(GUnixPipe), alignof(GUnixPipe));
114-
printf("%s;%zu;%zu\n", "GUnixPipeEnd", sizeof(GUnixPipeEnd), alignof(GUnixPipeEnd));
115113
printf("%s;%zu;%zu\n", "GUriError", sizeof(GUriError), alignof(GUriError));
116114
printf("%s;%zu;%zu\n", "GUriFlags", sizeof(GUriFlags), alignof(GUriFlags));
117115
printf("%s;%zu;%zu\n", "GUriHideFlags", sizeof(GUriHideFlags), alignof(GUriHideFlags));

0 commit comments

Comments
 (0)