1use libc::{c_char, c_int, wchar_t};
2
3use crate::object::PyObject;
4
5#[cfg_attr(windows, link(name = "pythonXY"))]
6extern "C" {
7 pub fn PySys_GetObject(arg1: *const c_char) -> *mut PyObject;
8 pub fn PySys_SetObject(arg1: *const c_char, arg2: *mut PyObject) -> c_int;
9 pub fn PySys_SetArgv(arg1: c_int, arg2: *mut *mut wchar_t) -> ();
10 pub fn PySys_SetArgvEx(arg1: c_int, arg2: *mut *mut wchar_t, arg3: c_int) -> ();
11 pub fn PySys_SetPath(arg1: *const wchar_t) -> ();
12 pub fn PySys_WriteStdout(format: *const c_char, ...) -> ();
13 pub fn PySys_WriteStderr(format: *const c_char, ...) -> ();
14 pub fn PySys_FormatStdout(format: *const c_char, ...) -> ();
15 pub fn PySys_FormatStderr(format: *const c_char, ...) -> ();
16 pub fn PySys_ResetWarnOptions() -> ();
17 pub fn PySys_AddWarnOption(arg1: *const wchar_t) -> ();
18 pub fn PySys_AddWarnOptionUnicode(arg1: *mut PyObject) -> ();
19 pub fn PySys_HasWarnOptions() -> c_int;
20 pub fn PySys_AddXOption(arg1: *const wchar_t) -> ();
21 pub fn PySys_GetXOptions() -> *mut PyObject;
22}