aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/plugin_namestore_flat.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-17 14:42:46 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-17 14:42:46 +0200
commit7eb7bd8666aeb2e855cd22b1ea7f44b87bb60400 (patch)
tree4847832d236a874f0a8b711a038c4c2950219848 /src/namestore/plugin_namestore_flat.c
parent64a7c356b391016be0aa01bc25c237f59fc03a34 (diff)
downloadgnunet-7eb7bd8666aeb2e855cd22b1ea7f44b87bb60400.tar.gz
gnunet-7eb7bd8666aeb2e855cd22b1ea7f44b87bb60400.zip
use namestore API for zone import instead of using plugin directly
Diffstat (limited to 'src/namestore/plugin_namestore_flat.c')
-rw-r--r--src/namestore/plugin_namestore_flat.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/namestore/plugin_namestore_flat.c b/src/namestore/plugin_namestore_flat.c
index 170adb49e..305fe7ba1 100644
--- a/src/namestore/plugin_namestore_flat.c
+++ b/src/namestore/plugin_namestore_flat.c
@@ -667,46 +667,6 @@ namestore_flat_zone_to_name (void *cls,
667 667
668 668
669/** 669/**
670 * Start a transaction.
671 *
672 * @param cls closure
673 * @return #GNUNET_OK on success, #GNUNET_NO if transactions are not supported,
674 * #GNUNET_SYSERR on internal errors
675 */
676static int
677namestore_flat_begin_transaction (void *cls)
678{
679 return GNUNET_NO;
680}
681
682
683/**
684 * Try to commit a transaction.
685 *
686 * @param cls closure
687 * @return #GNUNET_OK on success, #GNUNET_SYSERR on failure
688 */
689static int
690namestore_flat_commit_transaction (void *cls)
691{
692 GNUNET_break (0);
693 return GNUNET_SYSERR;
694}
695
696
697/**
698 * Rollback a transaction.
699 *
700 * @param cls closure
701 */
702static void
703namestore_flat_rollback_transaction (void *cls)
704{
705 GNUNET_break (0);
706}
707
708
709/**
710 * Entry point for the plugin. 670 * Entry point for the plugin.
711 * 671 *
712 * @param cls the "struct GNUNET_NAMESTORE_PluginEnvironment*" 672 * @param cls the "struct GNUNET_NAMESTORE_PluginEnvironment*"
@@ -736,9 +696,6 @@ libgnunet_plugin_namestore_flat_init (void *cls)
736 api->iterate_records = &namestore_flat_iterate_records; 696 api->iterate_records = &namestore_flat_iterate_records;
737 api->zone_to_name = &namestore_flat_zone_to_name; 697 api->zone_to_name = &namestore_flat_zone_to_name;
738 api->lookup_records = &namestore_flat_lookup_records; 698 api->lookup_records = &namestore_flat_lookup_records;
739 api->begin_transaction = &namestore_flat_begin_transaction;
740 api->commit_transaction = &namestore_flat_commit_transaction;
741 api->rollback_transaction = &namestore_flat_rollback_transaction;
742 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 699 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
743 _("flat file database running\n")); 700 _("flat file database running\n"));
744 return api; 701 return api;