From f94bb0a3a076caab71597b32963fd2815b8446f9 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Thu, 26 Mar 2015 18:06:37 +0100 Subject: db: Implement plugin loading and unloading --- src/mint/plugin_mintdb_postgres.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mint/plugin_mintdb_postgres.c') 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; -- cgit v1.2.3