2018-04-02 18:19:28 +02:00
|
|
|
#ifndef __DISCOVERY_CACHE_H
|
|
|
|
#define __DISCOVERY_CACHE_H
|
|
|
|
|
|
|
|
|
2018-04-02 21:00:37 +02:00
|
|
|
|
2022-08-01 10:04:25 +02:00
|
|
|
#include "cw/mod.h"
|
2018-04-02 18:19:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
struct cw_DiscoveryCache * discovery_cache_create(int len);
|
2018-04-02 21:00:37 +02:00
|
|
|
|
2018-04-02 18:19:28 +02:00
|
|
|
void discovery_cache_add(struct cw_DiscoveryCache *cache,
|
2018-04-02 21:00:37 +02:00
|
|
|
struct sockaddr * addr, struct cw_Mod * mod_capwap, struct cw_Mod * mod_bindings);
|
2018-04-02 18:19:28 +02:00
|
|
|
|
2018-04-02 21:00:37 +02:00
|
|
|
int discovery_cache_get(struct cw_DiscoveryCache * cache,struct sockaddr *addr,
|
|
|
|
struct cw_Mod ** modcapwap, struct cw_Mod **modbindings);
|
2018-04-02 18:19:28 +02:00
|
|
|
|
2022-08-01 10:04:25 +02:00
|
|
|
void discovery_cache_destroy(struct cw_DiscoveryCache * c);
|
|
|
|
#endif
|