aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-07-30 10:12:48 +0200
committerChristian Grothoff <christian@grothoff.org>2022-07-30 10:12:48 +0200
commit75888adff2549fc8fa9aec9b4e80a37a214345e6 (patch)
tree1f1a3347af6f11187a7f1143348cacbaea0a2caa /src/include
parentba0ab58cdd4bd767f3944dcde1dc16676220d136 (diff)
setup drain_profits table (#4960)
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_exchangedb_plugin.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h
index ae221c8cd..41ef75a65 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -5512,6 +5512,28 @@ struct TALER_EXCHANGEDB_Plugin
struct TALER_Amount *final_balance);
+ /**
+ * Function called to persist a request to drain profits.
+ *
+ * @param cls the @e cls of this struct with the plugin-specific state
+ * @param wtid wire transfer ID to use
+ * @param account_section account to drain
+ * @param payto_uri account to wire funds to
+ * @param date time of the signature
+ * @param amount amount to wire
+ * @param master_sig signature affirming the opearation
+ * @return transaction status code
+ */
+ enum GNUNET_DB_QueryStatus
+ (*insert_drain_profit)(void *cls,
+ const struct TALER_WireTransferIdentifierRawP *wtid,
+ const char *account_section,
+ const char *payto_uri,
+ struct GNUNET_TIME_Timestamp request_timestamp,
+ const struct TALER_Amount *amount,
+ const struct TALER_MasterSignatureP *master_sig);
+
+
};
#endif /* _TALER_EXCHANGE_DB_H */