• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef Py_CPYTHON_IMPORT_H
2 #  error "this header file must not be included directly"
3 #endif
4 
5 PyMODINIT_FUNC PyInit__imp(void);
6 
7 PyAPI_FUNC(int) _PyImport_IsInitialized(PyInterpreterState *);
8 
9 PyAPI_FUNC(PyObject *) _PyImport_GetModuleId(struct _Py_Identifier *name);
10 PyAPI_FUNC(int) _PyImport_SetModule(PyObject *name, PyObject *module);
11 PyAPI_FUNC(int) _PyImport_SetModuleString(const char *name, PyObject* module);
12 
13 PyAPI_FUNC(void) _PyImport_AcquireLock(void);
14 PyAPI_FUNC(int) _PyImport_ReleaseLock(void);
15 
16 /* Obsolete since 3.5, will be removed in 3.11. */
17 Py_DEPRECATED(3.10) PyAPI_FUNC(PyObject *) _PyImport_FindExtensionObject(PyObject *, PyObject *);
18 
19 PyAPI_FUNC(int) _PyImport_FixupBuiltin(
20     PyObject *mod,
21     const char *name,            /* UTF-8 encoded string */
22     PyObject *modules
23     );
24 PyAPI_FUNC(int) _PyImport_FixupExtensionObject(PyObject*, PyObject *,
25                                                PyObject *, PyObject *);
26 
27 struct _inittab {
28     const char *name;           /* ASCII encoded string */
29     PyObject* (*initfunc)(void);
30 };
31 PyAPI_DATA(struct _inittab *) PyImport_Inittab;
32 PyAPI_FUNC(int) PyImport_ExtendInittab(struct _inittab *newtab);
33 
34 struct _frozen {
35     const char *name;                 /* ASCII encoded string */
36     const unsigned char *code;
37     int size;
38 };
39 
40 /* Embedding apps may change this pointer to point to their favorite
41    collection of frozen modules: */
42 
43 PyAPI_DATA(const struct _frozen *) PyImport_FrozenModules;
44