diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-02-07 22:44:36 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-02-07 22:44:36 +0000 |
commit | 86d7f49fc64f0c766d4bec6b3f34879f108fc8a9 (patch) | |
tree | b8472cd2eeeacc601513f36bc03149ec9151db03 /src/fs/gnunet-service-fs_cp.c | |
parent | de952b871bfe79a7f2b79d9ab04dc37933d49bf1 (diff) | |
download | gnunet-86d7f49fc64f0c766d4bec6b3f34879f108fc8a9.tar.gz gnunet-86d7f49fc64f0c766d4bec6b3f34879f108fc8a9.zip |
stuff
Diffstat (limited to 'src/fs/gnunet-service-fs_cp.c')
-rw-r--r-- | src/fs/gnunet-service-fs_cp.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c index 4c7c1b52d..0bacb3ec3 100644 --- a/src/fs/gnunet-service-fs_cp.c +++ b/src/fs/gnunet-service-fs_cp.c | |||
@@ -778,6 +778,21 @@ GSF_iterate_connected_peers_ (GSF_ConnectedPeerIterator it, | |||
778 | 778 | ||
779 | 779 | ||
780 | /** | 780 | /** |
781 | * Obtain the identity of a connected peer. | ||
782 | * | ||
783 | * @param cp peer to reserve bandwidth from | ||
784 | * @param id identity to set (written to) | ||
785 | */ | ||
786 | void | ||
787 | GSF_connected_peer_get_identity_ (const struct GSF_ConnectedPeer *cp, | ||
788 | struct GNUNET_PeerIdentity *id) | ||
789 | { | ||
790 | GNUNET_PEER_resolve (cp->pid, | ||
791 | &id); | ||
792 | } | ||
793 | |||
794 | |||
795 | /** | ||
781 | * Write host-trust information to a file - flush the buffer entry! | 796 | * Write host-trust information to a file - flush the buffer entry! |
782 | * | 797 | * |
783 | * @param cls closure, not used | 798 | * @param cls closure, not used |