Statistics
| Branch: | Revision:

grapes / som / TopologyManager / nccache.h @ e933e753

History | View | Annotate | Download (762 Bytes)

1
struct cache_entry;
2

    
3
struct socketID *nodeid(const struct cache_entry *c, int i);
4
int cache_add(struct cache_entry *c, struct socketID *neighbour);
5
int cache_del(struct cache_entry *c, struct socketID *neighbour);
6
struct cache_entry *cache_init(int n);
7
int fill_cache_entry(struct cache_entry *c, const struct socketID *s);
8
int in_cache(const struct cache_entry *c, const struct cache_entry *elem);
9
struct socketID *rand_peer(struct cache_entry *c);
10
struct cache_entry *entries_undump(const uint8_t *buff, int size);
11
int entry_dump(uint8_t *b, struct cache_entry *e, int i);
12
struct cache_entry *merge_caches(const struct cache_entry *c1, const struct cache_entry *c2, int cache_size);
13
void cache_update(struct cache_entry *c);
14
int empty(struct cache_entry *c);
15