summaryrefslogtreecommitdiff
path: root/src/mint/plugin_mintdb_postgres.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <sreeharsha@totakura.in>2015-03-26 18:06:37 +0100
committerSree Harsha Totakura <sreeharsha@totakura.in>2015-03-26 18:06:37 +0100
commitf94bb0a3a076caab71597b32963fd2815b8446f9 (patch)
treec9a08e071a446f6a4b8b10149f9cbaef567d69cc /src/mint/plugin_mintdb_postgres.c
parenta3ac2587cfee3c8b6e058d4086eea8f5f297e5af (diff)
downloadexchange-f94bb0a3a076caab71597b32963fd2815b8446f9.tar.gz
exchange-f94bb0a3a076caab71597b32963fd2815b8446f9.tar.bz2
exchange-f94bb0a3a076caab71597b32963fd2815b8446f9.zip
db: Implement plugin loading and unloading
Diffstat (limited to 'src/mint/plugin_mintdb_postgres.c')
-rw-r--r--src/mint/plugin_mintdb_postgres.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mint/plugin_mintdb_postgres.c b/src/mint/plugin_mintdb_postgres.c
index 5a1ff8c0c..8edee59ae 100644
--- a/src/mint/plugin_mintdb_postgres.c
+++ b/src/mint/plugin_mintdb_postgres.c
@@ -2289,16 +2289,17 @@ libtaler_plugin_mintdb_postgres_init (void *cls)
/* FIXME: use configuration section with "postgres" in its name... */
if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (cfg,
- "mint", "db",
+ "mint", "db_conn_str",
&pg->TALER_MINT_db_connection_cfg_str))
{
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
"mint",
- "db");
+ "db_conn_str");
return NULL;
}
plugin = GNUNET_new (struct TALER_MINTDB_Plugin);
plugin->cls = pg;
+ plugin->library_name = "libtaler_plugin_mintdb_postgres";
plugin->get_session = &postgres_get_session;
plugin->drop_temporary = &postgres_drop_temporary;
plugin->create_tables = &postgres_create_tables;