summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_contract.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd_contract.h')
-rw-r--r--src/backend/taler-merchant-httpd_contract.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd_contract.h b/src/backend/taler-merchant-httpd_contract.h
index ee77b4c1..476fdcc0 100644
--- a/src/backend/taler-merchant-httpd_contract.h
+++ b/src/backend/taler-merchant-httpd_contract.h
@@ -280,6 +280,11 @@ struct TALER_MerchantContractTokenFamily
const char *slug;
/**
+ * Human-readable name of the token family.
+ */
+ char *name;
+
+ /**
* Human-readable description of the semantics of the tokens issued by
* this token family.
*/
@@ -605,3 +610,17 @@ struct GNUNET_JSON_Specification
TALER_JSON_spec_choices (const char *name,
struct TALER_MerchantContractChoice **choices,
unsigned int *choices_len);
+
+/**
+ * Provide specification to parse given JSON object to an array
+ * of token families.
+ *
+ * @param name name of the token families field in the JSON
+ * @param[out] families pointer to the first element of the array
+ * @param[out] families_len pointer to the length of the array
+ * @return spec for parsing a token families object
+ */
+struct GNUNET_JSON_Specification
+TALER_JSON_spec_token_families (const char *name,
+ struct TALER_MerchantContractTokenFamily **families,
+ unsigned int *families_len);