glib_win32_sys/
lib.rs

1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// DO NOT EDIT
4
5#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
6#![allow(
7    clippy::approx_constant,
8    clippy::type_complexity,
9    clippy::unreadable_literal,
10    clippy::upper_case_acronyms
11)]
12#![cfg_attr(docsrs, feature(doc_cfg))]
13
14use glib_sys as glib;
15
16#[cfg(unix)]
17#[allow(unused_imports)]
18use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t};
19#[allow(unused_imports)]
20use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE};
21#[allow(unused_imports)]
22use std::ffi::{
23    c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void,
24};
25
26#[allow(unused_imports)]
27use glib::{gboolean, gconstpointer, gpointer, GType};
28
29// Enums
30pub type GWin32OSType = c_int;
31pub const G_WIN32_OS_ANY: GWin32OSType = 0;
32pub const G_WIN32_OS_WORKSTATION: GWin32OSType = 1;
33pub const G_WIN32_OS_SERVER: GWin32OSType = 2;
34
35extern "C" {
36
37    //=========================================================================
38    // Other functions
39    //=========================================================================
40    pub fn g_win32_check_windows_version(
41        major: c_int,
42        minor: c_int,
43        spver: c_int,
44        os_type: GWin32OSType,
45    ) -> gboolean;
46    pub fn g_win32_error_message(error: c_int) -> *mut c_char;
47    pub fn g_win32_ftruncate(f: c_int, size: c_uint) -> c_int;
48    pub fn g_win32_get_command_line() -> *mut *mut c_char;
49    pub fn g_win32_get_package_installation_directory(
50        package: *const c_char,
51        dll_name: *const c_char,
52    ) -> *mut c_char;
53    pub fn g_win32_get_package_installation_directory_of_module(hmodule: gpointer) -> *mut c_char;
54    pub fn g_win32_get_package_installation_subdirectory(
55        package: *const c_char,
56        dll_name: *const c_char,
57        subdir: *const c_char,
58    ) -> *mut c_char;
59    pub fn g_win32_get_windows_version() -> c_uint;
60    pub fn g_win32_getlocale() -> *mut c_char;
61    pub fn g_win32_locale_filename_from_utf8(utf8filename: *const c_char) -> *mut c_char;
62
63}