From ec6fcac62856d7008ddc0af6575ec5fbad4fc363 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 10 Feb 2020 15:55:43 +0100 Subject: Cleanup/Refactor: Move ID deletion into its own .c file. Having functions defined in `BKE_lib_id.h` implemented into `lib_remap.c` was confusing at best. Besides trivial code splitting and header includes cleanup, had to add a new `lib_intern.h` header for callbacks used by both remapping and deletion code. --- source/blender/blenkernel/intern/lib_intern.h | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 source/blender/blenkernel/intern/lib_intern.h (limited to 'source/blender/blenkernel/intern/lib_intern.h') diff --git a/source/blender/blenkernel/intern/lib_intern.h b/source/blender/blenkernel/intern/lib_intern.h new file mode 100644 index 00000000000..c0568bca964 --- /dev/null +++ b/source/blender/blenkernel/intern/lib_intern.h @@ -0,0 +1,33 @@ +/* + * 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. + * + * The Original Code is Copyright (C) 2018 by Blender Foundation. + * All rights reserved. + */ + +/** \file + * \ingroup bke + */ + +#ifndef __LIB_ID_INTERN_H__ +#define __LIB_ID_INTERN_H__ + +extern BKE_library_free_window_manager_cb free_windowmanager_cb; + +extern BKE_library_free_notifier_reference_cb free_notifier_reference_cb; + +extern BKE_library_remap_editor_id_reference_cb remap_editor_id_reference_cb; + +#endif /* __LIB_ID_INTERN_H__ */ -- cgit v1.2.3