diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-04-17 14:25:55 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-04-17 14:26:13 +0200 |
commit | 50d0ee6161da036cf7e8761f945793f09227fa10 (patch) | |
tree | 013104e94562079d2c790d6253faa99726c40c45 /src/include/gnunet_json_lib.h | |
parent | a58d36b8da7afa42410bac54f57d5f3b6b6c4391 (diff) | |
download | gnunet-50d0ee6161da036cf7e8761f945793f09227fa10.tar.gz gnunet-50d0ee6161da036cf7e8761f945793f09227fa10.zip |
add GNUNET_JSON_spec_absolute_time_nbo
Diffstat (limited to 'src/include/gnunet_json_lib.h')
-rw-r--r-- | src/include/gnunet_json_lib.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/gnunet_json_lib.h b/src/include/gnunet_json_lib.h index ce721d8d8..f2682bea7 100644 --- a/src/include/gnunet_json_lib.h +++ b/src/include/gnunet_json_lib.h | |||
@@ -263,6 +263,17 @@ GNUNET_JSON_spec_absolute_time (const char *name, | |||
263 | 263 | ||
264 | 264 | ||
265 | /** | 265 | /** |
266 | * Absolute time in network byte order. | ||
267 | * | ||
268 | * @param name name of the JSON field | ||
269 | * @param[out] at where to store the absolute time found under @a name | ||
270 | */ | ||
271 | struct GNUNET_JSON_Specification | ||
272 | GNUNET_JSON_spec_absolute_time_nbo (const char *name, | ||
273 | struct GNUNET_TIME_AbsoluteNBO *at); | ||
274 | |||
275 | |||
276 | /** | ||
266 | * Relative time. | 277 | * Relative time. |
267 | * | 278 | * |
268 | * @param name name of the JSON field | 279 | * @param name name of the JSON field |