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 
9 #pragma once
10 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
35 typedef enum {
36  CORD_EP_REGISTERED,
37  CORD_EP_DEREGISTERED,
38  CORD_EP_UPDATED,
40 
50 
59 
71 
80 void cord_ep_standalone_signal(bool connected);
81 
82 #ifdef __cplusplus
83 }
84 #endif
85 
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.
Definition: ep_standalone.h:49
cord_ep_standalone_event_t
Possible types of events triggered by the cord_ep_standalone module.
Definition: ep_standalone.h:35
event structure
Definition: event.h:145