blob: e96d062b18bac2f797b34d802d071dc94735b11d [file] [log] [blame]
Guido van Rossumdce2e3d1991-06-04 19:42:30 +00001
2/* Interface for marshal.c */
3
Fred Drake5eb6d4e2000-07-08 23:37:28 +00004#ifndef Py_MARSHAL_H
5#define Py_MARSHAL_H
6#ifdef __cplusplus
7extern "C" {
8#endif
Guido van Rossumdce2e3d1991-06-04 19:42:30 +00009
Michael W. Hudsondf888462005-06-03 14:41:55 +000010#define Py_MARSHAL_VERSION 2
Martin v. Löwisef82d2f2004-06-27 16:51:46 +000011
12PyAPI_FUNC(void) PyMarshal_WriteLongToFile(long, FILE *, int);
13PyAPI_FUNC(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *, int);
14PyAPI_FUNC(PyObject *) PyMarshal_WriteObjectToString(PyObject *, int);
Fred Drake5eb6d4e2000-07-08 23:37:28 +000015
Martin v. Löwis4d0d4712010-12-03 20:14:31 +000016#ifndef Py_LIMITED_API
Mark Hammond91a681d2002-08-12 07:21:58 +000017PyAPI_FUNC(long) PyMarshal_ReadLongFromFile(FILE *);
18PyAPI_FUNC(int) PyMarshal_ReadShortFromFile(FILE *);
19PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromFile(FILE *);
20PyAPI_FUNC(PyObject *) PyMarshal_ReadLastObjectFromFile(FILE *);
Martin v. Löwis4d0d4712010-12-03 20:14:31 +000021#endif
Martin v. Löwis18e16552006-02-15 17:27:45 +000022PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromString(char *, Py_ssize_t);
Guido van Rossuma3309961993-07-28 09:05:47 +000023
24#ifdef __cplusplus
25}
26#endif
27#endif /* !Py_MARSHAL_H */