From f8c0d63cdb3df8bbce3cd28236ab4a283d6ae7a0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 17 Aug 2020 17:20:12 +1000 Subject: Cleanup: split BPY_extern_python into it's own header Currently BPY_extern.h includes too much mixed functionality. --- source/blender/python/BPY_extern_python.h | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 source/blender/python/BPY_extern_python.h (limited to 'source/blender/python/BPY_extern_python.h') diff --git a/source/blender/python/BPY_extern_python.h b/source/blender/python/BPY_extern_python.h new file mode 100644 index 00000000000..d6033f86d37 --- /dev/null +++ b/source/blender/python/BPY_extern_python.h @@ -0,0 +1,40 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +/** \file + * \ingroup python + * + * Functionality relating to Python setup & tear down. + */ + +#pragma once + +struct bContext; + +#ifdef __cplusplus +extern "C" { +#endif + +/* bpy_interface.c */ +void BPY_python_start(int argc, const char **argv); +void BPY_python_end(void); +void BPY_python_reset(struct bContext *C); +void BPY_python_use_system_env(void); +void BPY_python_backtrace(/* FILE */ void *file); + +#ifdef __cplusplus +} /* extern "C" */ +#endif -- cgit v1.2.3