Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
undo_manager.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2019-2021 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
12
13#ifndef __SCHEMAS_UNDO_UNDO_MANAGER_H__
14#define __SCHEMAS_UNDO_UNDO_MANAGER_H__
15
16#include "zrythm-config.h"
17
18#ifdef HAVE_CYAML
19
21
22typedef struct UndoManager_v1
23{
24 int schema_version;
25 UndoStack_v1 * undo_stack;
26 UndoStack_v1 * redo_stack;
27} UndoManager_v1;
28
29static const cyaml_schema_field_t undo_manager_fields_schema[] = {
30 YAML_FIELD_INT (UndoManager_v1, schema_version),
31 YAML_FIELD_MAPPING_PTR (UndoManager_v1, undo_stack, undo_stack_fields_schema_v1),
32 YAML_FIELD_MAPPING_PTR (UndoManager_v1, redo_stack, undo_stack_fields_schema_v1),
33
34 CYAML_FIELD_END
35};
36
37static const cyaml_schema_value_t undo_manager_schema_v1 = {
38 YAML_VALUE_PTR (UndoManager_v1, undo_manager_fields_schema_v1),
39};
40
41#endif /* HAVE_CYAML */
42
43#endif
Undo stack schema.