Statistics
| Branch: | Revision:

pstreamer / src / peer_metadata.h @ 56d5986f

History | View | Annotate | Download (421 Bytes)

1
#ifndef __PEER_METADATA_H__
2
#define __PEER_METADATA_H__
3

    
4
#include<stdint.h>
5
#include<peer.h>
6

    
7
#define DEFAULT_PEER_CBSIZE 50
8

    
9
struct metadata {
10
  uint16_t cb_size;
11
  uint8_t neigh_size;
12
} __attribute__((packed));
13

    
14

    
15
int8_t metadata_update(struct metadata *m, uint16_t cb_size, uint8_t neigh_size);
16

    
17
int8_t peer_set_metadata(struct  peer *p, const struct metadata *m);
18

    
19
uint16_t peer_cb_size(const struct peer *p);
20

    
21
#endif