diff options
Diffstat (limited to 'src/include/gnunet_peerstore_service.h')
-rw-r--r-- | src/include/gnunet_peerstore_service.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/include/gnunet_peerstore_service.h b/src/include/gnunet_peerstore_service.h index 1cb60cb04..99ba98593 100644 --- a/src/include/gnunet_peerstore_service.h +++ b/src/include/gnunet_peerstore_service.h | |||
@@ -179,6 +179,63 @@ typedef void (*GNUNET_PEERSTORE_Continuation) (void *cls, int success); | |||
179 | 179 | ||
180 | 180 | ||
181 | /** | 181 | /** |
182 | * Context for a add hello uri request. | ||
183 | */ | ||
184 | struct GNUNET_PEERSTORE_StoreHelloContext | ||
185 | { | ||
186 | /** | ||
187 | * Kept (also) in a DLL. | ||
188 | */ | ||
189 | struct GNUNET_PEERSTORE_StoreHelloContext *prev; | ||
190 | |||
191 | /** | ||
192 | * Kept (also) in a DLL. | ||
193 | */ | ||
194 | struct GNUNET_PEERSTORE_StoreHelloContext *next; | ||
195 | |||
196 | /** | ||
197 | * Peerstore handle. | ||
198 | */ | ||
199 | struct GNUNET_PEERSTORE_Handle *h; | ||
200 | |||
201 | /** | ||
202 | * Function to call with information. | ||
203 | */ | ||
204 | GNUNET_PEERSTORE_Continuation cont; | ||
205 | |||
206 | /** | ||
207 | * Closure for @e callback. | ||
208 | */ | ||
209 | void *cont_cls; | ||
210 | |||
211 | /** | ||
212 | * Map with all store contexts started during adding hello. | ||
213 | */ | ||
214 | struct GNUNET_CONTAINER_MultiPeerMap *store_context_map; | ||
215 | |||
216 | /** | ||
217 | * Active watch to be notified about conflicting hello uri add requests. | ||
218 | */ | ||
219 | struct GNUNET_PEERSTORE_WatchContext *wc; | ||
220 | |||
221 | /** | ||
222 | * Hello uri which was request for storing. | ||
223 | */ | ||
224 | struct GNUNET_MessageHeader *hello; | ||
225 | |||
226 | /** | ||
227 | * The peer id for the hello. | ||
228 | */ | ||
229 | struct GNUNET_PeerIdentity *pid; | ||
230 | |||
231 | /** | ||
232 | * Was this request successful. | ||
233 | */ | ||
234 | int success; | ||
235 | }; | ||
236 | |||
237 | |||
238 | /** | ||
182 | * Function called by PEERSTORE for each matching record. | 239 | * Function called by PEERSTORE for each matching record. |
183 | * | 240 | * |
184 | * @param cls closure | 241 | * @param cls closure |