summaryrefslogtreecommitdiff
path: root/src/exchange-lib/exchange_api_handle.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-01-10 16:20:15 +0100
committerChristian Grothoff <christian@grothoff.org>2019-01-10 16:20:15 +0100
commit12123a7aed7815e7bd99d8af67d9210d20aa1e8e (patch)
treeff746dab4a06efc3e0a9f25ce3646478a42ebcbe /src/exchange-lib/exchange_api_handle.h
parent2a01aaa917c82abcaf395eb16f4008faf9250f41 (diff)
downloadexchange-12123a7aed7815e7bd99d8af67d9210d20aa1e8e.tar.gz
exchange-12123a7aed7815e7bd99d8af67d9210d20aa1e8e.tar.bz2
exchange-12123a7aed7815e7bd99d8af67d9210d20aa1e8e.zip
towards fixing #5447
Diffstat (limited to 'src/exchange-lib/exchange_api_handle.h')
-rw-r--r--src/exchange-lib/exchange_api_handle.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/exchange-lib/exchange_api_handle.h b/src/exchange-lib/exchange_api_handle.h
index 8c4392731..f06fa4eef 100644
--- a/src/exchange-lib/exchange_api_handle.h
+++ b/src/exchange-lib/exchange_api_handle.h
@@ -21,7 +21,39 @@
*/
#include "platform.h"
#include <gnunet/gnunet_curl_lib.h>
+#include "taler_auditor_service.h"
#include "taler_exchange_service.h"
+#include "taler_crypto_lib.h"
+
+
+/**
+ * Function called for each auditor to give us a chance to possibly
+ * launch a deposit confirmation interaction.
+ *
+ * @param cls closure
+ * @param ah handle to the auditor
+ * @param auditor_pub public key of the auditor
+ * @return NULL if no deposit confirmation interaction was launched
+ */
+typedef struct TALER_AUDITOR_DepositConfirmationHandle *
+(*TEAH_AuditorCallback)(void *cls,
+ struct TALER_AUDITOR_Handle *ah,
+ const struct TALER_AuditorPublicKeyP *auditor_pub);
+
+
+/**
+ * Iterate over all available auditors for @a h, calling
+ * @param ah and giving it a chance to start a deposit
+ * confirmation interaction.
+ *
+ * @param h exchange to go over auditors for
+ * @param ac function to call per auditor
+ * @param ac_cls closure for @a ac
+ */
+void
+TEAH_get_auditors_for_dc (struct TALER_EXCHANGE_Handle *h,
+ TEAH_AuditorCallback ac,
+ void *ac_cls);
/**