4 * ***** BEGIN GPL LICENSE BLOCK *****
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
21 * All rights reserved.
23 * The Original Code is: all of this file.
25 * Contributor(s): mar 2001 Nzc
27 * ***** END GPL LICENSE BLOCK *****
30 /** \file blender/blenlib/BLI_callbacks.h
35 #ifndef BLI_CALLBACKS_H
36 #define BLI_CALLBACKS_H
43 BLI_CB_EVT_RENDER_PRE,
44 BLI_CB_EVT_RENDER_POST,
54 struct bCallbackFuncStore *next, *prev;
55 void (* func)(struct Main *, struct ID *, void *arg);
61 void BLI_exec_cb(struct Main *main, struct ID *self, eCbEvent evt);
62 void BLI_add_cb(bCallbackFuncStore *funcstore, eCbEvent evt);
67 void BLI_cb_init(void);
68 void BLI_cb_finalize(void);
71 /* This is blenlib internal only, unrelated to above */
72 void callLocalErrorCallBack(const char* msg);