diff options
Diffstat (limited to 'src/mintdb/test_mintdb.c')
-rw-r--r-- | src/mintdb/test_mintdb.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mintdb/test_mintdb.c b/src/mintdb/test_mintdb.c index a82094075..b98a09cd5 100644 --- a/src/mintdb/test_mintdb.c +++ b/src/mintdb/test_mintdb.c @@ -19,7 +19,8 @@ * @author Sree Harsha Totakura <sreeharsha@totakura.in> */ #include "platform.h" -#include "plugin.h" +#include "taler_mintdb_lib.h" +#include "taler_mintdb_plugin.h" static int result; @@ -40,6 +41,8 @@ static int result; #define CURRENCY "EUR" +static struct TALER_MINTDB_Plugin *plugin; + /** * Checks if the given reserve has the given amount of balance and expiry * @@ -154,8 +157,8 @@ run (void *cls, session = NULL; ZR_BLK (&cbc); ZR_BLK (&cbc2); - if (GNUNET_OK != - TALER_MINT_plugin_load (cfg)) + if (NULL == + (plugin = TALER_MINTDB_plugin_load (cfg))) { result = 1; return; @@ -344,7 +347,8 @@ run (void *cls, if (NULL != cbc2.sig.rsa_signature) GNUNET_CRYPTO_rsa_signature_free (cbc2.sig.rsa_signature); dkp = NULL; - TALER_MINT_plugin_unload (); + TALER_MINTDB_plugin_unload (plugin); + plugin = NULL; } |