Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
collections.h
Go to the documentation of this file.
1// clang-format off
2// SPDX-FileCopyrightText: © 2020-2021, 2023-2024 Alexandros Theodotou <alex@zrythm.org>
3// SPDX-License-Identifier: LicenseRef-ZrythmLicense
4// clang-format on
5
12#ifndef __PLUGINS_PLUGIN_COLLECTIONS_H__
13#define __PLUGINS_PLUGIN_COLLECTIONS_H__
14
15#include "plugins/collection.h"
16#include "utils/yaml.h"
17
24#define PLUGIN_COLLECTIONS_SCHEMA_VERSION 2
25
29typedef struct PluginCollections
30{
32 GPtrArray * collections;
34
40
41void
42plugin_collections_serialize_to_file (PluginCollections * self);
43
52void
54 PluginCollections * self,
55 const PluginCollection * collection,
56 bool serialize);
57
61const PluginCollection *
62plugin_collections_find_from_name (
63 const PluginCollections * self,
64 const char * name);
65
72void
74 PluginCollections * self,
75 PluginCollection * collection,
76 bool serialize);
77
78void
79plugin_collections_free (PluginCollections * self);
80
85#endif
Plugin collection.
void plugin_collections_add(PluginCollections *self, const PluginCollection *collection, bool serialize)
Appends a collection.
void plugin_collections_remove(PluginCollections *self, PluginCollection *collection, bool serialize)
Removes the given collection.
PluginCollections * plugin_collections_read_or_new(void)
Reads the file and fills up the object.
Plugin collection used in the plugin browser.
Definition collection.h:28
Serializable plugin collections.
Definition collections.h:30
GPtrArray * collections
Plugin collections.
Definition collections.h:32
YAML utils.