aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_extensions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/taler_extensions.h')
-rw-r--r--src/include/taler_extensions.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/include/taler_extensions.h b/src/include/taler_extensions.h
index d76de25e..4685464a 100644
--- a/src/include/taler_extensions.h
+++ b/src/include/taler_extensions.h
@@ -54,15 +54,6 @@ struct TALER_Extensions
};
/*
- * @brief Serial ID under which the policy details to an deposit are stored in
- * the policy_details table.
- */
-struct TALER_ExtensionsPolicySerialID
-{
- struct GNUNET_HashCode hash;
-};
-
-/*
* @brief Represents the implementation of an extension.
*
* An "Extension" is an optional feature for the Exchange.
@@ -179,15 +170,17 @@ struct TALER_Extension
* during a deposit request.
* @param[out] serial On success, will contain the serial-ID under which the
* exchange should save the policy_details in the deposit table.
- * @param[out] deadline On sucess, set to the deadline until the policy must
+ * @param[out] deadline On success, set to the deadline until the policy must
* be fulfilled. Might be "forever". This value is used by an external
+ * @param[out] error_hint On error, will contain a hint
* mechanism to detect timeouts.
* @return GNUNET_OK if the data was accepted by the extension.
*/
enum GNUNET_GenericReturnValue (*parse_policy_details)(
const json_t *policy_details,
- struct TALER_ExtensionsPolicySerialID *serial,
- struct GNUNET_TIME_Timestamp *deadline);
+ struct GNUNET_HashCode *serial,
+ struct GNUNET_TIME_Timestamp *deadline,
+ const char **error_hint);
/**
* @brief Handler for POST-requests to the /policy/$name endpoint. Can be NULL.
@@ -407,7 +400,7 @@ enum GNUNET_GenericReturnValue
TALER_extensions_from_policy_details (
const json_t *policy_details,
const struct TALER_Extension **extension,
- char **error_hint);
+ const char **error_hint);
/*
* ================================