From 61450fad8d371a4f75731faa51632229c881ada2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 2 Aug 2021 22:16:01 +0200 Subject: -add i18n object syntax check --- src/include/taler_json_lib.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/include') diff --git a/src/include/taler_json_lib.h b/src/include/taler_json_lib.h index bc21957e8..3581252ca 100644 --- a/src/include/taler_json_lib.h +++ b/src/include/taler_json_lib.h @@ -566,6 +566,16 @@ TALER_JSON_extract_i18n (const json_t *object, const char *field); +/** + * Check whether a given @a i18n object is wellformed. + * + * @param i18n object with internationalized content + * @return true if @a i18n is well-formed + */ +bool +TALER_JSON_check_i18n (const json_t *i18n); + + /** * Obtain the wire method associated with the given * wire account details. @a wire_s must contain a payto://-URL -- cgit v1.2.3