Guido van Rossum | f70e43a | 1991-02-19 12:39:46 +0000 | [diff] [blame] | 1 | |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 2 | /* System module interface */ |
| 3 | |
Fred Drake | 3cf4d2b | 2000-07-09 00:55:06 +0000 | [diff] [blame] | 4 | #ifndef Py_SYSMODULE_H |
| 5 | #define Py_SYSMODULE_H |
| 6 | #ifdef __cplusplus |
| 7 | extern "C" { |
| 8 | #endif |
| 9 | |
Neal Norwitz | f308132 | 2007-08-25 00:32:45 +0000 | [diff] [blame] | 10 | PyAPI_FUNC(PyObject *) PySys_GetObject(const char *); |
| 11 | PyAPI_FUNC(int) PySys_SetObject(const char *, PyObject *); |
Martin v. Löwis | 790465f | 2008-04-05 20:41:37 +0000 | [diff] [blame] | 12 | PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **); |
Antoine Pitrou | f978fac | 2010-05-21 17:25:34 +0000 | [diff] [blame] | 13 | PyAPI_FUNC(void) PySys_SetArgvEx(int, wchar_t **, int); |
Martin v. Löwis | 790465f | 2008-04-05 20:41:37 +0000 | [diff] [blame] | 14 | PyAPI_FUNC(void) PySys_SetPath(const wchar_t *); |
Guido van Rossum | d510c78 | 1992-03-23 18:20:04 +0000 | [diff] [blame] | 15 | |
Mark Hammond | 91a681d | 2002-08-12 07:21:58 +0000 | [diff] [blame] | 16 | PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...) |
Victor Stinner | 7976663 | 2010-08-16 17:36:42 +0000 | [diff] [blame] | 17 | Py_GCC_ATTRIBUTE((format(printf, 1, 2))); |
Mark Hammond | 91a681d | 2002-08-12 07:21:58 +0000 | [diff] [blame] | 18 | PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...) |
Victor Stinner | 7976663 | 2010-08-16 17:36:42 +0000 | [diff] [blame] | 19 | Py_GCC_ATTRIBUTE((format(printf, 1, 2))); |
| 20 | PyAPI_FUNC(void) PySys_FormatStdout(const char *format, ...); |
| 21 | PyAPI_FUNC(void) PySys_FormatStderr(const char *format, ...); |
Guido van Rossum | bf6a9b1 | 1998-05-12 14:58:52 +0000 | [diff] [blame] | 22 | |
Martin v. Löwis | 4d0d471 | 2010-12-03 20:14:31 +0000 | [diff] [blame] | 23 | #ifndef Py_LIMITED_API |
Mark Hammond | 91a681d | 2002-08-12 07:21:58 +0000 | [diff] [blame] | 24 | PyAPI_DATA(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc; |
Martin v. Löwis | 4d0d471 | 2010-12-03 20:14:31 +0000 | [diff] [blame] | 25 | #endif |
Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 26 | |
Mark Hammond | 91a681d | 2002-08-12 07:21:58 +0000 | [diff] [blame] | 27 | PyAPI_FUNC(void) PySys_ResetWarnOptions(void); |
Martin v. Löwis | 790465f | 2008-04-05 20:41:37 +0000 | [diff] [blame] | 28 | PyAPI_FUNC(void) PySys_AddWarnOption(const wchar_t *); |
Victor Stinner | 9ca9c25 | 2010-05-19 16:53:30 +0000 | [diff] [blame] | 29 | PyAPI_FUNC(void) PySys_AddWarnOptionUnicode(PyObject *); |
Christian Heimes | 33fe809 | 2008-04-13 13:53:33 +0000 | [diff] [blame] | 30 | PyAPI_FUNC(int) PySys_HasWarnOptions(void); |
Guido van Rossum | 429b41e | 2000-12-15 22:01:39 +0000 | [diff] [blame] | 31 | |
Antoine Pitrou | 9583cac | 2010-10-21 13:42:28 +0000 | [diff] [blame] | 32 | PyAPI_FUNC(void) PySys_AddXOption(const wchar_t *); |
| 33 | PyAPI_FUNC(PyObject *) PySys_GetXOptions(void); |
| 34 | |
Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 35 | #ifdef __cplusplus |
| 36 | } |
| 37 | #endif |
| 38 | #endif /* !Py_SYSMODULE_H */ |