diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-13 13:26:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-13 13:26:13 +0000 |
commit | 332e61ee2a0929ede3725cb58b78154b889bd1ae (patch) | |
tree | 0b2786f82e8d1b49d9947bf0c943bd9736e16e10 | |
parent | 35927ed463d637b46ec7f819578dbdf46b44d1f4 (diff) | |
download | gnunet-332e61ee2a0929ede3725cb58b78154b889bd1ae.tar.gz gnunet-332e61ee2a0929ede3725cb58b78154b889bd1ae.zip |
-build namestore
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | src/include/gnunet_namestore_plugin.h | 15 | ||||
-rw-r--r-- | 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 = \ | |||
65 | dns \ | 65 | dns \ |
66 | identity \ | 66 | identity \ |
67 | set \ | 67 | set \ |
68 | namestore \ | ||
68 | fs \ | 69 | fs \ |
69 | $(LINUX_DIR) \ | 70 | $(LINUX_DIR) \ |
70 | $(MINGW_DIR) \ | 71 | $(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 | |||
82 | * | 82 | * |
83 | * @param cls closure (internal context for the plugin) | 83 | * @param cls closure (internal context for the plugin) |
84 | * @param block block to cache | 84 | * @param block block to cache |
85 | * @return GNUNET_OK on success, else GNUNET_SYSERR | 85 | * @return #GNUNET_OK on success, else #GNUNET_SYSERR |
86 | */ | 86 | */ |
87 | int (*cache_block) (void *cls, | 87 | int (*cache_block) (void *cls, |
88 | const struct GNUNET_NAMESTORE_Block *block); | 88 | const struct GNUNET_NAMESTORE_Block *block); |
@@ -96,8 +96,7 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
96 | * @param query hash of public key derived from the zone and the label | 96 | * @param query hash of public key derived from the zone and the label |
97 | * @param iter function to call with the result | 97 | * @param iter function to call with the result |
98 | * @param iter_cls closure for iter | 98 | * @param iter_cls closure for iter |
99 | * @return GNUNET_OK on success, GNUNET_NO if there were no results, GNUNET_SYSERR on error | 99 | * @return #GNUNET_OK on success, #GNUNET_NO if there were no results, #GNUNET_SYSERR on error |
100 | * 'iter' will have been called unless the return value is 'GNUNET_SYSERR' | ||
101 | */ | 100 | */ |
102 | int (*lookup_block) (void *cls, | 101 | int (*lookup_block) (void *cls, |
103 | const struct GNUNET_HashCode *query, | 102 | const struct GNUNET_HashCode *query, |
@@ -112,9 +111,9 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
112 | * @param cls closure (internal context for the plugin) | 111 | * @param cls closure (internal context for the plugin) |
113 | * @param zone private key of the zone | 112 | * @param zone private key of the zone |
114 | * @param label name of the record in the zone | 113 | * @param label name of the record in the zone |
115 | * @param rd_count number of entries in 'rd' array, 0 to delete all records | 114 | * @param rd_count number of entries in @a rd array, 0 to delete all records |
116 | * @param rd array of records with data to store | 115 | * @param rd array of records with data to store |
117 | * @return GNUNET_OK on success, else GNUNET_SYSERR | 116 | * @return #GNUNET_OK on success, else #GNUNET_SYSERR |
118 | */ | 117 | */ |
119 | int (*store_records) (void *cls, | 118 | int (*store_records) (void *cls, |
120 | const struct GNUNET_CRYPTO_EccPrivateKey *zone, | 119 | const struct GNUNET_CRYPTO_EccPrivateKey *zone, |
@@ -132,8 +131,7 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
132 | * @param offset offset in the list of all matching records | 131 | * @param offset offset in the list of all matching records |
133 | * @param iter function to call with the result | 132 | * @param iter function to call with the result |
134 | * @param iter_cls closure for iter | 133 | * @param iter_cls closure for iter |
135 | * @return GNUNET_OK on success, GNUNET_NO if there were no results, GNUNET_SYSERR on error | 134 | * @return #GNUNET_OK on success, #GNUNET_NO if there were no results, #GNUNET_SYSERR on error |
136 | * 'iter' will have been called unless the return value is 'GNUNET_SYSERR' | ||
137 | */ | 135 | */ |
138 | int (*iterate_records) (void *cls, | 136 | int (*iterate_records) (void *cls, |
139 | const struct GNUNET_CRYPTO_EccPrivateKey *zone, | 137 | const struct GNUNET_CRYPTO_EccPrivateKey *zone, |
@@ -150,8 +148,7 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
150 | * @param value_zone public key of the target zone (value), never NULL | 148 | * @param value_zone public key of the target zone (value), never NULL |
151 | * @param iter function to call with the result | 149 | * @param iter function to call with the result |
152 | * @param iter_cls closure for iter | 150 | * @param iter_cls closure for iter |
153 | * @return GNUNET_OK on success, GNUNET_NO if there were no results, GNUNET_SYSERR on error | 151 | * @return #GNUNET_OK on success, #GNUNET_NO if there were no results, #GNUNET_SYSERR on error |
154 | * 'iter' will have been called unless the return value is 'GNUNET_SYSERR' | ||
155 | */ | 152 | */ |
156 | int (*zone_to_name) (void *cls, | 153 | int (*zone_to_name) (void *cls, |
157 | const struct GNUNET_CRYPTO_EccPrivateKey *zone, | 154 | 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 | |||
36 | endif | 36 | endif |
37 | endif | 37 | endif |
38 | 38 | ||
39 | # testcases do not even build yet; thus: experimental! | ||
40 | if HAVE_EXPERIMENTAL | ||
41 | |||
39 | if HAVE_TESTING | 42 | if HAVE_TESTING |
40 | TESTING_TESTS = \ | 43 | TESTING_TESTS = \ |
41 | test_namestore_api \ | 44 | test_namestore_api \ |
@@ -62,6 +65,9 @@ check_PROGRAMS = \ | |||
62 | test_namestore_api_sign_verify | 65 | test_namestore_api_sign_verify |
63 | endif | 66 | endif |
64 | 67 | ||
68 | # end of 'HAVE_EXPERIMENTAL' for testcases | ||
69 | endif | ||
70 | |||
65 | if ENABLE_TEST_RUN | 71 | if ENABLE_TEST_RUN |
66 | TESTS = $(check_PROGRAMS) | 72 | TESTS = $(check_PROGRAMS) |
67 | endif | 73 | endif |