mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-21 04:23:50 +01:00
Merge pull request #5465 from OlegHahm/ccnl_local_producer
pkg ccn-lite: callbacks for on-the-fly content creation
This commit is contained in:
commit
595dec37ae
@ -1,6 +1,6 @@
|
|||||||
PKG_NAME=ccn-lite
|
PKG_NAME=ccn-lite
|
||||||
PKG_URL=https://github.com/cn-uofbasel/ccn-lite/
|
PKG_URL=https://github.com/cn-uofbasel/ccn-lite/
|
||||||
PKG_VERSION=9e48d328e162e97f091d913ada0bf50f58d1d3d7
|
PKG_VERSION=1ae5bddc68334bc062c148b877894ba8155112c4
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
|
||||||
|
|||||||
@ -136,6 +136,12 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
extern struct ccnl_relay_s ccnl_relay;
|
extern struct ccnl_relay_s ccnl_relay;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Function pointer type for local producer function
|
||||||
|
*/
|
||||||
|
typedef int (*ccnl_producer_func)(struct ccnl_relay_s *relay, struct
|
||||||
|
ccnl_face_s *from, struct ccnl_pkt_s *pkt);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Start the main CCN-Lite event-loop
|
* @brief Start the main CCN-Lite event-loop
|
||||||
*
|
*
|
||||||
@ -208,6 +214,16 @@ int ccnl_fib_rem_entry(struct ccnl_relay_s *relay, struct ccnl_prefix_s *pfx, st
|
|||||||
*/
|
*/
|
||||||
void ccnl_fib_show(struct ccnl_relay_s *relay);
|
void ccnl_fib_show(struct ccnl_relay_s *relay);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Set a local producer function
|
||||||
|
*
|
||||||
|
* Setting a local producer function allows to generate content on the fly or
|
||||||
|
* react otherwise on any kind of incoming interest.
|
||||||
|
*
|
||||||
|
* @param[in] func The function to be called first for any incoming interest
|
||||||
|
*/
|
||||||
|
void ccnl_set_local_producer(ccnl_producer_func func);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user