aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-05-08 12:57:00 +0200
committerChristian Grothoff <christian@grothoff.org>2017-05-08 12:57:00 +0200
commit2dcaffe4510410e568d637c1e251e230e2df41d9 (patch)
tree142801bc2b10b60ca367da9a2c99ee38ed36684e /src/include
parent5e36e520a5a9d1461cf0efaee777238a46f1890b (diff)
move responsibility of converting to wire subject to reserve_pub into wire plugin
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_wire_plugin.h31
1 files changed, 30 insertions, 1 deletions
diff --git a/src/include/taler_wire_plugin.h b/src/include/taler_wire_plugin.h
index 5b2bec3c0..4134afc00 100644
--- a/src/include/taler_wire_plugin.h
+++ b/src/include/taler_wire_plugin.h
@@ -42,6 +42,35 @@ typedef void
/**
+ * Details about a valid wire transfer to the exchange.
+ * It is the plugin's responsibility to filter and undo
+ * invalid transfers.
+ */
+struct TALER_WIRE_TransferDetails
+{
+ /**
+ * Amount that was transferred
+ */
+ struct TALER_Amount amount;
+
+ /**
+ * Time of the the transfer
+ */
+ struct GNUNET_TIME_Absolute execution_date;
+
+ /**
+ * Reserve public key that was encoded in the wire transfer subject
+ */
+ struct TALER_ReservePublicKeyP reserve_pub;
+
+ /**
+ * The other account that was involved
+ */
+ json_t *account_details;
+};
+
+
+/**
* Callbacks of this type are used to serve the result of asking
* the bank for the transaction history.
*
@@ -57,7 +86,7 @@ typedef int
enum TALER_BANK_Direction dir,
const void *row_off,
size_t row_off_size,
- const struct TALER_BANK_TransferDetails *details);
+ const struct TALER_WIRE_TransferDetails *details);
/**