gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] 01/08: -use enum values as indices


From: gnunet
Subject: [taler-exchange] 01/08: -use enum values as indices
Date: Wed, 13 Dec 2023 14:53:01 +0100

This is an automated email from the git hooks/post-receive script.

oec pushed a commit to branch master
in repository exchange.

commit a9c54ef2095fa930f500eeaa606c34621948e706
Author: Özgür Kesim <oec-taler@kesim.org>
AuthorDate: Sun Dec 10 12:14:35 2023 +0100

    -use enum values as indices
---
 src/exchangedb/pg_get_coin_transactions.c | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/exchangedb/pg_get_coin_transactions.c 
b/src/exchangedb/pg_get_coin_transactions.c
index 421fb442..fef33a48 100644
--- a/src/exchangedb/pg_get_coin_transactions.c
+++ b/src/exchangedb/pg_get_coin_transactions.c
@@ -21,6 +21,7 @@
 #include "platform.h"
 #include "taler_error_codes.h"
 #include "taler_dbevents.h"
+#include "taler_exchangedb_plugin.h"
 #include "taler_pq_lib.h"
 #include "pg_get_coin_transactions.h"
 #include "pg_helper.h"
@@ -698,39 +699,39 @@ handle_history_entry (void *cls,
   struct CoinHistoryContext *chc = cls;
   struct PostgresClosure *pg = chc->pg;
   static const struct Work work[] = {
-    /** #TALER_EXCHANGEDB_TT_DEPOSIT */
+    [TALER_EXCHANGEDB_TT_DEPOSIT] =
     { "coin_deposits",
       "get_deposit_with_coin_pub",
       &add_coin_deposit },
-    /** #TALER_EXCHANGEDB_TT_MELT */
+    [TALER_EXCHANGEDB_TT_MELT] =
     { "refresh_commitments",
       "get_refresh_session_by_coin",
       &add_coin_melt },
-    /** #TALER_EXCHANGEDB_TT_PURSE_DEPOSIT */
+    [TALER_EXCHANGEDB_TT_PURSE_DEPOSIT] =
     { "purse_deposits",
       "get_purse_deposit_by_coin_pub",
       &add_coin_purse_deposit },
-    /** #TALER_EXCHANGEDB_TT_PURSE_REFUND */
+    [TALER_EXCHANGEDB_TT_PURSE_REFUND] =
     { "purse_decision",
       "get_purse_decision_by_coin_pub",
       &add_coin_purse_decision },
-    /** #TALER_EXCHANGEDB_TT_REFUND */
+    [TALER_EXCHANGEDB_TT_REFUND] =
     { "refunds",
       "get_refunds_by_coin",
       &add_coin_refund },
-    /** #TALER_EXCHANGEDB_TT_OLD_COIN_RECOUP */
+    [TALER_EXCHANGEDB_TT_OLD_COIN_RECOUP] =
     { "recoup_refresh::OLD",
       "recoup_by_old_coin",
       &add_old_coin_recoup },
-    /** #TALER_EXCHANGEDB_TT_RECOUP */
+    [TALER_EXCHANGEDB_TT_RECOUP] =
     { "recoup",
       "recoup_by_coin",
       &add_coin_recoup },
-    /** #TALER_EXCHANGEDB_TT_RECOUP_REFRESH */
+    [TALER_EXCHANGEDB_TT_RECOUP_REFRESH] =
     { "recoup_refresh::NEW",
       "recoup_by_refreshed_coin",
       &add_coin_recoup_refresh },
-    /** #TALER_EXCHANGEDB_TT_RESERVE_OPEN */
+    [TALER_EXCHANGEDB_TT_RESERVE_OPEN] =
     { "reserves_open_deposits",
       "reserve_open_by_coin",
       &add_coin_reserve_open },

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]