anjay
Loading...
Searching...
No Matches
server.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_SERVER_H
11#define ANJAY_INCLUDE_ANJAY_SERVER_H
12
13#include <anjay/anjay_config.h>
14#include <anjay/dm.h>
15
16#include <avsystem/commons/avs_stream.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22typedef struct {
26 int32_t lifetime;
36 const char *binding;
39#ifdef ANJAY_WITH_LWM2M11
55# ifdef ANJAY_WITH_SMS
57 const bool *trigger;
58# endif // ANJAY_WITH_SMS
59#endif // ANJAY_WITH_LWM2M11
61
82 const anjay_server_instance_t *instance,
83 anjay_iid_t *inout_iid);
84
91
120
129 avs_stream_t *out_stream);
130
142 avs_stream_t *in_stream);
143
150
162
179 anjay_iid_t iid,
180 int32_t lifetime);
181
182#ifdef __cplusplus
183}
184#endif
185
186#endif /* ANJAY_INCLUDE_ANJAY_SERVER_H */
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
void anjay_server_object_purge(anjay_t *anjay)
int anjay_server_object_install(anjay_t *anjay)
int anjay_server_object_set_lifetime(anjay_t *anjay, anjay_iid_t iid, int32_t lifetime)
bool anjay_server_object_is_modified(anjay_t *anjay)
avs_error_t anjay_server_object_persist(anjay_t *anjay, avs_stream_t *out_stream)
int anjay_server_object_add_instance(anjay_t *anjay, const anjay_server_instance_t *instance, anjay_iid_t *inout_iid)
avs_error_t anjay_server_object_restore(anjay_t *anjay, avs_stream_t *in_stream)
AVS_LIST[const anjay_ssid_t] anjay_server_get_ssids(anjay_t *anjay)
Definition server.h:22
bool mute_send
Definition server.h:45
bool notification_storing
Definition server.h:38
const uint32_t * communication_sequence_delay_timer
Definition server.h:54
char preferred_transport
Definition server.h:43
int32_t lifetime
Definition server.h:26
anjay_ssid_t ssid
Definition server.h:24
const bool * bootstrap_on_registration_failure
Definition server.h:41
int32_t default_max_period
Definition server.h:32
const char * binding
Definition server.h:36
const uint32_t * communication_retry_timer
Definition server.h:49
int32_t default_min_period
Definition server.h:29
const uint32_t * communication_sequence_retry_count
Definition server.h:51
int32_t disable_timeout
Definition server.h:34
const uint32_t * communication_retry_count
Definition server.h:47
const bool * trigger
Definition server.h:57