diff options
Diffstat (limited to 'src/include/taler_json_lib.h')
-rw-r--r-- | src/include/taler_json_lib.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/include/taler_json_lib.h b/src/include/taler_json_lib.h index 094cbe2eb..fbc8785d0 100644 --- a/src/include/taler_json_lib.h +++ b/src/include/taler_json_lib.h @@ -81,6 +81,31 @@ TALER_JSON_spec_amount_nbo (const char *name, /** + * Provide specification to parse given JSON object to an absolute time. + * The absolute time value is expected to be already rounded. + * + * @param name name of the time field in the JSON + * @param[out] r_time where the time has to be written + */ +struct GNUNET_JSON_Specification +TALER_JSON_spec_absolute_time (const char *name, + struct GNUNET_TIME_Absolute *r_time); + + +/** + * Provide specification to parse given JSON object to an absolute time + * in network byte order. + * The absolute time value is expected to be already rounded. + * + * @param name name of the time field in the JSON + * @param[out] r_time where the time has to be written + */ +struct GNUNET_JSON_Specification +TALER_JSON_spec_absolute_time_nbo (const char *name, + struct GNUNET_TIME_AbsoluteNBO *r_time); + + +/** * Generate line in parser specification for denomination public key. * * @param field name of the field |