anjay
Loading...
Searching...
No Matches
attr_storage.h
Go to the documentation of this file.
1/*
2 * Copyright 2017-2024 AVSystem <avsystem@avsystem.com>
3 * AVSystem Anjay LwM2M SDK
4 * All rights reserved.
5 *
6 * Licensed under the AVSystem-5-clause License.
7 * See the attached LICENSE file for details.
8 */
9
10#ifndef ANJAY_INCLUDE_ANJAY_ATTR_STORAGE_H
11#define ANJAY_INCLUDE_ANJAY_ATTR_STORAGE_H
12
13#include <avsystem/commons/avs_stream.h>
14
15#include <anjay/dm.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
55
63
72 avs_stream_t *out_stream);
73
88avs_error_t anjay_attr_storage_restore(anjay_t *anjay, avs_stream_t *in_stream);
89
105 anjay_ssid_t ssid,
106 anjay_oid_t oid,
107 const anjay_dm_oi_attributes_t *attrs);
124 anjay_t *anjay,
125 anjay_ssid_t ssid,
126 anjay_oid_t oid,
127 anjay_iid_t iid,
128 const anjay_dm_oi_attributes_t *attrs);
129
147 anjay_ssid_t ssid,
148 anjay_oid_t oid,
149 anjay_iid_t iid,
150 anjay_rid_t rid,
151 const anjay_dm_r_attributes_t *attrs);
152
153#ifdef ANJAY_WITH_LWM2M11
172 anjay_t *anjay,
173 anjay_ssid_t ssid,
174 anjay_oid_t oid,
175 anjay_iid_t iid,
176 anjay_rid_t rid,
177 anjay_riid_t riid,
178 const anjay_dm_r_attributes_t *attrs);
179#endif // ANJAY_WITH_LWM2M11
180
181#ifdef __cplusplus
182}
183#endif
184
185#endif /* ANJAY_INCLUDE_ANJAY_ATTR_STORAGE_H */
int anjay_attr_storage_set_object_attrs(anjay_t *anjay, anjay_ssid_t ssid, anjay_oid_t oid, const anjay_dm_oi_attributes_t *attrs)
void anjay_attr_storage_purge(anjay_t *anjay)
avs_error_t anjay_attr_storage_restore(anjay_t *anjay, avs_stream_t *in_stream)
int anjay_attr_storage_set_instance_attrs(anjay_t *anjay, anjay_ssid_t ssid, anjay_oid_t oid, anjay_iid_t iid, const anjay_dm_oi_attributes_t *attrs)
int anjay_attr_storage_set_resource_attrs(anjay_t *anjay, anjay_ssid_t ssid, anjay_oid_t oid, anjay_iid_t iid, anjay_rid_t rid, const anjay_dm_r_attributes_t *attrs)
int anjay_attr_storage_set_resource_instance_attrs(anjay_t *anjay, anjay_ssid_t ssid, anjay_oid_t oid, anjay_iid_t iid, anjay_rid_t rid, anjay_riid_t riid, const anjay_dm_r_attributes_t *attrs)
bool anjay_attr_storage_is_modified(anjay_t *anjay)
avs_error_t anjay_attr_storage_persist(anjay_t *anjay, avs_stream_t *out_stream)
uint16_t anjay_oid_t
Definition core.h:1182
uint16_t anjay_rid_t
Definition core.h:1188
uint16_t anjay_iid_t
Definition core.h:1185
struct anjay_struct anjay_t
Definition core.h:45
uint16_t anjay_ssid_t
Definition core.h:31
uint16_t anjay_riid_t
Definition core.h:1191
Definition dm.h:38
Definition dm.h:54