Statistics
| Branch: | Revision:

streamers / topology.h @ 9176d3d1

History | View | Annotate | Download (611 Bytes)

1
/*
2
 *  Copyright (c) 2010 Csaba Kiraly
3
 *  Copyright (c) 2010 Luca Abeni
4
 *
5
 *  This is free software; see gpl-3.0.txt
6
 */
7

    
8
#ifndef TOPOLOGY_H
9
#define TOPOLOGY_H
10

    
11
#include <stdint.h>
12

    
13
#define MSG_TYPE_STREAMER_TOPOLOGY   0x22
14

    
15
int peers_init(void);
16
struct peerset *get_peers(void);
17
void update_peers(struct nodeID *from, const uint8_t *buff, int len);
18
struct peer *nodeid_to_peer(const struct nodeID* id, int reg);
19
int topoAddNeighbour(struct nodeID *neighbour, void *metadata, int metadata_size);
20
int topologyInit(struct nodeID *myID, const char *config);
21
void topologyShutdown(void);
22

    
23
#endif        /* TOPOLOGY_H */