Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
gui_backend.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_GUI_BACKEND_H__
11#define __IO_GUI_BACKEND_H__
12
13#include "utils/types.h"
14
15#include <glib.h>
16
17#include <yyjson.h>
18
19TYPEDEF_STRUCT (ClipEditor);
20TYPEDEF_STRUCT (Timeline);
21TYPEDEF_STRUCT (SnapGrid);
22TYPEDEF_STRUCT (QuantizeOptions);
23
24bool
25clip_editor_serialize_to_json (
26 yyjson_mut_doc * doc,
27 yyjson_mut_val * ce_obj,
28 const ClipEditor * ce,
29 GError ** error);
30
31bool
32timeline_serialize_to_json (
33 yyjson_mut_doc * doc,
34 yyjson_mut_val * t_obj,
35 const Timeline * t,
36 GError ** error);
37
38bool
39snap_grid_serialize_to_json (
40 yyjson_mut_doc * doc,
41 yyjson_mut_val * sg_obj,
42 const SnapGrid * sg,
43 GError ** error);
44
45bool
46quantize_options_serialize_to_json (
47 yyjson_mut_doc * doc,
48 yyjson_mut_val * qo_obj,
49 const QuantizeOptions * qo,
50 GError ** error);
51
52bool
53clip_editor_deserialize_from_json (
54 yyjson_doc * doc,
55 yyjson_val * ce_obj,
56 ClipEditor * ce,
57 GError ** error);
58
59bool
60timeline_deserialize_from_json (
61 yyjson_doc * doc,
62 yyjson_val * t_obj,
63 Timeline * t,
64 GError ** error);
65
66bool
67snap_grid_deserialize_from_json (
68 yyjson_doc * doc,
69 yyjson_val * sg_obj,
70 SnapGrid * sg,
71 GError ** error);
72
73bool
74quantize_options_deserialize_from_json (
75 yyjson_doc * doc,
76 yyjson_val * qo_obj,
77 QuantizeOptions * qo,
78 GError ** error);
79
80#endif // __IO_GUI_BACKEND_H__
Clip editor serializable backend.
Definition clip_editor.h:39
Clip editor serializable backend.
Definition timeline.h:30
Custom types.