aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_strings_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-09-16 11:27:08 +0000
committerChristian Grothoff <christian@grothoff.org>2012-09-16 11:27:08 +0000
commitf736b24935d66733e9a53798fbc87dbc8aff9fca (patch)
treeb7f865216ca4b40a4a6e4535dfa6677700a27efc /src/include/gnunet_strings_lib.h
parentc5784d2c94adcf1fe80e88c9ab1c152ce2fcbe95 (diff)
downloadgnunet-f736b24935d66733e9a53798fbc87dbc8aff9fca.tar.gz
gnunet-f736b24935d66733e9a53798fbc87dbc8aff9fca.zip
-fixing #2546
Diffstat (limited to 'src/include/gnunet_strings_lib.h')
-rw-r--r--src/include/gnunet_strings_lib.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/include/gnunet_strings_lib.h b/src/include/gnunet_strings_lib.h
index 4073b0cfa..64dbd1ef3 100644
--- a/src/include/gnunet_strings_lib.h
+++ b/src/include/gnunet_strings_lib.h
@@ -224,22 +224,28 @@ GNUNET_STRINGS_buffer_tokenize (const char *buffer, size_t size,
224 224
225/** 225/**
226 * "asctime", except for GNUnet time. 226 * "asctime", except for GNUnet time.
227 * This is one of the very few calls in the entire API that is
228 * NOT reentrant!
227 * 229 *
228 * @param t the absolute time to convert 230 * @param t the absolute time to convert
229 * @return timestamp in human-readable form 231 * @return timestamp in human-readable form
230 */ 232 */
231char * 233const char *
232GNUNET_STRINGS_absolute_time_to_string (struct GNUNET_TIME_Absolute t); 234GNUNET_STRINGS_absolute_time_to_string (struct GNUNET_TIME_Absolute t);
233 235
234 236
235/** 237/**
236 * Give relative time in human-readable fancy format. 238 * Give relative time in human-readable fancy format.
239 * This is one of the very few calls in the entire API that is
240 * NOT reentrant!
237 * 241 *
238 * @param delta time in milli seconds 242 * @param delta time in milli seconds
243 * @param do_round are we allowed to round a bit?
239 * @return string in human-readable form 244 * @return string in human-readable form
240 */ 245 */
241char * 246const char *
242GNUNET_STRINGS_relative_time_to_string (struct GNUNET_TIME_Relative delta); 247GNUNET_STRINGS_relative_time_to_string (struct GNUNET_TIME_Relative delta,
248 int do_round);
243 249
244 250
245/** 251/**