|
Blender
V2.59
|
00001 /* 00002 * $Id: bpy_internal_import.h 36980 2011-05-28 13:11:24Z lmg $ 00003 * ***** BEGIN GPL LICENSE BLOCK ***** 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software Foundation, 00017 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00018 * 00019 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. 00020 * All rights reserved. 00021 * 00022 * This is a new part of Blender. 00023 * 00024 * Contributor(s): Willian P. Germano, Campbell Barton 00025 * 00026 * ***** END GPL LICENSE BLOCK ***** 00027 */ 00028 00034 /* Note, the BGE needs to use this too, keep it minimal */ 00035 00036 #ifndef BPY_INTERNAL_IMPORT_H 00037 #define BPY_INTERNAL_IMPORT_H 00038 00039 /* python redefines :/ */ 00040 #ifdef _POSIX_C_SOURCE 00041 #undef _POSIX_C_SOURCE 00042 #endif 00043 00044 #ifdef _XOPEN_SOURCE 00045 #undef _XOPEN_SOURCE 00046 #endif 00047 00048 struct Text; 00049 00050 void bpy_import_init(PyObject *builtins); 00051 00052 PyObject* bpy_text_import(struct Text *text); 00053 PyObject* bpy_text_import_name(char *name, int *found); 00054 PyObject* bpy_text_reimport(PyObject *module, int *found); 00055 /* void bpy_text_clear_modules(int clear_all);*/ /* Clear user modules */ 00056 00057 void bpy_text_filename_get(char *fn, size_t fn_len, struct Text *text); 00058 00059 extern PyMethodDef bpy_import_meth; 00060 extern PyMethodDef bpy_reload_meth; 00061 00062 /* The game engine has its own Main struct, if this is set search this rather than G.main */ 00063 struct Main *bpy_import_main_get(void); 00064 void bpy_import_main_set(struct Main *maggie); 00065 00066 #endif /* BPY_INTERNAL_IMPORT_H */