blob: 670e5d283f770197b30bb691162195a1ffea9709 [file] [log] [blame]
Guido van Rossumf70e43a1991-02-19 12:39:46 +00001
Guido van Rossum85a5fbb1990-10-14 12:07:46 +00002/* System module interface */
3
Fred Drake3cf4d2b2000-07-09 00:55:06 +00004#ifndef Py_SYSMODULE_H
5#define Py_SYSMODULE_H
6#ifdef __cplusplus
7extern "C" {
8#endif
9
Neal Norwitzf3081322007-08-25 00:32:45 +000010PyAPI_FUNC(PyObject *) PySys_GetObject(const char *);
Serhiy Storchaka9fab79b2016-09-11 11:03:14 +030011PyAPI_FUNC(int) PySys_SetObject(const char *, PyObject *);
Victor Stinnerd67bd452013-11-06 22:36:40 +010012
Martin v. Löwis790465f2008-04-05 20:41:37 +000013PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **);
Antoine Pitrouf978fac2010-05-21 17:25:34 +000014PyAPI_FUNC(void) PySys_SetArgvEx(int, wchar_t **, int);
Martin v. Löwis790465f2008-04-05 20:41:37 +000015PyAPI_FUNC(void) PySys_SetPath(const wchar_t *);
Guido van Rossumd510c781992-03-23 18:20:04 +000016
Mark Hammond91a681d2002-08-12 07:21:58 +000017PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
Victor Stinner79766632010-08-16 17:36:42 +000018 Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
Mark Hammond91a681d2002-08-12 07:21:58 +000019PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
Victor Stinner79766632010-08-16 17:36:42 +000020 Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
21PyAPI_FUNC(void) PySys_FormatStdout(const char *format, ...);
22PyAPI_FUNC(void) PySys_FormatStderr(const char *format, ...);
Guido van Rossumbf6a9b11998-05-12 14:58:52 +000023
Mark Hammond91a681d2002-08-12 07:21:58 +000024PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
Martin v. Löwis790465f2008-04-05 20:41:37 +000025PyAPI_FUNC(void) PySys_AddWarnOption(const wchar_t *);
Victor Stinner9ca9c252010-05-19 16:53:30 +000026PyAPI_FUNC(void) PySys_AddWarnOptionUnicode(PyObject *);
Christian Heimes33fe8092008-04-13 13:53:33 +000027PyAPI_FUNC(int) PySys_HasWarnOptions(void);
Guido van Rossum429b41e2000-12-15 22:01:39 +000028
Antoine Pitrou9583cac2010-10-21 13:42:28 +000029PyAPI_FUNC(void) PySys_AddXOption(const wchar_t *);
30PyAPI_FUNC(PyObject *) PySys_GetXOptions(void);
31
Serhiy Storchaka547d3bc2014-08-14 22:21:18 +030032#ifndef Py_LIMITED_API
Steve Dowerb82e17e2019-05-23 08:45:22 -070033# define Py_CPYTHON_SYSMODULE_H
34# include "cpython/sysmodule.h"
35# undef Py_CPYTHON_SYSMODULE_H
Serhiy Storchaka547d3bc2014-08-14 22:21:18 +030036#endif
37
Guido van Rossuma3309961993-07-28 09:05:47 +000038#ifdef __cplusplus
39}
40#endif
41#endif /* !Py_SYSMODULE_H */