12#ifndef __PLUGINS_CACHED_PLUGIN_DESCRIPTORS_H__
13#define __PLUGINS_CACHED_PLUGIN_DESCRIPTORS_H__
23#define CACHED_PLUGIN_DESCRIPTORS_SCHEMA_VERSION 5
74 bool check_blacklisted);
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.