diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-01-10 17:07:09 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-01-10 17:07:09 +0100 |
commit | bee612e2efc0545307b365bf4a5feae3fa3c03c7 (patch) | |
tree | 5ace22c36c250f690ca7f9f5b5a4168b408abdf7 /src/exchangedb | |
parent | 59cde016a689ce470aa2a7e2aa065ac3eaddfbb5 (diff) | |
download | exchange-bee612e2efc0545307b365bf4a5feae3fa3c03c7.tar.xz |
expand irbt templates
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/irbt_callbacks.c | 189 |
1 files changed, 189 insertions, 0 deletions
diff --git a/src/exchangedb/irbt_callbacks.c b/src/exchangedb/irbt_callbacks.c index d94295096..c7f185e33 100644 --- a/src/exchangedb/irbt_callbacks.c +++ b/src/exchangedb/irbt_callbacks.c @@ -37,6 +37,15 @@ irbt_cb_table_denominations (struct PostgresClosure *pg, struct TALER_EXCHANGEDB_Session *session, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -53,6 +62,15 @@ irbt_cb_table_denomination_revocations (struct PostgresClosure *pg, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -68,6 +86,15 @@ irbt_cb_table_reserves (struct PostgresClosure *pg, struct TALER_EXCHANGEDB_Session *session, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -83,6 +110,15 @@ irbt_cb_table_reserves_in (struct PostgresClosure *pg, struct TALER_EXCHANGEDB_Session *session, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -98,6 +134,15 @@ irbt_cb_table_reserves_close (struct PostgresClosure *pg, struct TALER_EXCHANGEDB_Session *session, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -113,6 +158,15 @@ irbt_cb_table_reserves_out (struct PostgresClosure *pg, struct TALER_EXCHANGEDB_Session *session, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -128,6 +182,15 @@ irbt_cb_table_auditors (struct PostgresClosure *pg, struct TALER_EXCHANGEDB_Session *session, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -143,6 +206,15 @@ irbt_cb_table_auditor_denom_sigs (struct PostgresClosure *pg, struct TALER_EXCHANGEDB_Session *session, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -158,6 +230,15 @@ irbt_cb_table_exchange_sign_keys (struct PostgresClosure *pg, struct TALER_EXCHANGEDB_Session *session, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -173,6 +254,15 @@ irbt_cb_table_signkey_revocations (struct PostgresClosure *pg, struct TALER_EXCHANGEDB_Session *session, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -188,6 +278,15 @@ irbt_cb_table_known_coins (struct PostgresClosure *pg, struct TALER_EXCHANGEDB_Session *session, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -203,6 +302,15 @@ irbt_cb_table_refresh_commitments (struct PostgresClosure *pg, struct TALER_EXCHANGEDB_Session *session, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -219,6 +327,15 @@ irbt_cb_table_refresh_revealed_coins (struct PostgresClosure *pg, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -235,6 +352,15 @@ irbt_cb_table_refresh_transfer_keys (struct PostgresClosure *pg, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -250,6 +376,15 @@ irbt_cb_table_deposits (struct PostgresClosure *pg, struct TALER_EXCHANGEDB_Session *session, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -265,6 +400,15 @@ irbt_cb_table_refunds (struct PostgresClosure *pg, struct TALER_EXCHANGEDB_Session *session, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -280,6 +424,15 @@ irbt_cb_table_wire_out (struct PostgresClosure *pg, struct TALER_EXCHANGEDB_Session *session, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -295,6 +448,15 @@ irbt_cb_table_aggregation_tracking (struct PostgresClosure *pg, struct TALER_EXCHANGEDB_Session *session, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -310,6 +472,15 @@ irbt_cb_table_wire_fee (struct PostgresClosure *pg, struct TALER_EXCHANGEDB_Session *session, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -325,6 +496,15 @@ irbt_cb_table_recoup (struct PostgresClosure *pg, struct TALER_EXCHANGEDB_Session *session, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } @@ -340,6 +520,15 @@ irbt_cb_table_recoup_refresh (struct PostgresClosure *pg, struct TALER_EXCHANGEDB_Session *session, const struct TALER_EXCHANGEDB_TableData *td) { + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_end + }; + + (void) pg; + return GNUNET_PQ_eval_prepared_non_select (session->conn, + "insert_into_table_", + params); } |