blob: 411fdca36762554db242dd7f9257f107e8dd2653 [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
Mark Hammond91a681d2002-08-12 07:21:58 +000016PyAPI_FUNC(long) PyMarshal_ReadLongFromFile(FILE *);
17PyAPI_FUNC(int) PyMarshal_ReadShortFromFile(FILE *);
18PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromFile(FILE *);
19PyAPI_FUNC(PyObject *) PyMarshal_ReadLastObjectFromFile(FILE *);
Martin v. Löwis18e16552006-02-15 17:27:45 +000020PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromString(char *, Py_ssize_t);
Guido van Rossuma3309961993-07-28 09:05:47 +000021
22#ifdef __cplusplus
23}
24#endif
25#endif /* !Py_MARSHAL_H */