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