Counter Strike : Global Offensive Source Code

64 lines
2.0 KiB

  1. /* Module definition and import interface */
  2. #ifndef Py_IMPORT_H
  3. #define Py_IMPORT_H
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  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(const char *name);
  13. PyAPI_FUNC(PyObject *) PyImport_ImportModule(const char *name);
  14. PyAPI_FUNC(PyObject *) PyImport_ImportModuleLevel(char *name,
  15. PyObject *globals, PyObject *locals, PyObject *fromlist, int level);
  16. /* For DLL compatibility */
  17. #undef PyImport_ImportModuleEx
  18. PyAPI_FUNC(PyObject *) PyImport_ImportModuleEx(
  19. char *name, PyObject *globals, PyObject *locals, PyObject *fromlist);
  20. #define PyImport_ImportModuleEx(n, g, l, f) \
  21. PyImport_ImportModuleLevel(n, g, l, f, -1)
  22. PyAPI_FUNC(PyObject *) PyImport_Import(PyObject *name);
  23. PyAPI_FUNC(PyObject *) PyImport_ReloadModule(PyObject *m);
  24. PyAPI_FUNC(void) PyImport_Cleanup(void);
  25. PyAPI_FUNC(int) PyImport_ImportFrozenModule(char *);
  26. PyAPI_FUNC(struct filedescr *) _PyImport_FindModule(
  27. const char *, PyObject *, char *, size_t, FILE **, PyObject **);
  28. PyAPI_FUNC(int) _PyImport_IsScript(struct filedescr *);
  29. PyAPI_FUNC(void) _PyImport_ReInitLock(void);
  30. PyAPI_FUNC(PyObject *)_PyImport_FindExtension(char *, char *);
  31. PyAPI_FUNC(PyObject *)_PyImport_FixupExtension(char *, char *);
  32. struct _inittab {
  33. char *name;
  34. void (*initfunc)(void);
  35. };
  36. PyAPI_DATA(struct _inittab *) PyImport_Inittab;
  37. PyAPI_FUNC(int) PyImport_AppendInittab(char *name, void (*initfunc)(void));
  38. PyAPI_FUNC(int) PyImport_ExtendInittab(struct _inittab *newtab);
  39. struct _frozen {
  40. char *name;
  41. unsigned char *code;
  42. int size;
  43. };
  44. /* Embedding apps may change this pointer to point to their favorite
  45. collection of frozen modules: */
  46. PyAPI_DATA(struct _frozen *) PyImport_FrozenModules;
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. #endif /* !Py_IMPORT_H */