diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-01-24 16:52:39 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-01-24 16:52:39 +0100 |
commit | 5c58c43609609e6871c7105c7ca8fc3d794dca04 (patch) | |
tree | c0c2a63b78765bef45ee8181d1dcbf35d64c3073 /src/wire/plugin_wire_template.c | |
parent | 9aa323ca7bcf1567f6ecf98cf73b5691ade1b816 (diff) | |
download | exchange-5c58c43609609e6871c7105c7ca8fc3d794dca04.tar.xz |
more work on wire plugins
Diffstat (limited to 'src/wire/plugin_wire_template.c')
-rw-r--r-- | src/wire/plugin_wire_template.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/wire/plugin_wire_template.c b/src/wire/plugin_wire_template.c index 8abcca8c9..baf0ee7d5 100644 --- a/src/wire/plugin_wire_template.c +++ b/src/wire/plugin_wire_template.c @@ -60,7 +60,15 @@ static int template_amount_round (void *cls, struct TALER_Amount *amount) { - GNUNET_break (0); + struct TemplateClosure *tc = cls; + + if (0 != strcasecmp (amount->currency, + tc->currency)) + { + GNUNET_break (0); + return GNUNET_SYSERR; + } + GNUNET_break (0); // not implemented return GNUNET_SYSERR; } @@ -94,7 +102,7 @@ static struct TALER_WIRE_PrepareHandle * template_prepare_wire_transfer (void *cls, const json_t *wire, const struct TALER_Amount *amount, - const void *wtid, + const struct TALER_WireTransferIdentifierRawP *wtid, TALER_WIRE_PrepareTransactionCallback ptc, void *ptc_cls) { |