00001 #ifndef TOPMAN_H 00002 #define TOPMAN_H 00003 00033 const struct nodeID **topGetNeighbourhood(int *n); 00034 00053 const void *topGetMetadata(int *metadata_size); 00054 00063 int topGrowNeighbourhood(int n); 00064 00073 int topShrinkNeighbourhood(int n); 00074 00085 int topRemoveNeighbour(struct nodeID *neighbour); 00086 00087 00102 int topChangeMetadata(struct nodeID *peer, void *metadata, int metadata_size); 00103 00113 int topInit(struct nodeID *myID, void *metadata, int metadata_size, const char *config); 00114 00128 int topAddNeighbour(struct nodeID *neighbour, void *metadata, int metadata_size); 00129 00141 int topParseData(const uint8_t *buff, int len); 00142 00143 #endif /* TOPMAN_H */