Revision b3878656 src/Cache/topocache.h

View differences:

src/Cache/topocache.h
10 10
void cache_update(struct peer_cache *c);
11 11
struct nodeID *nodeid(const struct peer_cache *c, int i);
12 12
const void *get_metadata(const struct peer_cache *c, int *size);
13
int cache_metadata_update(struct peer_cache *c, struct nodeID *p, const void *meta, int meta_size);
13
int cache_metadata_update(struct peer_cache *c, const struct nodeID *p, const void *meta, int meta_size);
14 14
int cache_add_ranked(struct peer_cache *c, struct nodeID *neighbour, const void *meta, int meta_size, ranking_function f, const void *tmeta);
15 15
int cache_add(struct peer_cache *c, struct nodeID *neighbour, const void *meta, int meta_size);
16
int cache_del(struct peer_cache *c, struct nodeID *neighbour);
16
int cache_del(struct peer_cache *c, const struct nodeID *neighbour);
17 17

  
18 18
struct nodeID *rand_peer(struct peer_cache *c, void **meta, int max);
19 19
struct nodeID *last_peer(struct peer_cache *c);

Also available in: Unified diff