aboutsummaryrefslogtreecommitdiff
path: root/src/backenddb/pg_insert_spent_token.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backenddb/pg_insert_spent_token.c')
-rw-r--r--src/backenddb/pg_insert_spent_token.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/backenddb/pg_insert_spent_token.c b/src/backenddb/pg_insert_spent_token.c
index 1f11c5a3..bb3ffcdc 100644
--- a/src/backenddb/pg_insert_spent_token.c
+++ b/src/backenddb/pg_insert_spent_token.c
@@ -18,9 +18,6 @@
* @brief Implementation of the insert_spent_token function for Postgres
* @author Christian Blättler
*/
-#ifndef PG_INSERT_SPENT_TOKEN_H
-#define PG_INSERT_SPENT_TOKEN_H
-
#include "platform.h"
#include <taler/taler_error_codes.h>
#include <taler/taler_dbevents.h>
@@ -28,16 +25,17 @@
#include "pg_insert_spent_token.h"
#include "pg_helper.h"
+
enum GNUNET_DB_QueryStatus
-TMH_PG_insert_spent_token (void *cls,
- const struct TALER_PrivateContractHashP *h_contract_terms,
- const struct TALER_TokenIssuePublicKeyHashP *h_issue_pub,
- const struct TALER_TokenUsePublicKeyP *use_pub,
- const struct TALER_TokenUseSignatureP *use_sig,
- const struct TALER_TokenIssueSignatureP *issue_sig)
+TMH_PG_insert_spent_token (
+ void *cls,
+ const struct TALER_PrivateContractHashP *h_contract_terms,
+ const struct TALER_TokenIssuePublicKeyHashP *h_issue_pub,
+ const struct TALER_TokenUsePublicKeyP *use_pub,
+ const struct TALER_TokenUseSignatureP *use_sig,
+ const struct TALER_TokenIssueSignatureP *issue_sig)
{
struct PostgresClosure *pg = cls;
-
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_auto_from_type (h_issue_pub),
GNUNET_PQ_query_param_auto_from_type (h_contract_terms),
@@ -68,5 +66,3 @@ TMH_PG_insert_spent_token (void *cls,
"spent_token_insert",
params);
}
-
-#endif \ No newline at end of file