2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License
4 * as published by the Free Software Foundation; either version 2
5 * of the License, or (at your option) any later version.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software Foundation,
14 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17 * All rights reserved.
19 #ifndef __BKE_BLENDER_H__
20 #define __BKE_BLENDER_H__
24 * \brief Blender util stuff
33 void BKE_blender_free(void);
35 void BKE_blender_globals_init(void);
36 void BKE_blender_globals_clear(void);
37 void BKE_blender_version_string(
38 char *version_str, size_t maxncpy,
39 short version, short subversion, bool v_prefix, bool include_subversion);
41 void BKE_blender_userdef_data_swap(struct UserDef *userdef_dst, struct UserDef *userdef_src);
42 void BKE_blender_userdef_data_set(struct UserDef *userdef);
43 void BKE_blender_userdef_data_set_and_free(struct UserDef *userdef);
45 void BKE_blender_userdef_app_template_data_swap(struct UserDef *userdef_dst, struct UserDef *userdef_src);
46 void BKE_blender_userdef_app_template_data_set(struct UserDef *userdef);
47 void BKE_blender_userdef_app_template_data_set_and_free(struct UserDef *userdef);
49 void BKE_blender_userdef_data_free(struct UserDef *userdef, bool clear_fonts);
51 /* Blenders' own atexit (avoids leaking) */
52 void BKE_blender_atexit_register(void (*func)(void *user_data), void *user_data);
53 void BKE_blender_atexit_unregister(void (*func)(void *user_data), const void *user_data);
54 void BKE_blender_atexit(void);
60 #endif /* __BKE_BLENDER_H__ */