blob: 010e6e080a94dc1c2e4a73362bf09f963d526513 [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 *);
11PyAPI_FUNC(int) PySys_SetObject(const char *, PyObject *);
Martin v. Löwis790465f2008-04-05 20:41:37 +000012PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **);
Antoine Pitrouf978fac2010-05-21 17:25:34 +000013PyAPI_FUNC(void) PySys_SetArgvEx(int, wchar_t **, int);
Martin v. Löwis790465f2008-04-05 20:41:37 +000014PyAPI_FUNC(void) PySys_SetPath(const wchar_t *);
Guido van Rossumd510c781992-03-23 18:20:04 +000015
Mark Hammond91a681d2002-08-12 07:21:58 +000016PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
Victor Stinner79766632010-08-16 17:36:42 +000017 Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
Mark Hammond91a681d2002-08-12 07:21:58 +000018PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
Victor Stinner79766632010-08-16 17:36:42 +000019 Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
20PyAPI_FUNC(void) PySys_FormatStdout(const char *format, ...);
21PyAPI_FUNC(void) PySys_FormatStderr(const char *format, ...);
Guido van Rossumbf6a9b11998-05-12 14:58:52 +000022
Martin v. Löwis4d0d4712010-12-03 20:14:31 +000023#ifndef Py_LIMITED_API
Mark Hammond91a681d2002-08-12 07:21:58 +000024PyAPI_DATA(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc;
Martin v. Löwis4d0d4712010-12-03 20:14:31 +000025#endif
Guido van Rossuma3309961993-07-28 09:05:47 +000026
Mark Hammond91a681d2002-08-12 07:21:58 +000027PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
Martin v. Löwis790465f2008-04-05 20:41:37 +000028PyAPI_FUNC(void) PySys_AddWarnOption(const wchar_t *);
Victor Stinner9ca9c252010-05-19 16:53:30 +000029PyAPI_FUNC(void) PySys_AddWarnOptionUnicode(PyObject *);
Christian Heimes33fe8092008-04-13 13:53:33 +000030PyAPI_FUNC(int) PySys_HasWarnOptions(void);
Guido van Rossum429b41e2000-12-15 22:01:39 +000031
Antoine Pitrou9583cac2010-10-21 13:42:28 +000032PyAPI_FUNC(void) PySys_AddXOption(const wchar_t *);
33PyAPI_FUNC(PyObject *) PySys_GetXOptions(void);
34
Guido van Rossuma3309961993-07-28 09:05:47 +000035#ifdef __cplusplus
36}
37#endif
38#endif /* !Py_SYSMODULE_H */