From 332e61ee2a0929ede3725cb58b78154b889bd1ae Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 13 Aug 2013 13:26:13 +0000 Subject: [PATCH] -build namestore --- src/Makefile.am | 1 + src/include/gnunet_namestore_plugin.h | 15 ++++++--------- src/namestore/Makefile.am | 6 ++++++ 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index d8d3fbf57..1c1f0b541 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -65,6 +65,7 @@ SUBDIRS = \ dns \ identity \ set \ + namestore \ fs \ $(LINUX_DIR) \ $(MINGW_DIR) \ diff --git a/src/include/gnunet_namestore_plugin.h b/src/include/gnunet_namestore_plugin.h index 6ac0038ba..9a6a00462 100644 --- a/src/include/gnunet_namestore_plugin.h +++ b/src/include/gnunet_namestore_plugin.h @@ -82,7 +82,7 @@ struct GNUNET_NAMESTORE_PluginFunctions * * @param cls closure (internal context for the plugin) * @param block block to cache - * @return GNUNET_OK on success, else GNUNET_SYSERR + * @return #GNUNET_OK on success, else #GNUNET_SYSERR */ int (*cache_block) (void *cls, const struct GNUNET_NAMESTORE_Block *block); @@ -96,8 +96,7 @@ struct GNUNET_NAMESTORE_PluginFunctions * @param query hash of public key derived from the zone and the label * @param iter function to call with the result * @param iter_cls closure for iter - * @return GNUNET_OK on success, GNUNET_NO if there were no results, GNUNET_SYSERR on error - * 'iter' will have been called unless the return value is 'GNUNET_SYSERR' + * @return #GNUNET_OK on success, #GNUNET_NO if there were no results, #GNUNET_SYSERR on error */ int (*lookup_block) (void *cls, const struct GNUNET_HashCode *query, @@ -112,9 +111,9 @@ struct GNUNET_NAMESTORE_PluginFunctions * @param cls closure (internal context for the plugin) * @param zone private key of the zone * @param label name of the record in the zone - * @param rd_count number of entries in 'rd' array, 0 to delete all records + * @param rd_count number of entries in @a rd array, 0 to delete all records * @param rd array of records with data to store - * @return GNUNET_OK on success, else GNUNET_SYSERR + * @return #GNUNET_OK on success, else #GNUNET_SYSERR */ int (*store_records) (void *cls, const struct GNUNET_CRYPTO_EccPrivateKey *zone, @@ -132,8 +131,7 @@ struct GNUNET_NAMESTORE_PluginFunctions * @param offset offset in the list of all matching records * @param iter function to call with the result * @param iter_cls closure for iter - * @return GNUNET_OK on success, GNUNET_NO if there were no results, GNUNET_SYSERR on error - * 'iter' will have been called unless the return value is 'GNUNET_SYSERR' + * @return #GNUNET_OK on success, #GNUNET_NO if there were no results, #GNUNET_SYSERR on error */ int (*iterate_records) (void *cls, const struct GNUNET_CRYPTO_EccPrivateKey *zone, @@ -150,8 +148,7 @@ struct GNUNET_NAMESTORE_PluginFunctions * @param value_zone public key of the target zone (value), never NULL * @param iter function to call with the result * @param iter_cls closure for iter - * @return GNUNET_OK on success, GNUNET_NO if there were no results, GNUNET_SYSERR on error - * 'iter' will have been called unless the return value is 'GNUNET_SYSERR' + * @return #GNUNET_OK on success, #GNUNET_NO if there were no results, #GNUNET_SYSERR on error */ int (*zone_to_name) (void *cls, const struct GNUNET_CRYPTO_EccPrivateKey *zone, diff --git a/src/namestore/Makefile.am b/src/namestore/Makefile.am index 5a9675517..7c602ac13 100644 --- a/src/namestore/Makefile.am +++ b/src/namestore/Makefile.am @@ -36,6 +36,9 @@ endif endif endif +# testcases do not even build yet; thus: experimental! +if HAVE_EXPERIMENTAL + if HAVE_TESTING TESTING_TESTS = \ test_namestore_api \ @@ -62,6 +65,9 @@ check_PROGRAMS = \ test_namestore_api_sign_verify endif +# end of 'HAVE_EXPERIMENTAL' for testcases +endif + if ENABLE_TEST_RUN TESTS = $(check_PROGRAMS) endif -- 2.25.1