Loading...
Searching...
No Matches
ep_standalone.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017-2018 Freie Universität Berlin
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
26#ifndef NET_CORD_EP_STANDALONE_H
27#define NET_CORD_EP_STANDALONE_H
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
36typedef enum {
37 CORD_EP_REGISTERED,
38 CORD_EP_DEREGISTERED,
39 CORD_EP_UPDATED,
41
51
60
72
81void cord_ep_standalone_signal(bool connected);
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif /* NET_CORD_EP_STANDALONE_H */
void cord_ep_standalone_run(void)
Spawn a new thread that takes care of sending periodic updates to an active RD entry.
void cord_ep_standalone_reg_cb(cord_ep_standalone_cb_t cb)
Register a callback to be notified about RD endpoint state changes.
void cord_ep_standalone_signal(bool connected)
Signal the cord_ep thread about connection status change.
void(* cord_ep_standalone_cb_t)(cord_ep_standalone_event_t event)
Callback function signature for RD endpoint state synchronization.
cord_ep_standalone_event_t
Possible types of events triggered by the cord_ep_standalone module.
event structure
Definition event.h:148