blob: 3d278af8736caa9243b57635467176d227aa012f [file] [log] [blame]
Guido van Rossumf70e43a1991-02-19 12:39:46 +00001
Guido van Rossum85a5fbb1990-10-14 12:07:46 +00002/* Module object interface */
3
Fred Drake3cf4d2b2000-07-09 00:55:06 +00004#ifndef Py_MODULEOBJECT_H
5#define Py_MODULEOBJECT_H
6#ifdef __cplusplus
7extern "C" {
8#endif
9
Mark Hammond91a681d2002-08-12 07:21:58 +000010PyAPI_DATA(PyTypeObject) PyModule_Type;
Guido van Rossum85a5fbb1990-10-14 12:07:46 +000011
Guido van Rossumb8755092001-09-10 18:21:59 +000012#define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type)
Tim Peters59c9a642001-09-13 05:38:56 +000013#define PyModule_CheckExact(op) ((op)->ob_type == &PyModule_Type)
Guido van Rossum85a5fbb1990-10-14 12:07:46 +000014
Jeremy Hyltonaf68c872005-12-10 18:50:16 +000015PyAPI_FUNC(PyObject *) PyModule_New(const char *);
Mark Hammond91a681d2002-08-12 07:21:58 +000016PyAPI_FUNC(PyObject *) PyModule_GetDict(PyObject *);
17PyAPI_FUNC(char *) PyModule_GetName(PyObject *);
18PyAPI_FUNC(char *) PyModule_GetFilename(PyObject *);
19PyAPI_FUNC(void) _PyModule_Clear(PyObject *);
Guido van Rossuma3309961993-07-28 09:05:47 +000020
21#ifdef __cplusplus
22}
23#endif
24#endif /* !Py_MODULEOBJECT_H */