home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 June / PCWorld_2005-06_cd.bin / software / vyzkuste / firewally / firewally.exe / framework-2.3.exe / import.h < prev    next >
C/C++ Source or Header  |  2003-12-30  |  2KB  |  52 lines

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