Revision 41012841 include/peerset.h

View differences:

include/peerset.h
17 17
*/
18 18
typedef struct peerset PeerSet;
19 19

  
20
void peerset_destroy(struct peerset **h);
21

  
22
#define peerset_for_each(pset,p,i) \
23
		for(i=0,p= peerset_size(pset) > 0 ? ((const struct peer*)peerset_get_peers(pset)[0]) : NULL; i<peerset_size(pset);i++,p=((const struct peer*)peerset_get_peers(pset)[i]))
24

  
20 25
 /**
21 26
  * @brief Allocate a  peer set.
22 27
  * 

Also available in: Unified diff