2021-11-03 20:22:49 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
|
2022-09-14 19:11:38 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2022-01-05 19:10:18 +03:00
|
|
|
bool saved_struct_load(const char* path, void* data, size_t size, uint8_t magic, uint8_t version);
|
2021-11-03 20:22:49 +03:00
|
|
|
|
2022-01-05 19:10:18 +03:00
|
|
|
bool saved_struct_save(const char* path, void* data, size_t size, uint8_t magic, uint8_t version);
|
2022-09-14 19:11:38 +03:00
|
|
|
|
2022-12-20 15:32:24 +03:00
|
|
|
bool saved_struct_get_payload_size(
|
|
|
|
const char* path,
|
|
|
|
uint8_t magic,
|
|
|
|
uint8_t version,
|
|
|
|
size_t* payload_size);
|
|
|
|
|
2022-09-14 19:11:38 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|