ep_standalone.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2017-2018 Freie Universität Berlin
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
32 typedef enum {
33  CORD_EP_REGISTERED,
34  CORD_EP_DEREGISTERED,
35  CORD_EP_UPDATED,
37 
47 
56 
68 
77 void cord_ep_standalone_signal(bool connected);
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
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:46
cord_ep_standalone_event_t
Possible types of events triggered by the cord_ep_standalone module.
Definition: ep_standalone.h:32
event structure
Definition: event.h:142