StorageAPI: Update documentation and fix storage test plugin

This commit is contained in:
Maschell 2024-05-05 14:37:37 +02:00
parent d9c64bfddd
commit f871b7f228
2 changed files with 2 additions and 1 deletions

View File

@ -703,6 +703,8 @@ namespace WUPSStorageAPI {
/** /**
* @brief Forces a reload of storage data. * @brief Forces a reload of storage data.
* Any existing (sub-)item pointers (including the root item9will be invalid after calling this.
* They need to be re-obtained via \see WUPSStorageAPI_GetRootItem , \see WUPSStorageAPI_GetSubItem or similar functions.
* @return WUPSStorageError WUPS_STORAGE_ERROR_SUCCESS on success, otherwise an appropriate error code. * @return WUPSStorageError WUPS_STORAGE_ERROR_SUCCESS on success, otherwise an appropriate error code.
* \see WUPSStorageAPI_ForceReloadStorage * \see WUPSStorageAPI_ForceReloadStorage
*/ */

View File

@ -254,7 +254,6 @@ TEST_CASE("Create subitem") {
readItem = WUPSStorageAPI::GetSubItem(subItemName, res); readItem = WUPSStorageAPI::GetSubItem(subItemName, res);
REQUIRE(res == WUPS_STORAGE_ERROR_SUCCESS); REQUIRE(res == WUPS_STORAGE_ERROR_SUCCESS);
REQUIRE(readItem); REQUIRE(readItem);
REQUIRE(*readItem == *subItem);
} }
void storeNestedSubItem(int NEST_DEEP_SIZE) { void storeNestedSubItem(int NEST_DEEP_SIZE) {