Statistics
| Branch: | Revision:

grapes / src / TopologyManager / cyclon_proto.h @ f3ab0d6d

History | View | Annotate | Download (526 Bytes)

1
#ifndef CYCLON_PROTO
2
#define CYCLON_PROTO
3

    
4
struct cyclon_proto_context;
5

    
6
struct cyclon_proto_context* cyclon_proto_init(struct nodeID *s, void *meta, int meta_size);
7

    
8

    
9
int cyclon_reply(struct cyclon_proto_context *context, const struct peer_cache *c, struct peer_cache *local_cache);
10
int cyclon_query(struct cyclon_proto_context *context, struct peer_cache *local_cache, struct nodeID *dst);
11

    
12
int cyclon_proto_change_metadata(struct cyclon_proto_context *context, void *metadata, int metadata_size);
13
#endif        /* CYCLON_PROTO */