Helper library for interning of peer identifiers. More...
#include "gnunet_util_lib.h"Go to the source code of this file.
Typedefs | |
| typedef unsigned int | GNUNET_PEER_Id |
| A GNUNET_PEER_Id is simply a shorter version of a "struct
GNUNET_PeerIdentifier" that can be used inside of a GNUnet peer to save memory when the same identifier needs to be used over and over again. | |
Functions | |
| GNUNET_PEER_Id | GNUNET_PEER_search (const struct GNUNET_PeerIdentity *pid) |
| Search for a peer identity. | |
| GNUNET_PEER_Id | GNUNET_PEER_intern (const struct GNUNET_PeerIdentity *pid) |
| Intern an peer identity. | |
| void | GNUNET_PEER_change_rc (GNUNET_PEER_Id id, int delta) |
| Change the reference counter of an interned PID. | |
| void | GNUNET_PEER_decrement_rcs (const GNUNET_PEER_Id *ids, unsigned int count) |
| Decrement multiple RCs of peer identities by one. | |
| void | GNUNET_PEER_resolve (GNUNET_PEER_Id id, struct GNUNET_PeerIdentity *pid) |
| Convert an interned PID to a normal peer identity. | |
| const struct GNUNET_PeerIdentity * | GNUNET_PEER_resolve2 (GNUNET_PEER_Id id) |
| Convert an interned PID to a normal peer identity. | |
Helper library for interning of peer identifiers.
Definition in file gnunet_peer_lib.h.