summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_management_auditor_disable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/exchange_api_management_auditor_disable.c')
-rw-r--r--src/lib/exchange_api_management_auditor_disable.c40
1 files changed, 38 insertions, 2 deletions
diff --git a/src/lib/exchange_api_management_auditor_disable.c b/src/lib/exchange_api_management_auditor_disable.c
index 1744179e8..8cd4e3223 100644
--- a/src/lib/exchange_api_management_auditor_disable.c
+++ b/src/lib/exchange_api_management_auditor_disable.c
@@ -28,7 +28,34 @@
/**
* @brief Handle for a POST /management/auditors/disable request.
*/
-struct TALER_EXCHANGE_ManagementAuditorDisableHandle;
+struct TALER_EXCHANGE_ManagementAuditorDisableHandle
+{
+
+ /**
+ * The url for this request.
+ */
+ char *url;
+
+ /**
+ * Handle for the request.
+ */
+ struct GNUNET_CURL_Job *job;
+
+ /**
+ * Function to call with the result.
+ */
+ TALER_EXCHANGE_ManagementAuditorDisableCallback cb;
+
+ /**
+ * Closure for @a cb.
+ */
+ void *cb_cls;
+
+ /**
+ * Reference to the execution context.
+ */
+ struct GNUNET_CURL_Context *ctx;
+};
/**
@@ -63,4 +90,13 @@ TALER_EXCHANGE_management_disable_auditor (
*/
void
TALER_EXCHANGE_management_disable_auditor_cancel (
- struct TALER_EXCHANGE_ManagementAuditorDisableHandle *ah);
+ struct TALER_EXCHANGE_ManagementAuditorDisableHandle *ah)
+{
+ if (NULL != ah->job)
+ {
+ GNUNET_CURL_job_cancel (ah->job);
+ ah->job = NULL;
+ }
+ GNUNET_free (ah->url);
+ GNUNET_free (ah);
+}