Statistics
| Branch: | Revision:

grapes / include / topmanager.h @ 005954ae

History | View | Annotate | Download (672 Bytes)

1
#ifndef TOPMAN_H
2
#define TOPMAN_H
3
const struct nodeID **topGetNeighbourhood(int *n);
4
const void **topGetMetadata(int *metadata_size);
5
int topGrowNeighbourhood(int n);
6
int topShrinkNeighbourhood(int n);
7
int topRemoveNeighbour(struct nodeID *neighbour);
8

    
9

    
10
int topInit(struct nodeID *myID, void *metadata, int metadata_size);
11
int topAddNeighbour(struct nodeID *neighbour, void *metadata, int metadata_size);
12
int topParseData(const uint8_t *buff, int len);
13

    
14
/*
15
//const struct peer* topGetNeighbour(PeerID?) ???
16
//void topRegAddListener(void (*NewNeighbourCB)(const struct peer ))
17
//void topRegDelListener(void (*DeadNeighbourCB)(const struct peer ))
18
*/
19

    
20
#endif /* TOPMAN_H */