Wirepas SDK
wms_storage.h
Go to the documentation of this file.
1/* Copyright 2017 Wirepas Ltd. All Rights Reserved.
2 *
3 * See file LICENSE.txt for full license details.
4 *
5 */
6
18#ifndef APP_LIB_STORAGE_H_
19#define APP_LIB_STORAGE_H_
20
21#include <stdlib.h>
22#include <stdint.h>
23#include <stdbool.h>
24
25#include "wms_app.h"
26
28#define APP_LIB_STORAGE_NAME 0x7713d6af
29
31#define APP_LIB_STORAGE_VERSION 0x200
32
46typedef app_res_e
47 (*app_lib_storage_write_persistent_f)(const void * bytes,
48 size_t num_bytes);
49
59typedef app_res_e
61 size_t num_bytes);
62
71typedef size_t
73
83
84#endif /* APP_LIB_STORAGE_H_ */
app_res_e
Definition wms_app.h:202
app_lib_storage_read_persistent_f readPersistent
Definition wms_storage.h:80
app_res_e(* app_lib_storage_write_persistent_f)(const void *bytes, size_t num_bytes)
Write data to persistent storage.
Definition wms_storage.h:47
size_t(* app_lib_storage_get_persistent_max_size_f)(void)
Get persistent maximum size.
Definition wms_storage.h:72
app_lib_storage_write_persistent_f writePersistent
Definition wms_storage.h:79
app_res_e(* app_lib_storage_read_persistent_f)(void *bytes, size_t num_bytes)
Read data written to persistent storage.
Definition wms_storage.h:60
app_lib_storage_get_persistent_max_size_f getPersistentMaxSize
Definition wms_storage.h:81