Skip to content

Commit 7c63428

Browse files
sdroegebilelmoussaoui
authored andcommitted
gio-sys: Hide UNIX specific Credentials API on Windows
1 parent 442b850 commit 7c63428

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

gio/sys/Gir.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ ignore = [
1515
"Gio.ThreadedResolverClass"
1616
]
1717

18+
[[object]]
19+
name = "Gio.Credentials"
20+
status = "generate"
21+
[[object.function]]
22+
pattern = "[gs]et_unix.*"
23+
cfg_condition = "unix"
24+
1825
[[object]]
1926
name = "Gio.SocketFamily"
2027
status = "manual"

gio/sys/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10391,10 +10391,14 @@ extern "C" {
1039110391
credentials: *mut GCredentials,
1039210392
native_type: GCredentialsType,
1039310393
) -> gpointer;
10394+
#[cfg(unix)]
10395+
#[cfg_attr(docsrs, doc(cfg(unix)))]
1039410396
pub fn g_credentials_get_unix_pid(
1039510397
credentials: *mut GCredentials,
1039610398
error: *mut *mut glib::GError,
1039710399
) -> pid_t;
10400+
#[cfg(unix)]
10401+
#[cfg_attr(docsrs, doc(cfg(unix)))]
1039810402
pub fn g_credentials_get_unix_user(
1039910403
credentials: *mut GCredentials,
1040010404
error: *mut *mut glib::GError,
@@ -10409,6 +10413,8 @@ extern "C" {
1040910413
native_type: GCredentialsType,
1041010414
native: gpointer,
1041110415
);
10416+
#[cfg(unix)]
10417+
#[cfg_attr(docsrs, doc(cfg(unix)))]
1041210418
pub fn g_credentials_set_unix_user(
1041310419
credentials: *mut GCredentials,
1041410420
uid: uid_t,

0 commit comments

Comments
 (0)