Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
clipboard.h File Reference

Clipboard serialization. More...

#include "utils/types.h"
#include <glib.h>
#include <yyjson.h>
Include dependency graph for clipboard.h:

Go to the source code of this file.

Functions

 TYPEDEF_STRUCT (Clipboard)
 
char * clipboard_serialize_to_json_str (const Clipboard *clipboard, bool compress, GError **error)
 Serialize an (optionally) zstd-compressed clipboard JSON.
 
Clipboardclipboard_deserialize_from_json_str (const char *json, bool decompress, GError **error)
 Deserialize an (optionally) zstd-compressed clipboard JSON.
 

Detailed Description

Clipboard serialization.

Definition in file clipboard.h.

Function Documentation

◆ clipboard_deserialize_from_json_str()

Clipboard * clipboard_deserialize_from_json_str ( const char * json,
bool decompress,
GError ** error )

Deserialize an (optionally) zstd-compressed clipboard JSON.

Parameters
decompressDecompress FIXME doesn't work.

◆ clipboard_serialize_to_json_str()

char * clipboard_serialize_to_json_str ( const Clipboard * clipboard,
bool compress,
GError ** error )

Serialize an (optionally) zstd-compressed clipboard JSON.

Parameters
compressCompress FIXME doesn't work.