source: vendor/python/2.5/Python/importdl.h

Last change on this file was 3225, checked in by bird, 18 years ago

Python 2.5

File size: 990 bytes
Line 
1#ifndef Py_IMPORTDL_H
2#define Py_IMPORTDL_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8
9/* Definitions for dynamic loading of extension modules */
10enum filetype {
11 SEARCH_ERROR,
12 PY_SOURCE,
13 PY_COMPILED,
14 C_EXTENSION,
15 PY_RESOURCE, /* Mac only */
16 PKG_DIRECTORY,
17 C_BUILTIN,
18 PY_FROZEN,
19 PY_CODERESOURCE, /* Mac only */
20 IMP_HOOK
21};
22
23struct filedescr {
24 char *suffix;
25 char *mode;
26 enum filetype type;
27};
28extern struct filedescr * _PyImport_Filetab;
29extern const struct filedescr _PyImport_DynLoadFiletab[];
30
31extern PyObject *_PyImport_LoadDynamicModule(char *name, char *pathname,
32 FILE *);
33
34/* Max length of module suffix searched for -- accommodates "module.slb" */
35#define MAXSUFFIXSIZE 12
36
37#ifdef MS_WINDOWS
38#include <windows.h>
39typedef FARPROC dl_funcptr;
40#else
41#if defined(PYOS_OS2) && !defined(PYCC_GCC)
42#include <os2def.h>
43typedef int (* APIENTRY dl_funcptr)();
44#else
45typedef void (*dl_funcptr)(void);
46#endif
47#endif
48
49
50#ifdef __cplusplus
51}
52#endif
53#endif /* !Py_IMPORTDL_H */
Note: See TracBrowser for help on using the repository browser.