2023-10-07 22:38:27 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <wups/storage.h>
|
|
|
|
|
|
|
|
namespace StorageUtils::API {
|
2023-12-16 12:44:20 +01:00
|
|
|
namespace Internal {
|
|
|
|
WUPSStorageError OpenStorage(std::string_view plugin_id, wups_storage_root_item &outItem);
|
|
|
|
WUPSStorageError CloseStorage(wups_storage_root_item item);
|
|
|
|
} // namespace Internal
|
|
|
|
|
|
|
|
WUPSStorageError SaveStorage(wups_storage_root_item root, bool force);
|
|
|
|
WUPSStorageError ForceReloadStorage(wups_storage_root_item root);
|
|
|
|
WUPSStorageError WipeStorage(wups_storage_root_item root);
|
|
|
|
|
2023-10-07 22:38:27 +02:00
|
|
|
WUPSStorageError DeleteItem(wups_storage_root_item root, wups_storage_item parent, const char *key);
|
|
|
|
WUPSStorageError CreateSubItem(wups_storage_root_item root, wups_storage_item parent, const char *key, wups_storage_item *outItem);
|
|
|
|
WUPSStorageError GetSubItem(wups_storage_root_item root, wups_storage_item parent, const char *key, wups_storage_item *outItem);
|
|
|
|
WUPSStorageError StoreItem(wups_storage_root_item root, wups_storage_item parent, const char *key, WUPSStorageItemType itemType, void *data, uint32_t length);
|
|
|
|
WUPSStorageError GetItem(wups_storage_root_item root, wups_storage_item parent, const char *key, WUPSStorageItemType itemType, void *data, uint32_t maxSize, uint32_t *outSize);
|
2024-02-23 11:07:56 +01:00
|
|
|
WUPSStorageError GetItemSize(wups_storage_root_item root, wups_storage_item parent, const char *key, WUPSStorageItemType itemType, uint32_t *outSize);
|
2023-10-07 22:38:27 +02:00
|
|
|
} // namespace StorageUtils::API
|