Library to read and write the FRIENDS file. More...
#include "gnunet_util_lib.h"
Go to the source code of this file.
Typedefs | |
typedef void(* | GNUNET_FRIENDS_Callback) (void *cls, const struct GNUNET_PeerIdentity *friend_id) |
Signature of a function called on each friend found. More... | |
Functions | |
int | GNUNET_FRIENDS_parse (const struct GNUNET_CONFIGURATION_Handle *cfg, GNUNET_FRIENDS_Callback cb, void *cb_cls) |
Parse the FRIENDS file. More... | |
struct GNUNET_FRIENDS_Writer * | GNUNET_FRIENDS_write_start (const struct GNUNET_CONFIGURATION_Handle *cfg) |
Start writing a fresh FRIENDS file. More... | |
int | GNUNET_FRIENDS_write_stop (struct GNUNET_FRIENDS_Writer *w) |
Finish writing out the friends file. More... | |
int | GNUNET_FRIENDS_write (struct GNUNET_FRIENDS_Writer *w, const struct GNUNET_PeerIdentity *friend_id) |
Add a friend to the friends file. More... | |
Library to read and write the FRIENDS file.
Definition in file gnunet_friends_lib.h.