2016-04-24 14:42:41 +02:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2019-02-17 22:08:12 +01:00
|
|
|
/** \file
|
|
|
|
* \ingroup bke
|
2016-04-24 14:42:41 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct Main;
|
2018-03-19 14:17:59 +01:00
|
|
|
struct MemFileUndoData;
|
2019-01-28 11:08:24 +01:00
|
|
|
struct bContext;
|
2016-04-24 14:42:41 +02:00
|
|
|
|
2021-02-04 22:03:39 +01:00
|
|
|
enum eUndoStepDir;
|
|
|
|
|
2016-04-24 14:42:41 +02:00
|
|
|
#define BKE_UNDO_STR_MAX 64
|
|
|
|
|
2018-03-19 14:17:59 +01:00
|
|
|
struct MemFileUndoData *BKE_memfile_undo_encode(struct Main *bmain,
|
|
|
|
struct MemFileUndoData *mfu_prev);
|
2020-03-17 12:29:36 +01:00
|
|
|
bool BKE_memfile_undo_decode(struct MemFileUndoData *mfu,
|
2021-02-04 22:03:39 +01:00
|
|
|
const enum eUndoStepDir undo_direction,
|
2020-03-17 12:29:36 +01:00
|
|
|
const bool use_old_bmain_data,
|
|
|
|
struct bContext *C);
|
2018-03-19 14:17:59 +01:00
|
|
|
void BKE_memfile_undo_free(struct MemFileUndoData *mfu);
|
2016-06-25 13:10:30 +02:00
|
|
|
|
2016-04-24 14:42:41 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|