物联网操作系统AliOS Things 3.3
kv.h
浏览该文件的文档.
1 /*
2  * Copyright (C) 2017-2021 Alibaba Group Holding Limited
3  */
4 
5 #ifndef AOS_KV_H
6 #define AOS_KV_H
7 
8 #include <aos/kernel.h>
9 #include <string.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
24 int aos_kv_init(void);
25 
31 void aos_kv_deinit(void);
32 
43 int aos_kv_set(const char *key, const void *value, int len, int sync);
44 
58 int aos_kv_get(const char *key, void *buffer, int *buffer_len);
59 
67 int aos_kv_del(const char *key);
68 
76 int aos_kv_del_by_prefix(const char *prefix);
77 
88 int aos_kv_secure_set(const char *key, const void *value, int len, int sync);
89 
103 int aos_kv_secure_get(const char *key, void *buffer, int *buffer_len);
104 
109 #ifdef __cplusplus
110 }
111 #endif
112 
113 #endif /* AOS_KV_H */
int aos_kv_set(const char *key, const void *value, int len, int sync)
int aos_kv_del_by_prefix(const char *prefix)
int aos_kv_init(void)
int aos_kv_del(const char *key)
int aos_kv_secure_set(const char *key, const void *value, int len, int sync)
int aos_kv_secure_get(const char *key, void *buffer, int *buffer_len)
void aos_kv_deinit(void)
int aos_kv_get(const char *key, void *buffer, int *buffer_len)