diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2015-10-30 08:25:26 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2015-10-30 08:25:26 +0100 |
commit | a5658415628c57d7405036059eb03a9112a03596 (patch) | |
tree | 910f8f4a6825c38351a73559a4d1998266b39473 /src/include | |
parent | d0871c3b8fcd2cbeb37175579d6f114d048520e9 (diff) | |
download | merchant-a5658415628c57d7405036059eb03a9112a03596.tar.gz merchant-a5658415628c57d7405036059eb03a9112a03596.tar.bz2 merchant-a5658415628c57d7405036059eb03a9112a03596.zip |
adding auditors indication in contract generation, and auditor entry parsing from the config file
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/merchant.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/include/merchant.h b/src/include/merchant.h index 0efd4388..8289a337 100644 --- a/src/include/merchant.h +++ b/src/include/merchant.h @@ -41,7 +41,7 @@ } while (0) /** - * A mint + * Mint */ struct MERCHANT_Mint { @@ -63,6 +63,15 @@ struct MERCHANT_Mint }; +struct MERCHANT_Auditor +{ + /** + * Auditor's legal name + */ + char *name; + +}; + /** * The contract sent by the merchant to the wallet */ @@ -96,6 +105,18 @@ int TALER_MERCHANT_parse_mints (const struct GNUNET_CONFIGURATION_Handle *cfg, struct MERCHANT_Mint **mints); +/** + * Parses auditors from the configuration. + * + * @param cfg the configuration + * @param mints the array of auditors upon successful parsing. Will be NULL upon + * error. + * @return the number of auditors in the above array; GNUNET_SYSERR upon error in + * parsing. + */ +int +TALER_MERCHANT_parse_auditors (const struct GNUNET_CONFIGURATION_Handle *cfg, + struct MERCHANT_Auditor **auditors); GNUNET_NETWORK_STRUCT_BEGIN struct MERCHANT_WIREFORMAT_Sepa |