Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
clipboard.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_SERIALIZATION_CLIPBOARD_H__
11#define __IO_SERIALIZATION_CLIPBOARD_H__
12
13#include "utils/types.h"
14
15#include <glib.h>
16
17#include <yyjson.h>
18
19TYPEDEF_STRUCT (Clipboard);
20
26char *
28 const Clipboard * clipboard,
29 bool compress,
30 GError ** error);
31
39 const char * json,
40 bool decompress,
41 GError ** error);
42
43#endif // __IO_SERIALIZATION_CLIPBOARD_H__
char * clipboard_serialize_to_json_str(const Clipboard *clipboard, bool compress, GError **error)
Serialize an (optionally) zstd-compressed clipboard JSON.
Clipboard * clipboard_deserialize_from_json_str(const char *json, bool decompress, GError **error)
Deserialize an (optionally) zstd-compressed clipboard JSON.
Clipboard struct.
Definition clipboard.h:58
Custom types.