Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | #ifndef Py_IMPORT_H |
2 | #define Py_IMPORT_H | |
3 | #ifdef __cplusplus | |
4 | extern "C" { | |
5 | #endif | |
6 | ||
7 | PyAPI_FUNC(long) PyImport_GetMagicNumber(void); | |
8 | PyAPI_FUNC(PyObject *) PyImport_ExecCodeModule(char *name, PyObject *co); | |
9 | PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleEx( | |
10 | char *name, PyObject *co, char *pathname); | |
11 | PyAPI_FUNC(PyObject *) PyImport_GetModuleDict(void); | |
12 | PyAPI_FUNC(PyObject *) PyImport_AddModule(char *name); | |
13 | PyAPI_FUNC(PyObject *) PyImport_ImportModule(char *name); | |
14 | PyAPI_FUNC(PyObject *) PyImport_ImportModuleEx( | |
15 | char *name, PyObject *globals, PyObject *locals, PyObject *fromlist); | |
16 | PyAPI_FUNC(PyObject *) PyImport_Import(PyObject *name); | |
17 | PyAPI_FUNC(PyObject *) PyImport_ReloadModule(PyObject *m); | |
18 | PyAPI_FUNC(void) PyImport_Cleanup(void); | |
19 | PyAPI_FUNC(int) PyImport_ImportFrozenModule(char *); | |
20 | ||
21 | PyAPI_FUNC(struct filedescr *) _PyImport_FindModule( | |
22 | const char *, PyObject *, char *, size_t, FILE **, PyObject **); | |
23 | PyAPI_FUNC(int) _PyImport_IsScript(struct filedescr *); | |
24 | PyAPI_FUNC(void) _PyImport_ReInitLock(void); | |
25 | ||
26 | PyAPI_FUNC(PyObject *)_PyImport_FindExtension(char *, char *); | |
27 | PyAPI_FUNC(PyObject *)_PyImport_FixupExtension(char *, char *); | |
28 | ||
29 | struct _inittab { | |
30 | char *name; | |
31 | void (*initfunc)(void); | |
32 | }; | |
33 | ||
34 | PyAPI_DATA(struct _inittab *) PyImport_Inittab; | |
35 | ||
36 | PyAPI_FUNC(int) PyImport_AppendInittab(char *name, void (*initfunc)(void)); | |
37 | PyAPI_FUNC(int) PyImport_ExtendInittab(struct _inittab *newtab); | |
38 | ||
39 | struct _frozen { | |
40 | char *name; | |
41 | unsigned char *code; | |
42 | int size; | |
43 | }; | |
44 | ||
45 | /* Embedding apps may change this pointer to point to their favorite | |
46 | collection of frozen modules: */ | |
47 | ||
48 | PyAPI_DATA(struct _frozen *) PyImport_FrozenModules; | |
49 | ||
50 | #ifdef __cplusplus | |
51 | } | |
52 | #endif | |
53 | #endif /* !Py_IMPORT_H */ |