diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-10-14 18:27:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-10-14 18:27:22 +0000 |
commit | f2061adfbfeabe988a185145d9df140d14131e74 (patch) | |
tree | 496e7deaebf0dc8c75c2c7f1e308ef9f3c633b2f /src/include/gnunet_peer_lib.h | |
parent | a4582ea33040edb25b836eb4533ba085fe70752e (diff) | |
download | gnunet-f2061adfbfeabe988a185145d9df140d14131e74.tar.gz gnunet-f2061adfbfeabe988a185145d9df140d14131e74.zip |
-enable peer API to return pointer to interned peer hash code
Diffstat (limited to 'src/include/gnunet_peer_lib.h')
-rw-r--r-- | src/include/gnunet_peer_lib.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/gnunet_peer_lib.h b/src/include/gnunet_peer_lib.h index 617aca67c..6f5dee845 100644 --- a/src/include/gnunet_peer_lib.h +++ b/src/include/gnunet_peer_lib.h | |||
@@ -98,6 +98,16 @@ void | |||
98 | GNUNET_PEER_resolve (GNUNET_PEER_Id id, struct GNUNET_PeerIdentity *pid); | 98 | GNUNET_PEER_resolve (GNUNET_PEER_Id id, struct GNUNET_PeerIdentity *pid); |
99 | 99 | ||
100 | 100 | ||
101 | /** | ||
102 | * Convert an interned PID to a normal peer identity. | ||
103 | * | ||
104 | * @param id interned PID to convert | ||
105 | * @return pointer to peer identity, valid as long 'id' is valid | ||
106 | */ | ||
107 | const struct GNUNET_PeerIdentity * | ||
108 | GNUNET_PEER_resolve2 (GNUNET_PEER_Id id); | ||
109 | |||
110 | |||
101 | #if 0 /* keep Emacsens' auto-indent happy */ | 111 | #if 0 /* keep Emacsens' auto-indent happy */ |
102 | { | 112 | { |
103 | #endif | 113 | #endif |