diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-16 21:52:04 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-16 21:52:04 +0000 |
commit | dbc823a07a03e1085172038125b0edf15b0dc6fe (patch) | |
tree | 4e7c3bf60ce83e801c69a6566ea36d514b571cba /src/include/gnunet_namestore_service.h | |
parent | eec0e5088ec9437f5c0cf9d3ffef87603ad2777a (diff) | |
download | gnunet-dbc823a07a03e1085172038125b0edf15b0dc6fe.tar.gz gnunet-dbc823a07a03e1085172038125b0edf15b0dc6fe.zip |
-finishing split of namestore into namestore and namecache (#3065) -- in theory; in practice, somehow something broke badly, so the tests are now failing
Diffstat (limited to 'src/include/gnunet_namestore_service.h')
-rw-r--r-- | src/include/gnunet_namestore_service.h | 46 |
1 files changed, 1 insertions, 45 deletions
diff --git a/src/include/gnunet_namestore_service.h b/src/include/gnunet_namestore_service.h index b37cecf50..36e912f51 100644 --- a/src/include/gnunet_namestore_service.h +++ b/src/include/gnunet_namestore_service.h | |||
@@ -96,23 +96,6 @@ typedef void (*GNUNET_NAMESTORE_ContinuationWithStatus) (void *cls, | |||
96 | 96 | ||
97 | /** | 97 | /** |
98 | * Store an item in the namestore. If the item is already present, | 98 | * Store an item in the namestore. If the item is already present, |
99 | * it is replaced with the new record. | ||
100 | * | ||
101 | * @param h handle to the namestore | ||
102 | * @param block block to store | ||
103 | * @param cont continuation to call when done | ||
104 | * @param cont_cls closure for @a cont | ||
105 | * @return handle to abort the request | ||
106 | */ | ||
107 | struct GNUNET_NAMESTORE_QueueEntry * | ||
108 | GNUNET_NAMESTORE_block_cache (struct GNUNET_NAMESTORE_Handle *h, | ||
109 | const struct GNUNET_GNSRECORD_Block *block, | ||
110 | GNUNET_NAMESTORE_ContinuationWithStatus cont, | ||
111 | void *cont_cls); | ||
112 | |||
113 | |||
114 | /** | ||
115 | * Store an item in the namestore. If the item is already present, | ||
116 | * it is replaced with the new record. Use an empty array to | 99 | * it is replaced with the new record. Use an empty array to |
117 | * remove all records under the given name. | 100 | * remove all records under the given name. |
118 | * | 101 | * |
@@ -135,33 +118,6 @@ GNUNET_NAMESTORE_records_store (struct GNUNET_NAMESTORE_Handle *h, | |||
135 | void *cont_cls); | 118 | void *cont_cls); |
136 | 119 | ||
137 | 120 | ||
138 | /** | ||
139 | * Process a record that was stored in the namestore. | ||
140 | * | ||
141 | * @param cls closure | ||
142 | * @param block block that was stored in the namestore | ||
143 | */ | ||
144 | typedef void (*GNUNET_GNSRECORD_BlockProcessor) (void *cls, | ||
145 | const struct GNUNET_GNSRECORD_Block *block); | ||
146 | |||
147 | |||
148 | /** | ||
149 | * Get a result for a particular key from the namestore. The processor | ||
150 | * will only be called once. | ||
151 | * | ||
152 | * @param h handle to the namestore | ||
153 | * @param derived_hash hash of zone key combined with name to lookup | ||
154 | * then at the end once with NULL | ||
155 | * @param proc function to call on the matching block, or with | ||
156 | * NULL if there is no matching block | ||
157 | * @param proc_cls closure for @a proc | ||
158 | * @return a handle that can be used to cancel | ||
159 | */ | ||
160 | struct GNUNET_NAMESTORE_QueueEntry * | ||
161 | GNUNET_NAMESTORE_lookup_block (struct GNUNET_NAMESTORE_Handle *h, | ||
162 | const struct GNUNET_HashCode *derived_hash, | ||
163 | GNUNET_GNSRECORD_BlockProcessor proc, void *proc_cls); | ||
164 | |||
165 | 121 | ||
166 | /** | 122 | /** |
167 | * Process a record that was stored in the namestore. | 123 | * Process a record that was stored in the namestore. |
@@ -223,7 +179,7 @@ GNUNET_NAMESTORE_cancel (struct GNUNET_NAMESTORE_QueueEntry *qe); | |||
223 | * @param zone zone to access, NULL for all zones | 179 | * @param zone zone to access, NULL for all zones |
224 | * @param proc function to call on each name from the zone; it | 180 | * @param proc function to call on each name from the zone; it |
225 | * will be called repeatedly with a value (if available) | 181 | * will be called repeatedly with a value (if available) |
226 | * and always once at the end with a name of NULL. | 182 | * and always once at the end with a label of NULL. |
227 | * @param proc_cls closure for @a proc | 183 | * @param proc_cls closure for @a proc |
228 | * @return an iterator handle to use for iteration | 184 | * @return an iterator handle to use for iteration |
229 | */ | 185 | */ |