gnunet-svn
[Top][All Lists]
Advanced

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

[taler-donau] branch master updated (3f958f9 -> 7dbff3d)


From: gnunet
Subject: [taler-donau] branch master updated (3f958f9 -> 7dbff3d)
Date: Mon, 27 Nov 2023 22:54:13 +0100

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

pius-loosli pushed a change to branch master
in repository donau.

    from 3f958f9  [build] remove exchange-specific postgres plugin variable 
initialisation
     new 20a98f8  [build] comment out plugin_donaudb_postgres.c
     new 7dbff3d  [build] src/donau/Makefile: taler_donau_httpd_SOURCES

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 doc/Makefile.am                       |   2 +-
 src/donau/Makefile.am                 |  65 +-----
 src/donaudb/plugin_donaudb_postgres.c | 426 +++++++++++++++++-----------------
 3 files changed, 219 insertions(+), 274 deletions(-)

diff --git a/doc/Makefile.am b/doc/Makefile.am
index 24ee82d..f25a481 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -26,7 +26,7 @@ man_MANS = \
   prebuilt/man/taler-donau-dbinit.1  \
   #prebuilt/man/taler-donau-drain.1  \
   #prebuilt/man/taler-donau-expire.1  \
-  prebuilt/man/taler-donau-httpd.1       \
+  prebuilt/man/donau-httpd.1       \
   #prebuilt/man/taler-donau-kyc-aml-pep-trigger.1 \
   #prebuilt/man/taler-donau-kyc-tester.1       \
   prebuilt/man/taler-donau-offline.1    \
diff --git a/src/donau/Makefile.am b/src/donau/Makefile.am
index 80a9a5b..039df9e 100644
--- a/src/donau/Makefile.am
+++ b/src/donau/Makefile.am
@@ -19,7 +19,7 @@ bin_SCRIPTS = \
   taler-donau-kyc-aml-pep-trigger.sh
 
 bin_PROGRAMS = \
-  taler-donau-httpd
+  donau-httpd
 
 # taler_donau_aggregator_SOURCES = \
   taler-donau-aggregator.c
@@ -108,65 +108,10 @@ bin_PROGRAMS = \
   $(XLIB)
 
 
-taler_donau_httpd_SOURCES = \
-  taler-donau-httpd.c taler-donau-httpd.h \
-  taler-donau-httpd_aml-decision.c taler-donau-httpd_aml-decision.h \
-  taler-donau-httpd_aml-decision-get.c \
-  taler-donau-httpd_aml-decisions-get.c \
-  taler-donau-httpd_batch-deposit.c taler-donau-httpd_batch-deposit.h \
-  taler-donau-httpd_batch-withdraw.c taler-donau-httpd_batch-withdraw.h \
-  taler-donau-httpd_age-withdraw.c taler-donau-httpd_age-withdraw.h \
-  taler-donau-httpd_age-withdraw_reveal.c 
taler-donau-httpd_age-withdraw_reveal.h \
-  taler-donau-httpd_common_deposit.c taler-donau-httpd_common_deposit.h \
-  taler-donau-httpd_common_kyc.c taler-donau-httpd_common_kyc.h \
-  taler-donau-httpd_config.c taler-donau-httpd_config.h \
-  taler-donau-httpd_contract.c taler-donau-httpd_contract.h \
-  taler-donau-httpd_csr.c taler-donau-httpd_csr.h \
-  taler-donau-httpd_db.c taler-donau-httpd_db.h \
-  taler-donau-httpd_deposits_get.c taler-donau-httpd_deposits_get.h \
-  taler-donau-httpd_extensions.c taler-donau-httpd_extensions.h \
-  taler-donau-httpd_keys.c taler-donau-httpd_keys.h \
-  taler-donau-httpd_kyc-check.c taler-donau-httpd_kyc-check.h \
-  taler-donau-httpd_kyc-proof.c taler-donau-httpd_kyc-proof.h \
-  taler-donau-httpd_kyc-wallet.c taler-donau-httpd_kyc-wallet.h \
-  taler-donau-httpd_kyc-webhook.c taler-donau-httpd_kyc-webhook.h \
-  taler-donau-httpd_link.c taler-donau-httpd_link.h \
-  taler-donau-httpd_management.h \
-  taler-donau-httpd_management_aml-officers.c \
-  taler-donau-httpd_management_denominations_HDP_revoke.c \
-  taler-donau-httpd_management_drain.c \
-  taler-donau-httpd_management_extensions.c \
-  taler-donau-httpd_management_global_fees.c \
-  taler-donau-httpd_management_partners.c \
-  taler-donau-httpd_management_post_keys.c \
-  taler-donau-httpd_management_signkey_EP_revoke.c \
-  taler-donau-httpd_management_wire_enable.c \
-  taler-donau-httpd_management_wire_disable.c \
-  taler-donau-httpd_management_wire_fees.c \
-  taler-donau-httpd_melt.c taler-donau-httpd_melt.h \
-  taler-donau-httpd_metrics.c taler-donau-httpd_metrics.h \
-  taler-donau-httpd_mhd.c taler-donau-httpd_mhd.h \
-  taler-donau-httpd_purses_create.c taler-donau-httpd_purses_create.h \
-  taler-donau-httpd_purses_deposit.c taler-donau-httpd_purses_deposit.h \
-  taler-donau-httpd_purses_delete.c taler-donau-httpd_purses_delete.h \
-  taler-donau-httpd_purses_get.c taler-donau-httpd_purses_get.h \
-  taler-donau-httpd_purses_merge.c taler-donau-httpd_purses_merge.h \
-  taler-donau-httpd_recoup.c taler-donau-httpd_recoup.h \
-  taler-donau-httpd_recoup-refresh.c taler-donau-httpd_recoup-refresh.h \
-  taler-donau-httpd_refreshes_reveal.c taler-donau-httpd_refreshes_reveal.h \
-  taler-donau-httpd_refund.c taler-donau-httpd_refund.h \
-  taler-donau-httpd_reserves_attest.c taler-donau-httpd_reserves_attest.h \
-  taler-donau-httpd_reserves_close.c taler-donau-httpd_reserves_close.h \
-  taler-donau-httpd_reserves_get.c taler-donau-httpd_reserves_get.h \
-  taler-donau-httpd_reserves_get_attest.c 
taler-donau-httpd_reserves_get_attest.h \
-  taler-donau-httpd_reserves_history.c taler-donau-httpd_reserves_history.h \
-  taler-donau-httpd_reserves_open.c taler-donau-httpd_reserves_open.h \
-  taler-donau-httpd_reserves_purse.c taler-donau-httpd_reserves_purse.h \
-  taler-donau-httpd_reserves_status.c taler-donau-httpd_reserves_status.h \
-  taler-donau-httpd_responses.c taler-donau-httpd_responses.h \
-  taler-donau-httpd_terms.c taler-donau-httpd_terms.h \
-  taler-donau-httpd_transfers_get.c taler-donau-httpd_transfers_get.h \
-  taler-donau-httpd_withdraw.c taler-donau-httpd_withdraw.h
+# taler_donau_httpd_SOURCES = \
+  donau-httpd.c donau-httpd.h \
+  donau-httpd_responses.c donau-httpd_responses.h \
+  donau-httpd_terms.c donau-httpd_terms.h
 
 taler_donau_httpd_LDADD = \
   $(LIBGCRYPT_LIBS) \
diff --git a/src/donaudb/plugin_donaudb_postgres.c 
b/src/donaudb/plugin_donaudb_postgres.c
index 2e8c7f4..df1a47d 100644
--- a/src/donaudb/plugin_donaudb_postgres.c
+++ b/src/donaudb/plugin_donaudb_postgres.c
@@ -38,233 +38,233 @@
 // #include "pg_get_link_data.h"
 #include "pg_helper.h"
 
-/**
- * Set to 1 to enable Postgres auto_explain module. This will
- * slow down things a _lot_, but also provide extensive logging
- * in the Postgres database logger for performance analysis.
- */
-#define AUTO_EXPLAIN 1
+// /**
+//  * Set to 1 to enable Postgres auto_explain module. This will
+//  * slow down things a _lot_, but also provide extensive logging
+//  * in the Postgres database logger for performance analysis.
+//  */
+// #define AUTO_EXPLAIN 1
 
 
-/**
- * Log a really unexpected PQ error with all the details we can get hold of.
- *
- * @param result PQ result object of the PQ operation that failed
- * @param conn SQL connection that was used
- */
-#define BREAK_DB_ERR(result,conn) do {                                  \
-    GNUNET_break (0);                                                   \
-    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,                                \
-                "Database failure: %s/%s/%s/%s/%s",                     \
-                PQresultErrorField (result, PG_DIAG_MESSAGE_PRIMARY),   \
-                PQresultErrorField (result, PG_DIAG_MESSAGE_DETAIL),    \
-                PQresultErrorMessage (result),                          \
-                PQresStatus (PQresultStatus (result)),                  \
-                PQerrorMessage (conn));                                 \
-} while (0)
+// /**
+//  * Log a really unexpected PQ error with all the details we can get hold of.
+//  *
+//  * @param result PQ result object of the PQ operation that failed
+//  * @param conn SQL connection that was used
+//  */
+// #define BREAK_DB_ERR(result,conn) do {                                  \
+//     GNUNET_break (0);                                                   \
+//     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,                                \
+//                 "Database failure: %s/%s/%s/%s/%s",                     \
+//                 PQresultErrorField (result, PG_DIAG_MESSAGE_PRIMARY),   \
+//                 PQresultErrorField (result, PG_DIAG_MESSAGE_DETAIL),    \
+//                 PQresultErrorMessage (result),                          \
+//                 PQresStatus (PQresultStatus (result)),                  \
+//                 PQerrorMessage (conn));                                 \
+// } while (0)
 
 
-/**
- * Connect to the database if the connection does not exist yet.
- *
- * @param pg the plugin-specific state
- * @return #GNUNET_OK on success
- */
-enum GNUNET_GenericReturnValue
-TEH_PG_internal_setup (struct PostgresClosure *pg)
-{
-  if (NULL == pg->conn)
-  {
-#if AUTO_EXPLAIN
-    /* Enable verbose logging to see where queries do not
-       properly use indices */
-    struct GNUNET_PQ_ExecuteStatement es[] = {
-      GNUNET_PQ_make_try_execute ("LOAD 'auto_explain';"),
-      GNUNET_PQ_make_try_execute ("SET auto_explain.log_min_duration=50;"),
-      GNUNET_PQ_make_try_execute ("SET auto_explain.log_timing=TRUE;"),
-      GNUNET_PQ_make_try_execute ("SET auto_explain.log_analyze=TRUE;"),
-      /* https://wiki.postgresql.org/wiki/Serializable suggests to really
-         force the default to 'serializable' if SSI is to be used. */
-      GNUNET_PQ_make_try_execute (
-        "SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL 
SERIALIZABLE;"),
-      GNUNET_PQ_make_try_execute ("SET enable_sort=OFF;"),
-      GNUNET_PQ_make_try_execute ("SET enable_seqscan=OFF;"),
-      GNUNET_PQ_make_try_execute ("SET search_path TO donau;"),
-      GNUNET_PQ_EXECUTE_STATEMENT_END
-    };
-#else
-    struct GNUNET_PQ_ExecuteStatement es[] = {
-      GNUNET_PQ_make_try_execute (
-        "SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL 
SERIALIZABLE;"),
-      GNUNET_PQ_make_try_execute ("SET enable_sort=OFF;"),
-      GNUNET_PQ_make_try_execute ("SET enable_seqscan=OFF;"),
-      GNUNET_PQ_make_try_execute ("SET autocommit=OFF;"),
-      GNUNET_PQ_make_try_execute ("SET search_path TO donau;"),
-      GNUNET_PQ_EXECUTE_STATEMENT_END
-    };
-#endif
-    struct GNUNET_PQ_Context *db_conn;
+// /**
+//  * Connect to the database if the connection does not exist yet.
+//  *
+//  * @param pg the plugin-specific state
+//  * @return #GNUNET_OK on success
+//  */
+// enum GNUNET_GenericReturnValue
+// TEH_PG_internal_setup (struct PostgresClosure *pg)
+// {
+//   if (NULL == pg->conn)
+//   {
+// #if AUTO_EXPLAIN
+//     /* Enable verbose logging to see where queries do not
+//        properly use indices */
+//     struct GNUNET_PQ_ExecuteStatement es[] = {
+//       GNUNET_PQ_make_try_execute ("LOAD 'auto_explain';"),
+//       GNUNET_PQ_make_try_execute ("SET auto_explain.log_min_duration=50;"),
+//       GNUNET_PQ_make_try_execute ("SET auto_explain.log_timing=TRUE;"),
+//       GNUNET_PQ_make_try_execute ("SET auto_explain.log_analyze=TRUE;"),
+//       /* https://wiki.postgresql.org/wiki/Serializable suggests to really
+//          force the default to 'serializable' if SSI is to be used. */
+//       GNUNET_PQ_make_try_execute (
+//         "SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL 
SERIALIZABLE;"),
+//       GNUNET_PQ_make_try_execute ("SET enable_sort=OFF;"),
+//       GNUNET_PQ_make_try_execute ("SET enable_seqscan=OFF;"),
+//       GNUNET_PQ_make_try_execute ("SET search_path TO donau;"),
+//       GNUNET_PQ_EXECUTE_STATEMENT_END
+//     };
+// #else
+//     struct GNUNET_PQ_ExecuteStatement es[] = {
+//       GNUNET_PQ_make_try_execute (
+//         "SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL 
SERIALIZABLE;"),
+//       GNUNET_PQ_make_try_execute ("SET enable_sort=OFF;"),
+//       GNUNET_PQ_make_try_execute ("SET enable_seqscan=OFF;"),
+//       GNUNET_PQ_make_try_execute ("SET autocommit=OFF;"),
+//       GNUNET_PQ_make_try_execute ("SET search_path TO donau;"),
+//       GNUNET_PQ_EXECUTE_STATEMENT_END
+//     };
+// #endif
+//     struct GNUNET_PQ_Context *db_conn;
 
-    db_conn = GNUNET_PQ_connect_with_cfg (pg->cfg,
-                                          "donaudb-postgres",
-                                          NULL,
-                                          es,
-                                          NULL);
-    if (NULL == db_conn)
-      return GNUNET_SYSERR;
+//     db_conn = GNUNET_PQ_connect_with_cfg (pg->cfg,
+//                                           "donaudb-postgres",
+//                                           NULL,
+//                                           es,
+//                                           NULL);
+//     if (NULL == db_conn)
+//       return GNUNET_SYSERR;
 
-    pg->prep_gen++;
-    pg->conn = db_conn;
-  }
-  if (NULL == pg->transaction_name)
-    GNUNET_PQ_reconnect_if_down (pg->conn);
-  return GNUNET_OK;
-}
+//     pg->prep_gen++;
+//     pg->conn = db_conn;
+//   }
+//   if (NULL == pg->transaction_name)
+//     GNUNET_PQ_reconnect_if_down (pg->conn);
+//   return GNUNET_OK;
+// }
 
 
-/**
- * Initialize Postgres database subsystem.
- *
- * @param cls a configuration instance
- * @return NULL on error, otherwise a `struct
- *         DONAUDB_Plugin`
- */
-void *
-libtaler_plugin_donaudb_postgres_init (void *cls)
-{
-  const struct GNUNET_CONFIGURATION_Handle *cfg = cls;
-  struct PostgresClosure *pg;
-  struct DONAUDB_Plugin *plugin;
-  unsigned long long dpl;
+// /**
+//  * Initialize Postgres database subsystem.
+//  *
+//  * @param cls a configuration instance
+//  * @return NULL on error, otherwise a `struct
+//  *         DONAUDB_Plugin`
+//  */
+// void *
+// libtaler_plugin_donaudb_postgres_init (void *cls)
+// {
+//   const struct GNUNET_CONFIGURATION_Handle *cfg = cls;
+//   struct PostgresClosure *pg;
+//   struct DONAUDB_Plugin *plugin;
+//   unsigned long long dpl;
 
-  pg = GNUNET_new (struct PostgresClosure);
-  pg->cfg = cfg;
-  if (GNUNET_OK !=
-      GNUNET_CONFIGURATION_get_value_filename (cfg,
-                                               "donaudb-postgres",
-                                               "SQL_DIR",
-                                               &pg->sql_dir))
-  {
-    GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
-                               "donaudb-postgres",
-                               "SQL_DIR");
-    GNUNET_free (pg);
-    return NULL;
-  }
-  if (GNUNET_OK !=
-      GNUNET_CONFIGURATION_get_value_string (cfg,
-                                             "donau",
-                                             "BASE_URL",
-                                             &pg->donau_url))
-  {
-    GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
-                               "donau",
-                               "BASE_URL");
-    GNUNET_free (pg->sql_dir);
-    GNUNET_free (pg);
-    return NULL;
-  }
-  if ( (GNUNET_OK !=
-        GNUNET_CONFIGURATION_get_value_time (cfg,
-                                             "donaudb",
-                                             "IDLE_RESERVE_EXPIRATION_TIME",
-                                             
&pg->idle_reserve_expiration_time))
-       ||
-       (GNUNET_OK !=
-        GNUNET_CONFIGURATION_get_value_time (cfg,
-                                             "donaudb",
-                                             "LEGAL_RESERVE_EXPIRATION_TIME",
-                                             
&pg->legal_reserve_expiration_time)) )
-  {
-    GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
-                               "donaudb",
-                               "LEGAL/IDLE_RESERVE_EXPIRATION_TIME");
-    GNUNET_free (pg->donau_url);
-    GNUNET_free (pg->sql_dir);
-    GNUNET_free (pg);
-    return NULL;
-  }
-  if (GNUNET_OK !=
-      GNUNET_CONFIGURATION_get_value_time (cfg,
-                                           "donaudb",
-                                           "AGGREGATOR_SHIFT",
-                                           &pg->aggregator_shift))
-  {
-    GNUNET_log_config_missing (GNUNET_ERROR_TYPE_WARNING,
-                               "donaudb",
-                               "AGGREGATOR_SHIFT");
-  }
-  if (GNUNET_OK !=
-      GNUNET_CONFIGURATION_get_value_number (cfg,
-                                             "donaudb",
-                                             "DEFAULT_PURSE_LIMIT",
-                                             &dpl))
-  {
-    GNUNET_log_config_missing (GNUNET_ERROR_TYPE_WARNING,
-                               "donaudb",
-                               "DEFAULT_PURSE_LIMIT");
-    pg->def_purse_limit = 1;
-  }
-  else
-  {
-    pg->def_purse_limit = (uint32_t) dpl;
-  }
+//   pg = GNUNET_new (struct PostgresClosure);
+//   pg->cfg = cfg;
+//   if (GNUNET_OK !=
+//       GNUNET_CONFIGURATION_get_value_filename (cfg,
+//                                                "donaudb-postgres",
+//                                                "SQL_DIR",
+//                                                &pg->sql_dir))
+//   {
+//     GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
+//                                "donaudb-postgres",
+//                                "SQL_DIR");
+//     GNUNET_free (pg);
+//     return NULL;
+//   }
+//   if (GNUNET_OK !=
+//       GNUNET_CONFIGURATION_get_value_string (cfg,
+//                                              "donau",
+//                                              "BASE_URL",
+//                                              &pg->donau_url))
+//   {
+//     GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
+//                                "donau",
+//                                "BASE_URL");
+//     GNUNET_free (pg->sql_dir);
+//     GNUNET_free (pg);
+//     return NULL;
+//   }
+//   if ( (GNUNET_OK !=
+//         GNUNET_CONFIGURATION_get_value_time (cfg,
+//                                              "donaudb",
+//                                              "IDLE_RESERVE_EXPIRATION_TIME",
+//                                              
&pg->idle_reserve_expiration_time))
+//        ||
+//        (GNUNET_OK !=
+//         GNUNET_CONFIGURATION_get_value_time (cfg,
+//                                              "donaudb",
+//                                              
"LEGAL_RESERVE_EXPIRATION_TIME",
+//                                              
&pg->legal_reserve_expiration_time)) )
+//   {
+//     GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
+//                                "donaudb",
+//                                "LEGAL/IDLE_RESERVE_EXPIRATION_TIME");
+//     GNUNET_free (pg->donau_url);
+//     GNUNET_free (pg->sql_dir);
+//     GNUNET_free (pg);
+//     return NULL;
+//   }
+//   if (GNUNET_OK !=
+//       GNUNET_CONFIGURATION_get_value_time (cfg,
+//                                            "donaudb",
+//                                            "AGGREGATOR_SHIFT",
+//                                            &pg->aggregator_shift))
+//   {
+//     GNUNET_log_config_missing (GNUNET_ERROR_TYPE_WARNING,
+//                                "donaudb",
+//                                "AGGREGATOR_SHIFT");
+//   }
+//   if (GNUNET_OK !=
+//       GNUNET_CONFIGURATION_get_value_number (cfg,
+//                                              "donaudb",
+//                                              "DEFAULT_PURSE_LIMIT",
+//                                              &dpl))
+//   {
+//     GNUNET_log_config_missing (GNUNET_ERROR_TYPE_WARNING,
+//                                "donaudb",
+//                                "DEFAULT_PURSE_LIMIT");
+//     pg->def_purse_limit = 1;
+//   }
+//   else
+//   {
+//     pg->def_purse_limit = (uint32_t) dpl;
+//   }
 
-  if (GNUNET_OK !=
-      TALER_config_get_currency (cfg,
-                                 &pg->currency))
-  {
-    GNUNET_free (pg->donau_url);
-    GNUNET_free (pg->sql_dir);
-    GNUNET_free (pg);
-    return NULL;
-  }
-  if (GNUNET_OK !=
-      TEH_PG_internal_setup (pg))
-  {
-    GNUNET_free (pg->donau_url);
-    GNUNET_free (pg->currency);
-    GNUNET_free (pg->sql_dir);
-    GNUNET_free (pg);
-    return NULL;
-  }
-  plugin = GNUNET_new (struct DONAUDB_Plugin);
-  plugin->cls = pg;
-  plugin->do_reserve_open
-    = &TEH_PG_do_reserve_open;
-  plugin->drop_tables
-    = &TEH_PG_drop_tables;
-  plugin->do_withdraw
-    = &TEH_PG_do_withdraw;
+//   if (GNUNET_OK !=
+//       TALER_config_get_currency (cfg,
+//                                  &pg->currency))
+//   {
+//     GNUNET_free (pg->donau_url);
+//     GNUNET_free (pg->sql_dir);
+//     GNUNET_free (pg);
+//     return NULL;
+//   }
+//   if (GNUNET_OK !=
+//       TEH_PG_internal_setup (pg))
+//   {
+//     GNUNET_free (pg->donau_url);
+//     GNUNET_free (pg->currency);
+//     GNUNET_free (pg->sql_dir);
+//     GNUNET_free (pg);
+//     return NULL;
+//   }
+//   plugin = GNUNET_new (struct DONAUDB_Plugin);
+//   plugin->cls = pg;
+//   plugin->do_reserve_open
+//     = &TEH_PG_do_reserve_open;
+//   plugin->drop_tables
+//     = &TEH_PG_drop_tables;
+//   plugin->do_withdraw
+//     = &TEH_PG_do_withdraw;
 
-  return plugin;
-}
+//   return plugin;
+// }
 
 
-/**
- * Shutdown Postgres database subsystem.
- *
- * @param cls a `struct DONAUDB_Plugin`
- * @return NULL (always)
- */
-void *
-libtaler_plugin_donaudb_postgres_done (void *cls)
-{
-  struct DONAUDB_Plugin *plugin = cls;
-  struct PostgresClosure *pg = plugin->cls;
+// /**
+//  * Shutdown Postgres database subsystem.
+//  *
+//  * @param cls a `struct DONAUDB_Plugin`
+//  * @return NULL (always)
+//  */
+// void *
+// libtaler_plugin_donaudb_postgres_done (void *cls)
+// {
+//   struct DONAUDB_Plugin *plugin = cls;
+//   struct PostgresClosure *pg = plugin->cls;
 
-  if (NULL != pg->conn)
-  {
-    GNUNET_PQ_disconnect (pg->conn);
-    pg->conn = NULL;
-  }
-  GNUNET_free (pg->donau_url);
-  GNUNET_free (pg->sql_dir);
-  GNUNET_free (pg->currency);
-  GNUNET_free (pg);
-  GNUNET_free (plugin);
-  return NULL;
-}
+//   if (NULL != pg->conn)
+//   {
+//     GNUNET_PQ_disconnect (pg->conn);
+//     pg->conn = NULL;
+//   }
+//   GNUNET_free (pg->donau_url);
+//   GNUNET_free (pg->sql_dir);
+//   GNUNET_free (pg->currency);
+//   GNUNET_free (pg);
+//   GNUNET_free (plugin);
+//   return NULL;
+// }
 
 
 /* end of plugin_donaudb_postgres.c */

-- 
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]