projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8feed57
)
h2s_full, useful for testing
author
Nathan S. Evans
<evans@in.tum.de>
Fri, 30 Jul 2010 14:44:00 +0000
(14:44 +0000)
committer
Nathan S. Evans
<evans@in.tum.de>
Fri, 30 Jul 2010 14:44:00 +0000
(14:44 +0000)
src/include/gnunet_common.h
patch
|
blob
|
history
diff --git
a/src/include/gnunet_common.h
b/src/include/gnunet_common.h
index 0639ba0a275a10c3c2b4a2e38c709d79c62258c6..8703dc3b7870b4b690df43644d76ab07ccc99b0c 100644
(file)
--- a/
src/include/gnunet_common.h
+++ b/
src/include/gnunet_common.h
@@
-228,6
+228,16
@@
void GNUNET_logger_remove (GNUNET_Logger logger, void *logger_cls);
*/
const char *GNUNET_h2s (const GNUNET_HashCode *hc);
+/**
+ * Convert a hash value to a string (for printing debug messages).
+ * This prints all 104 characters of a hashcode!
+ * This is one of the very few calls in the entire API that is
+ * NOT reentrant!
+ *
+ * @param hc the hash code
+ * @return string
+ */
+const char *GNUNET_h2s_full (const GNUNET_HashCode *hc);
/**
* Convert a peer identity to a string (for printing debug messages).