X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Finclude%2Fgnunet_common.h;h=aacf6328a84a72f07938f59f5e5757e3b64df9f9;hb=8de34260292a2e6f7bb980dcefd8d95f5763ad25;hp=afc9b0bcbc82234be1983abfef9efd42a1014739;hpb=9c4a3cd49e5bcf2ba9995c0e344498060ac0a466;p=oweals%2Fgnunet.git diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index afc9b0bcb..aacf6328a 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h @@ -206,6 +206,17 @@ void GNUNET_logger_add (GNUNET_Logger logger, void *logger_cls); void GNUNET_logger_remove (GNUNET_Logger logger, void *logger_cls); +/** + * Convert a hash value to a string (for printing debug messages). + * 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 (const GNUNET_HashCode *hc); + + /** * Convert a peer identity to a string (for printing debug messages). * This is one of the very few calls in the entire API that is @@ -301,7 +312,7 @@ unsigned long long GNUNET_htonll (unsigned long long n); /** * Maximum allocation with GNUNET_malloc macro. */ -#define GNUNET_MAX_GNUNET_MALLOC_CHECKED (1024 * 1024 * 40) +#define GNUNET_MAX_MALLOC_CHECKED (1024 * 1024 * 40) /** * Wrapper around malloc. Allocates size bytes of memory.