Bump version to 0.9.1.
[python/dscho.git] / Python / importdl.h
blobd67688adeb1828a439e5bd9bcd068008df620827
1 #ifndef Py_IMPORTDL_H
2 #define Py_IMPORTDL_H
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 /***********************************************************
9 Copyright (c) 2000, BeOpen.com.
10 Copyright (c) 1995-2000, Corporation for National Research Initiatives.
11 Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
12 All rights reserved.
14 See the file "Misc/COPYRIGHT" for information on usage and
15 redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
16 ******************************************************************/
18 /* Definitions for dynamic loading of extension modules */
19 enum filetype {
20 SEARCH_ERROR,
21 PY_SOURCE,
22 PY_COMPILED,
23 C_EXTENSION,
24 PY_RESOURCE, /* Mac only */
25 PKG_DIRECTORY,
26 C_BUILTIN,
27 PY_FROZEN,
28 PY_CODERESOURCE /* Mac only */
31 struct filedescr {
32 char *suffix;
33 char *mode;
34 enum filetype type;
36 extern struct filedescr * _PyImport_Filetab;
37 extern const struct filedescr _PyImport_DynLoadFiletab[];
39 extern PyObject *_PyImport_LoadDynamicModule(char *name, char *pathname,
40 FILE *);
42 /* Max length of module suffix searched for -- accommodates "module.slb" */
43 #define MAXSUFFIXSIZE 12
45 #ifdef MS_WINDOWS
46 #include <windows.h>
47 typedef FARPROC dl_funcptr;
48 #else
49 #ifdef PYOS_OS2
50 typedef int (* APIENTRY dl_funcptr)();
51 #else
52 typedef void (*dl_funcptr)(void);
53 #endif
54 #endif
57 #ifdef __cplusplus
59 #endif
60 #endif /* !Py_IMPORTDL_H */