2 /* Module definition and import interface */
10 PyAPI_FUNC(long) PyImport_GetMagicNumber(void);
11 PyAPI_FUNC(PyObject
*) PyImport_ExecCodeModule(char *name
, PyObject
*co
);
12 PyAPI_FUNC(PyObject
*) PyImport_ExecCodeModuleEx(
13 char *name
, PyObject
*co
, char *pathname
);
14 PyAPI_FUNC(PyObject
*) PyImport_GetModuleDict(void);
15 PyAPI_FUNC(PyObject
*) PyImport_AddModule(const char *name
);
16 PyAPI_FUNC(PyObject
*) PyImport_ImportModule(const char *name
);
17 PyAPI_FUNC(PyObject
*) PyImport_ImportModuleLevel(char *name
,
18 PyObject
*globals
, PyObject
*locals
, PyObject
*fromlist
, int level
);
20 /* For DLL compatibility */
21 #undef PyImport_ImportModuleEx
22 PyAPI_FUNC(PyObject
*) PyImport_ImportModuleEx(
23 char *name
, PyObject
*globals
, PyObject
*locals
, PyObject
*fromlist
);
24 #define PyImport_ImportModuleEx(n, g, l, f) \
25 PyImport_ImportModuleLevel(n, g, l, f, -1)
27 PyAPI_FUNC(PyObject
*) PyImport_Import(PyObject
*name
);
28 PyAPI_FUNC(PyObject
*) PyImport_ReloadModule(PyObject
*m
);
29 PyAPI_FUNC(void) PyImport_Cleanup(void);
30 PyAPI_FUNC(int) PyImport_ImportFrozenModule(char *);
32 PyAPI_FUNC(struct filedescr
*) _PyImport_FindModule(
33 const char *, PyObject
*, char *, size_t, FILE **, PyObject
**);
34 PyAPI_FUNC(int) _PyImport_IsScript(struct filedescr
*);
35 PyAPI_FUNC(void) _PyImport_ReInitLock(void);
37 PyAPI_FUNC(PyObject
*)_PyImport_FindExtension(char *, char *);
38 PyAPI_FUNC(PyObject
*)_PyImport_FixupExtension(char *, char *);
42 void (*initfunc
)(void);
45 PyAPI_DATA(struct _inittab
*) PyImport_Inittab
;
47 PyAPI_FUNC(int) PyImport_AppendInittab(char *name
, void (*initfunc
)(void));
48 PyAPI_FUNC(int) PyImport_ExtendInittab(struct _inittab
*newtab
);
56 /* Embedding apps may change this pointer to point to their favorite
57 collection of frozen modules: */
59 PyAPI_DATA(struct _frozen
*) PyImport_FrozenModules
;
64 #endif /* !Py_IMPORT_H */