void View_clear(struct View *view)
Clear the view.
int View_contains_peer(const struct View *view, const struct GNUNET_PeerIdentity *peer)
Check whether view contains a peer.
void View_change_len(struct View *view, unsigned int len)
Change length of view.
int View_put(struct View *view, const struct GNUNET_PeerIdentity *peer)
Insert peer into the view.
struct View * View_create(unsigned int len)
Create an empty view.
const struct GNUNET_PeerIdentity * View_get_as_array(const struct View *view)
Get the view as an array.
unsigned int View_size(const struct View *view)
Get the size of the view.
void View_destroy(struct View *view)
Destroy view.
int View_remove_peer(struct View *view, const struct GNUNET_PeerIdentity *peer)
Remove peer from view.
const struct GNUNET_PeerIdentity * View_get_peer_by_index(const struct View *view, uint32_t index)
Get a peer by index.
The identity of the host (wraps the signing key of the peer).