- some func
[oweals/gnunet.git] / src / namestore / test_namestore_api.c
index c15a4e7d1827795342cfbf1e335c86a7e943ada2..16074c7cf55d3501a9ff81513614ebfcee0ff57c 100644 (file)
 
 #define VERBOSE GNUNET_EXTRA_LOGGING
 
+static struct GNUNET_NAMESTORE_Handle * nsh;
+
 static int res;
 
 static void
 run (void *cls, char *const *args, const char *cfgfile,
      const struct GNUNET_CONFIGURATION_Handle *cfg)
 {
-
+  nsh = GNUNET_NAMESTORE_connect (cfg);
+  GNUNET_break (NULL != nsh);
+  GNUNET_NAMESTORE_disconnect (nsh, GNUNET_YES);
   res = 0;
 }