diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-22 12:21:24 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-22 12:21:24 +0100 |
commit | 02132e8fc311b966154fd5d9f0b3686ea8c2bf86 (patch) | |
tree | 2917a9efadd6c66432b21c88131691c0ca38424a /src/include | |
parent | 0e6da3245dec82dd5f3a0f1cd3f3505bf454422d (diff) | |
download | gnunet-02132e8fc311b966154fd5d9f0b3686ea8c2bf86.tar.gz gnunet-02132e8fc311b966154fd5d9f0b3686ea8c2bf86.zip |
introcude GNUNET_i2s2()
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_common.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index 9ad604711..fdcae66fa 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h | |||
@@ -614,6 +614,22 @@ GNUNET_i2s (const struct GNUNET_PeerIdentity *pid); | |||
614 | * @ingroup logging | 614 | * @ingroup logging |
615 | * Convert a peer identity to a string (for printing debug messages). | 615 | * Convert a peer identity to a string (for printing debug messages). |
616 | * This is one of the very few calls in the entire API that is | 616 | * This is one of the very few calls in the entire API that is |
617 | * NOT reentrant! Identical to #GNUNET_i2s(), except that another | ||
618 | * buffer is used so both #GNUNET_i2s() and #GNUNET_i2s2() can be | ||
619 | * used within the same log statement. | ||
620 | * | ||
621 | * @param pid the peer identity | ||
622 | * @return string form of the pid; will be overwritten by next | ||
623 | * call to #GNUNET_i2s(). | ||
624 | */ | ||
625 | const char * | ||
626 | GNUNET_i2s2 (const struct GNUNET_PeerIdentity *pid); | ||
627 | |||
628 | |||
629 | /** | ||
630 | * @ingroup logging | ||
631 | * Convert a peer identity to a string (for printing debug messages). | ||
632 | * This is one of the very few calls in the entire API that is | ||
617 | * NOT reentrant! | 633 | * NOT reentrant! |
618 | * | 634 | * |
619 | * @param pid the peer identity | 635 | * @param pid the peer identity |