diff options
Diffstat (limited to 'src/include/gnunet_common.h')
-rw-r--r-- | src/include/gnunet_common.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index 487bd32da..3221ad868 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h | |||
@@ -438,6 +438,17 @@ GNUNET_h2s_full (const GNUNET_HashCode * hc); | |||
438 | const char * | 438 | const char * |
439 | GNUNET_i2s (const struct GNUNET_PeerIdentity *pid); | 439 | GNUNET_i2s (const struct GNUNET_PeerIdentity *pid); |
440 | 440 | ||
441 | /** | ||
442 | * Convert a peer identity to a string (for printing debug messages). | ||
443 | * This is one of the very few calls in the entire API that is | ||
444 | * NOT reentrant! | ||
445 | * | ||
446 | * @param pid the peer identity | ||
447 | * @return string form of the pid; will be overwritten by next | ||
448 | * call to GNUNET_i2s. | ||
449 | */ | ||
450 | const char * | ||
451 | GNUNET_i2s_full (const struct GNUNET_PeerIdentity *pid); | ||
441 | 452 | ||
442 | /** | 453 | /** |
443 | * Convert a "struct sockaddr*" (IPv4 or IPv6 address) to a string | 454 | * Convert a "struct sockaddr*" (IPv4 or IPv6 address) to a string |