blob: 98bd5238c56c003ec6ee9d52c6c15386d2d3b942 [file] [log] [blame]
Guido van Rossumdce2e3d1991-06-04 19:42:30 +00001/***********************************************************
Guido van Rossumfd71b9e2000-06-30 23:50:40 +00002Copyright (c) 2000, BeOpen.com.
3Copyright (c) 1995-2000, Corporation for National Research Initiatives.
4Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
5All rights reserved.
Guido van Rossumdce2e3d1991-06-04 19:42:30 +00006
Guido van Rossumfd71b9e2000-06-30 23:50:40 +00007See the file "Misc/COPYRIGHT" for information on usage and
8redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
Guido van Rossumdce2e3d1991-06-04 19:42:30 +00009******************************************************************/
10
11/* Interface for marshal.c */
12
Fred Drake5eb6d4e2000-07-08 23:37:28 +000013#ifndef Py_MARSHAL_H
14#define Py_MARSHAL_H
15#ifdef __cplusplus
16extern "C" {
17#endif
Guido van Rossumdce2e3d1991-06-04 19:42:30 +000018
Fred Drake5eb6d4e2000-07-08 23:37:28 +000019DL_IMPORT(void) PyMarshal_WriteLongToFile(long, FILE *);
20DL_IMPORT(void) PyMarshal_WriteShortToFile(int, FILE *);
21DL_IMPORT(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *);
22DL_IMPORT(PyObject *) PyMarshal_WriteObjectToString(PyObject *);
23
24DL_IMPORT(long) PyMarshal_ReadLongFromFile(FILE *);
25DL_IMPORT(int) PyMarshal_ReadShortFromFile(FILE *);
26DL_IMPORT(PyObject *) PyMarshal_ReadObjectFromFile(FILE *);
27DL_IMPORT(PyObject *) PyMarshal_ReadObjectFromString(char *, int);
Guido van Rossuma3309961993-07-28 09:05:47 +000028
29#ifdef __cplusplus
30}
31#endif
32#endif /* !Py_MARSHAL_H */