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
30 extern "C" {
31 #endif
32 
36 typedef enum {
37  CORD_EP_REGISTERED,
38  CORD_EP_DEREGISTERED,
39  CORD_EP_UPDATED,
41 
51 
59 void cord_ep_standalone_run(void);
60 
72 
81 void cord_ep_standalone_signal(bool connected);
82 
83 #ifdef __cplusplus
84 }
85 #endif
86 
87 #endif /* NET_CORD_EP_STANDALONE_H */
88 
cord_ep_standalone_event_t
cord_ep_standalone_event_t
Possible types of events triggered by the cord_ep_standalone module.
Definition: ep_standalone.h:36
event
event structure
Definition: event.h:142
cord_ep_standalone_signal
void cord_ep_standalone_signal(bool connected)
Signal the cord_ep thread about connection status change.
cord_ep_standalone_cb_t
void(* cord_ep_standalone_cb_t)(cord_ep_standalone_event_t event)
Callback function signature for RD endpoint state synchronization.
Definition: ep_standalone.h:50
cord_ep_standalone_reg_cb
void cord_ep_standalone_reg_cb(cord_ep_standalone_cb_t cb)
Register a callback to be notified about RD endpoint state changes.
cord_ep_standalone_run
void cord_ep_standalone_run(void)
Spawn a new thread that takes care of sending periodic updates to an active RD entry.