From 8d85c8b5b6c514ce093d856a2e4b931b4108ece5 Mon Sep 17 00:00:00 2001 From: Lucien Heuzeveldt Date: Sun, 16 Jan 2022 17:02:15 +0100 Subject: implement feedback --- src/include/taler_json_lib.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'src/include/taler_json_lib.h') diff --git a/src/include/taler_json_lib.h b/src/include/taler_json_lib.h index 51ebe6d9..ea692622 100644 --- a/src/include/taler_json_lib.h +++ b/src/include/taler_json_lib.h @@ -117,6 +117,20 @@ TALER_JSON_pack_blinded_denom_sig ( const struct TALER_BlindedDenominationSignature *sig); +/** + * Generate packer instruction for a JSON field of type + * blinded planchet. + * + * @param name name of the field to add to the object + * @param blinded_planchet blinded planchet + * @return json pack specification + */ +struct GNUNET_JSON_PackSpec +TALER_JSON_pack_blinded_planchet ( + const char *name, + const struct TALER_BlindedPlanchet *blinded_planchet); + + /** * Generate packer instruction for a JSON field of type * amount. @@ -260,6 +274,19 @@ TALER_JSON_spec_blinded_denom_sig ( struct TALER_BlindedDenominationSignature *sig); +/** + * Generate line in parser specification for a + * blinded planchet. + * + * @param field name of the field + * @param[out] blinded_planchet the blinded planchet to initialize + * @return corresponding field spec + */ +struct GNUNET_JSON_Specification +TALER_JSON_spec_blinded_planchet (const char *field, + struct TALER_BlindedPlanchet *blinded_planchet); + + /** * The expected field stores a possibly internationalized string. * Internationalization means that there is another field "$name_i18n" -- cgit v1.2.3