Statistics
| Branch: | Revision:

grapes / src / Cache / topo_proto.h @ b3878656

History | View | Annotate | Download (574 Bytes)

1
#ifndef TOPO_PROTO
2
#define TOPO_PROTO
3

    
4
struct topo_context;
5

    
6
int topo_reply(struct topo_context *context, const struct peer_cache *c, struct peer_cache *local_cache, int protocol, int type, int max_peers, int include_me);
7
int topo_query_peer(struct topo_context *context, struct peer_cache *local_cache, struct nodeID *dst, int protocol, int type, int max_peers);
8

    
9
int topo_proto_metadata_update(struct topo_context *context, const void *meta, int meta_size);
10
struct topo_context* topo_proto_init(struct nodeID *s, const void *meta, int meta_size);
11

    
12
#endif        /* TOPO_PROTO */