Blender V2.61 - r43446

BPY_extern.h

Go to the documentation of this file.
00001 /*
00002  * ***** BEGIN GPL LICENSE BLOCK *****
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software Foundation,
00016  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  *
00018  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
00019  * All rights reserved.
00020  *
00021  * The Original Code was in: source/blender/bpython/include/BPY_extern.h
00022  *
00023  * Contributor(s): Michel Selten,
00024  *                 Willian P. Germano,
00025  *                 Chris Keith,
00026  *                 Campbell Barton
00027  *
00028  * ***** END GPL LICENSE BLOCK *****
00029  */
00030 
00037 #ifndef BPY_EXTERN_H
00038 #define BPY_EXTERN_H
00039 
00040 struct Text; /* defined in DNA_text_types.h */
00041 struct ID; /* DNA_ID.h */
00042 struct Object; /* DNA_object_types.h */
00043 struct ChannelDriver; /* DNA_anim_types.h */
00044 struct ListBase; /* DNA_listBase.h */
00045 struct bConstraint; /* DNA_constraint_types.h */
00046 struct bPythonConstraint; /* DNA_constraint_types.h */
00047 struct bConstraintOb; /* DNA_constraint_types.h */
00048 struct bConstraintTarget; /* DNA_constraint_types.h*/
00049 struct bContext;
00050 struct bContextDataResult;
00051 struct ReportList;
00052 
00053 #ifdef __cplusplus
00054 extern "C" {
00055 #endif
00056 
00057 void BPY_pyconstraint_exec(struct bPythonConstraint *con, struct bConstraintOb *cob, struct ListBase *targets);
00058 //  void BPY_pyconstraint_settings(void *arg1, void *arg2);
00059 void BPY_pyconstraint_target(struct bPythonConstraint *con, struct bConstraintTarget *ct);
00060 void BPY_pyconstraint_update(struct Object *owner, struct bConstraint *con);
00061 int BPY_is_pyconstraint(struct Text *text);
00062 //  void BPY_free_pyconstraint_links(struct Text *text);
00063 
00064 void BPY_python_start(int argc, const char **argv);
00065 void BPY_python_end(void);
00066 
00067 /* 2.5 UI Scripts */
00068 int     BPY_filepath_exec(struct bContext *C, const char *filepath, struct ReportList *reports);
00069 int     BPY_text_exec(struct bContext *C, struct Text *text, struct ReportList *reports, const short do_jump);
00070 void    BPY_text_free_code(struct Text *text);
00071 void    BPY_modules_update(struct bContext *C); // XXX - annoying, need this for pointers that get out of date
00072 void    BPY_modules_load_user(struct bContext *C);
00073 
00074 void    BPY_app_handlers_reset(const short do_all);
00075 
00076 void    BPY_driver_reset(void);
00077 float   BPY_driver_exec(struct ChannelDriver *driver, const float evaltime);
00078 
00079 int     BPY_button_exec(struct bContext *C, const char *expr, double *value, const short verbose);
00080 int     BPY_string_exec(struct bContext *C, const char *expr);
00081 
00082 void    BPY_DECREF(void *pyob_ptr); /* Py_DECREF() */
00083 int     BPY_context_member_get(struct bContext *C, const char *member, struct bContextDataResult *result);
00084 void    BPY_context_set(struct bContext *C);
00085 
00086 void    BPY_id_release(struct ID *id);
00087 
00088 #ifdef __cplusplus
00089 }               /* extern "C" */
00090 #endif
00091 
00092 #endif  /* BPY_EXTERN_H */