aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_strings_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_strings_lib.h')
-rw-r--r--src/include/gnunet_strings_lib.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/gnunet_strings_lib.h b/src/include/gnunet_strings_lib.h
index 637d4f7de..5a4996c3b 100644
--- a/src/include/gnunet_strings_lib.h
+++ b/src/include/gnunet_strings_lib.h
@@ -63,6 +63,19 @@ GNUNET_STRINGS_fancy_size_to_bytes (const char *fancy_size,
63 63
64 64
65/** 65/**
66 * Convert a given fancy human-readable time to our internal
67 * representation.
68 *
69 * @param fancy_size human readable string (i.e. 1 minute)
70 * @param rtime set to the relative time
71 * @return GNUNET_OK on success, GNUNET_SYSERR on error
72 */
73int
74GNUNET_STRINGS_fancy_time_to_relative (const char *fancy_size,
75 struct GNUNET_TIME_Relative *rtime);
76
77
78/**
66 * Convert a given filesize into a fancy human-readable format. 79 * Convert a given filesize into a fancy human-readable format.
67 * 80 *
68 * @param size number of bytes 81 * @param size number of bytes