30# ifdef ANJ_WITH_PERSISTENCE
35# define ANJ_INTERNAL_INCLUDE_EXCHANGE
36# include <anj_internal/exchange.h>
37# undef ANJ_INTERNAL_INCLUDE_EXCHANGE
57# define ANJ_NTP_ERR_IN_PROGRESS -1
63# define ANJ_NTP_ERR_CONFIGURATION -2
69# define ANJ_NTP_ERR_OBJECT_CREATION_FAILED -3
110# ifdef ANJ_WITH_PERSISTENCE
300# ifdef ANJ_WITH_PERSISTENCE
336# define ANJ_INTERNAL_INCLUDE_NTP
337# include <anj_internal/ntp.h>
338# undef ANJ_INTERNAL_INCLUDE_NTP
Platform hooks for network transport integration.
Core type and constant definitions for Anjay Lite.
struct anj_struct anj_t
Definition defs.h:129
struct _anj_ntp_struct anj_ntp_t
Definition defs.h:136
Global configuration validation header for Anjay Lite.
struct anj_ntp_configuration_struct anj_ntp_configuration_t
void anj_ntp_step(anj_ntp_t *ntp)
int anj_ntp_start(anj_ntp_t *ntp)
int anj_ntp_init(anj_t *anj, anj_ntp_t *ntp, const anj_ntp_configuration_t *config)
void anj_ntp_event_callback_t(void *arg, anj_ntp_t *ntp, anj_ntp_status_t status, anj_time_real_t synchronized_time)
Definition ntp.h:137
int anj_ntp_obj_restore(anj_ntp_t *ntp, const anj_persistence_context_t *ctx)
void anj_ntp_terminate(anj_ntp_t *ntp)
anj_ntp_status_t
Definition ntp.h:76
@ ANJ_NTP_STATUS_INITIAL
Definition ntp.h:82
@ ANJ_NTP_STATUS_PERIOD_EXCEEDED
Definition ntp.h:89
@ ANJ_NTP_STATUS_OBJECT_UPDATED
Definition ntp.h:115
@ ANJ_NTP_STATUS_FINISHED_SUCCESSFULLY
Definition ntp.h:101
@ ANJ_NTP_STATUS_IN_PROGRESS
Definition ntp.h:94
@ ANJ_NTP_STATUS_FINISHED_WITH_ERROR
Definition ntp.h:108
int anj_ntp_obj_store(anj_ntp_t *ntp, const anj_persistence_context_t *ctx)
Persistence API for storing and restoring Anjay Lite state.
Definition anj_net_api.h:148
anj_ntp_event_callback_t * event_cb
Definition ntp.h:153
uint32_t ntp_period_hours
Definition ntp.h:198
const anj_net_socket_configuration_t * net_socket_cfg
Definition ntp.h:232
const char * ntp_server_address
Definition ntp.h:172
const char * backup_ntp_server_address
Definition ntp.h:185
anj_time_duration_t response_timeout
Definition ntp.h:225
uint16_t attempts
Definition ntp.h:208
void * event_cb_arg
Definition ntp.h:159
Definition persistence.h:91
Relative duration of time.
Definition time.h:106
Absolute real (calendar) time.
Definition time.h:131