From e1ad498bff48c3975b386680493d6f1445582cfa Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 16 Jul 2020 01:51:45 +0200 Subject: first draft for #6365, test pending --- src/include/taler_json_lib.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 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 8550fd42a..cfab56fd6 100644 --- a/src/include/taler_json_lib.h +++ b/src/include/taler_json_lib.h @@ -158,6 +158,31 @@ int TALER_JSON_contract_hash (const json_t *json, struct GNUNET_HashCode *hc); + +/** + * Mark part of a contract object as 'forgettable'. + * + * @param[in,out] json some JSON object to modify + * @param field name of the field to mark as forgettable + * @return #GNUNET_OK on success, #GNUNET_SYSERR on error + */ +int +TALER_JSON_contract_mark_forgettable (json_t *json, + const char *field); + + +/** + * Forget part of a contract object. + * + * @param[in,out] json some JSON object to modify + * @param field name of the field to forget + * @return #GNUNET_OK on success, #GNUNET_SYSERR on error + */ +int +TALER_JSON_contract_part_forget (json_t *json, + const char *field); + + /** * Extract the Taler error code from the given @a json object. * Note that #TALER_EC_NONE is returned if no "code" is present. -- cgit v1.2.3