Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
cached_plugin_descriptors.h
Go to the documentation of this file.
1// clang-format off
2// SPDX-FileCopyrightText: © 2020-2021, 2024 Alexandros Theodotou <alex@zrythm.org>
3// SPDX-License-Identifier: LicenseRef-ZrythmLicense
4// clang-format on
5
12#ifndef __PLUGINS_CACHED_PLUGIN_DESCRIPTORS_H__
13#define __PLUGINS_CACHED_PLUGIN_DESCRIPTORS_H__
14
16
23#define CACHED_PLUGIN_DESCRIPTORS_SCHEMA_VERSION 5
24
29{
31 GPtrArray * descriptors;
32
34 GPtrArray * blacklisted_sha1s;
36
42
43void
44cached_plugin_descriptors_serialize_to_file (CachedPluginDescriptors * self);
45
49bool
52 const char * sha1);
53
70 GPtrArray * arr,
71 const PluginDescriptor * descr,
72 const char * sha1,
73 bool check_valid,
74 bool check_blacklisted);
75
81void
84 const char * sha1,
85 bool _serialize);
86
93void
96 const PluginDescriptor * descr,
97 int _serialize);
98
102void
104
105void
106cached_plugin_descriptors_free (CachedPluginDescriptors * self);
107
112#endif
NONNULL_ARGS(1) int undo_manager_undo(UndoManager *self
Undo last action.
void cached_plugin_descriptors_blacklist(CachedPluginDescriptors *self, const char *sha1, bool _serialize)
Appends a descriptor to the cache.
bool cached_plugin_descriptors_is_blacklisted(CachedPluginDescriptors *self, const char *sha1)
Returns if the plugin with the given sha1 is blacklisted or not.
CachedPluginDescriptors * cached_plugin_descriptors_read_or_new(void)
Reads the file and fills up the object.
void cached_plugin_descriptors_clear(CachedPluginDescriptors *self)
Clears the descriptors and removes the cache file.
unsigned int cached_plugin_descriptors_find(CachedPluginDescriptors *self, GPtrArray *arr, const PluginDescriptor *descr, const char *sha1, bool check_valid, bool check_blacklisted)
Finds descriptors matching the given one's unique identifiers and adds them to the array.
void cached_plugin_descriptors_add(CachedPluginDescriptors *self, const PluginDescriptor *descr, int _serialize)
Appends a descriptor to the cache.
Descriptors to be cached.
GPtrArray * descriptors
Valid descriptors.
GPtrArray * blacklisted_sha1s
Blacklisted hashes, to skip when scanning.