Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
selections.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2023 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __IO_SELECTIONS_H__
11#define __IO_SELECTIONS_H__
12
13#include "utils/types.h"
14
15#include <glib.h>
16
17#include <yyjson.h>
18
19TYPEDEF_STRUCT (MixerSelections);
20TYPEDEF_STRUCT (ArrangerSelections);
21TYPEDEF_STRUCT (TimelineSelections);
22TYPEDEF_STRUCT (ChordSelections);
23TYPEDEF_STRUCT (MidiArrangerSelections);
24TYPEDEF_STRUCT (AutomationSelections);
25TYPEDEF_STRUCT (AudioSelections);
26TYPEDEF_STRUCT (TracklistSelections);
27
28bool
29mixer_selections_serialize_to_json (
30 yyjson_mut_doc * doc,
31 yyjson_mut_val * sel_obj,
32 const MixerSelections * sel,
33 GError ** error);
34
35bool
36arranger_selections_serialize_to_json (
37 yyjson_mut_doc * doc,
38 yyjson_mut_val * sel_obj,
39 const ArrangerSelections * sel,
40 GError ** error);
41
42bool
43timeline_selections_serialize_to_json (
44 yyjson_mut_doc * doc,
45 yyjson_mut_val * sel_obj,
46 const TimelineSelections * sel,
47 GError ** error);
48
49bool
50midi_arranger_selections_serialize_to_json (
51 yyjson_mut_doc * doc,
52 yyjson_mut_val * sel_obj,
53 const MidiArrangerSelections * sel,
54 GError ** error);
55
56bool
57chord_selections_serialize_to_json (
58 yyjson_mut_doc * doc,
59 yyjson_mut_val * sel_obj,
60 const ChordSelections * sel,
61 GError ** error);
62
63bool
64automation_selections_serialize_to_json (
65 yyjson_mut_doc * doc,
66 yyjson_mut_val * sel_obj,
67 const AutomationSelections * sel,
68 GError ** error);
69
70bool
71audio_selections_serialize_to_json (
72 yyjson_mut_doc * doc,
73 yyjson_mut_val * sel_obj,
74 const AudioSelections * sel,
75 GError ** error);
76
77bool
78tracklist_selections_serialize_to_json (
79 yyjson_mut_doc * doc,
80 yyjson_mut_val * sel_obj,
81 const TracklistSelections * sel,
82 GError ** error);
83
84bool
85mixer_selections_deserialize_from_json (
86 yyjson_doc * doc,
87 yyjson_val * sel_obj,
88 MixerSelections * sel,
89 GError ** error);
90
91bool
92arranger_selections_deserialize_from_json (
93 yyjson_doc * doc,
94 yyjson_val * sel_obj,
96 GError ** error);
97
98bool
99timeline_selections_deserialize_from_json (
100 yyjson_doc * doc,
101 yyjson_val * sel_obj,
102 TimelineSelections * sel,
103 GError ** error);
104
105bool
106midi_arranger_selections_deserialize_from_json (
107 yyjson_doc * doc,
108 yyjson_val * sel_obj,
110 GError ** error);
111
112bool
113chord_selections_deserialize_from_json (
114 yyjson_doc * doc,
115 yyjson_val * sel_obj,
116 ChordSelections * sel,
117 GError ** error);
118
119bool
120automation_selections_deserialize_from_json (
121 yyjson_doc * doc,
122 yyjson_val * sel_obj,
124 GError ** error);
125
126bool
127audio_selections_deserialize_from_json (
128 yyjson_doc * doc,
129 yyjson_val * sel_obj,
130 AudioSelections * sel,
131 GError ** error);
132
133bool
134tracklist_selections_deserialize_from_json (
135 yyjson_doc * doc,
136 yyjson_val * sel_obj,
138 GError ** error);
139
140#endif // __IO_SELECTIONS_H__
Selections to be used for the AudioArrangerWidget's current selections, copying, undoing,...
Selections to be used for the AutomationArrangerWidget's current selections, copying,...
Selections to be used for the ChordArrangerWidget's current selections, copying, undoing,...
A collection of selected MidiNote's.
Selections to be used for the timeline's current selections, copying, undoing, etc.
Selections to be used for the timeline's current selections, copying, undoing, etc.
Selections to be used for the tracklist's current selections, copying, undoing, etc.
Custom types.