diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-10-14 18:39:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-10-14 18:39:08 +0000 |
commit | c50146d0d092d7881c58df46c237d8b50410a3a4 (patch) | |
tree | 644103207534bd2a0e0c0c6cc4f21b3805b21429 /src/fs/gnunet-service-fs_cp.h | |
parent | 4d4c1f978d4044d4ac9706f17342d8425337486c (diff) | |
download | gnunet-c50146d0d092d7881c58df46c237d8b50410a3a4.tar.gz gnunet-c50146d0d092d7881c58df46c237d8b50410a3a4.zip |
-optimizing all FS multi hashmaps for key memory sharing
Diffstat (limited to 'src/fs/gnunet-service-fs_cp.h')
-rw-r--r-- | src/fs/gnunet-service-fs_cp.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/fs/gnunet-service-fs_cp.h b/src/fs/gnunet-service-fs_cp.h index 2d24b313c..3bb05ace6 100644 --- a/src/fs/gnunet-service-fs_cp.h +++ b/src/fs/gnunet-service-fs_cp.h | |||
@@ -384,7 +384,7 @@ GSF_connected_peer_change_preference_ (struct GSF_ConnectedPeer *cp, | |||
384 | /** | 384 | /** |
385 | * Obtain the identity of a connected peer. | 385 | * Obtain the identity of a connected peer. |
386 | * | 386 | * |
387 | * @param cp peer to reserve bandwidth from | 387 | * @param cp peer to get identity of |
388 | * @param id identity to set (written to) | 388 | * @param id identity to set (written to) |
389 | */ | 389 | */ |
390 | void | 390 | void |
@@ -393,6 +393,17 @@ GSF_connected_peer_get_identity_ (const struct GSF_ConnectedPeer *cp, | |||
393 | 393 | ||
394 | 394 | ||
395 | /** | 395 | /** |
396 | * Obtain the identity of a connected peer. | ||
397 | * | ||
398 | * @param cp peer to get identity of | ||
399 | * @return reference to peer identity, valid until peer disconnects (!) | ||
400 | */ | ||
401 | const struct GNUNET_PeerIdentity * | ||
402 | GSF_connected_peer_get_identity2_ (const struct GSF_ConnectedPeer *cp); | ||
403 | |||
404 | |||
405 | |||
406 | /** | ||
396 | * Iterate over all connected peers. | 407 | * Iterate over all connected peers. |
397 | * | 408 | * |
398 | * @param it function to call for each peer | 409 | * @param it function to call for each peer |