missing changes to headers
[oweals/gnunet.git] / src / include / gnunet_psycstore_service.h
1 /*
2      This file is part of GNUnet.
3      Copyright (C) 2013 Christian Grothoff (and other contributing authors)
4
5      GNUnet is free software; you can redistribute it and/or modify
6      it under the terms of the GNU General Public License as published
7      by the Free Software Foundation; either version 3, or (at your
8      option) any later version.
9
10      GNUnet is distributed in the hope that it will be useful, but
11      WITHOUT ANY WARRANTY; without even the implied warranty of
12      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13      General Public License for more details.
14
15      You should have received a copy of the GNU General Public License
16      along with GNUnet; see the file COPYING.  If not, write to the
17      Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18      Boston, MA 02110-1301, USA.
19 */
20
21 /**
22  * @file include/gnunet_psycstore_service.h
23  * @brief PSYCstore service; implements persistent storage for the PSYC service
24  * @author Gabor X Toth
25  * @author Christian Grothoff
26  */
27 #ifndef GNUNET_PSYCSTORE_SERVICE_H
28 #define GNUNET_PSYCSTORE_SERVICE_H
29
30 #ifdef __cplusplus
31 extern "C"
32 {
33 #if 0                           /* keep Emacsens' auto-indent happy */
34 }
35 #endif
36 #endif
37
38 #include "gnunet_util_lib.h"
39 #include "gnunet_env_lib.h"
40 #include "gnunet_multicast_service.h"
41 #include "gnunet_psyc_service.h"
42
43 /**
44  * Version number of GNUnet PSYCstore API.
45  */
46 #define GNUNET_PSYCSTORE_VERSION 0x00000000
47
48 /**
49  * Membership test failed.
50  */
51 #define GNUNET_PSYCSTORE_MEMBERSHIP_TEST_FAILED -2
52
53 /**
54  * Flags for stored messages.
55  */
56 enum GNUNET_PSYCSTORE_MessageFlags
57 {
58   /**
59    * The message contains state modifiers.
60    */
61   GNUNET_PSYCSTORE_MESSAGE_STATE = 1 << 0,
62
63   /**
64    * The state modifiers have been applied to the state store.
65    */
66   GNUNET_PSYCSTORE_MESSAGE_STATE_APPLIED = 1 << 1,
67
68   /**
69    * The message contains a state hash.
70    */
71   GNUNET_PSYCSTORE_MESSAGE_STATE_HASH = 1 << 2
72 };
73
74
75 /**
76  * Handle for a PSYCstore
77  */
78 struct GNUNET_PSYCSTORE_Handle;
79
80
81 /**
82  * Connect to the PSYCstore service.
83  *
84  * @param cfg Configuration to use.
85  *
86  * @return Handle for the connecton.
87  */
88 struct GNUNET_PSYCSTORE_Handle *
89 GNUNET_PSYCSTORE_connect (const struct GNUNET_CONFIGURATION_Handle *cfg);
90
91
92 /**
93  * Disconnect from the PSYCstore service.
94  *
95  * @param h Handle for the connection.
96  */
97 void
98 GNUNET_PSYCSTORE_disconnect (struct GNUNET_PSYCSTORE_Handle *h);
99
100
101 /**
102  * Handle for an operation on the PSYCSTORE (useful to cancel the operation).
103  */
104 struct GNUNET_PSYCSTORE_OperationHandle;
105
106
107 /**
108  * Function called with the result of an asynchronous operation.
109  *
110  * @param cls
111  *        Closure.
112  * @param result
113  *        Result of the operation.
114  * @param err_msg
115  *        Error message, or NULL if there's no error.
116  * @param err_msg_size
117  *        Size of @a err_msg
118  */
119 typedef void
120 (*GNUNET_PSYCSTORE_ResultCallback) (void *cls,
121                                     int64_t result,
122                                     const char *err_msg,
123                                     uint16_t err_msg_size);
124
125
126 /**
127  * Store join/leave events for a PSYC channel in order to be able to answer
128  * membership test queries later.
129  *
130  * @param h
131  *        Handle for the PSYCstore.
132  * @param channel_key
133  *        The channel where the event happened.
134  * @param slave_key
135  *        Public key of joining/leaving slave.
136  * @param did_join
137  *        #GNUNET_YES on join, #GNUNET_NO on part.
138  * @param announced_at
139  *        ID of the message that announced the membership change.
140  * @param effective_since
141  *        Message ID this membership change is in effect since.
142  *        For joins it is <= announced_at, for parts it is always 0.
143  * @param group_generation
144  *        In case of a part, the last group generation the slave has access to.
145  *        It has relevance when a larger message have fragments with different
146  *        group generations.
147  * @param rcb
148  *        Callback to call with the result of the storage operation.
149  * @param rcb_cls
150  *        Closure for the callback.
151  *
152  * @return Operation handle that can be used to cancel the operation.
153  */
154 struct GNUNET_PSYCSTORE_OperationHandle *
155 GNUNET_PSYCSTORE_membership_store (struct GNUNET_PSYCSTORE_Handle *h,
156                                    const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
157                                    const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key,
158                                    int did_join,
159                                    uint64_t announced_at,
160                                    uint64_t effective_since,
161                                    uint64_t group_generation,
162                                    GNUNET_PSYCSTORE_ResultCallback rcb,
163                                    void *rcb_cls);
164
165
166 /**
167  * Test if a member was admitted to the channel at the given message ID.
168  *
169  * This is useful when relaying and replaying messages to check if a particular
170  * slave has access to the message fragment with a given group generation.  It
171  * is also used when handling join requests to determine whether the slave is
172  * currently admitted to the channel.
173  *
174  * @param h
175  *        Handle for the PSYCstore.
176  * @param channel_key
177  *        The channel we are interested in.
178  * @param slave_key
179  *        Public key of slave whose membership to check.
180  * @param message_id
181  *        Message ID for which to do the membership test.
182  * @param group_generation
183  *        Group generation of the fragment of the message to test.
184  *        It has relevance if the message consists of multiple fragments with
185  *        different group generations.
186  * @param rcb
187  *        Callback to call with the test result.
188  * @param rcb_cls
189  *        Closure for the callback.
190  *
191  * @return Operation handle that can be used to cancel the operation.
192  */
193 struct GNUNET_PSYCSTORE_OperationHandle *
194 GNUNET_PSYCSTORE_membership_test (struct GNUNET_PSYCSTORE_Handle *h,
195                                   const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
196                                   const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key,
197                                   uint64_t message_id,
198                                   uint64_t group_generation,
199                                   GNUNET_PSYCSTORE_ResultCallback rcb,
200                                   void *rcb_cls);
201
202
203 /**
204  * Store a message fragment sent to a channel.
205  *
206  * @param h Handle for the PSYCstore.
207  * @param channel_key The channel the message belongs to.
208  * @param msg Message to store.
209  * @param psycstore_flags Flags indicating whether the PSYC message contains
210  *        state modifiers.
211  * @param rcb Callback to call with the result of the operation.
212  * @param rcb_cls Closure for the callback.
213  *
214  * @return Handle that can be used to cancel the operation.
215  */
216 struct GNUNET_PSYCSTORE_OperationHandle *
217 GNUNET_PSYCSTORE_fragment_store (struct GNUNET_PSYCSTORE_Handle *h,
218                                  const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
219                                  const struct GNUNET_MULTICAST_MessageHeader *msg,
220                                  enum GNUNET_PSYCSTORE_MessageFlags psycstore_flags,
221                                  GNUNET_PSYCSTORE_ResultCallback rcb,
222                                  void *rcb_cls);
223
224
225 /**
226  * Function called with one message fragment, as the result of a
227  * GNUNET_PSYCSTORE_fragment_get() or GNUNET_PSYCSTORE_message_get() call.
228  *
229  * @param cls Closure.
230  * @param message The retrieved message fragment.  A NULL value indicates that
231  *        there are no more results to be returned.
232  * @param psycstore_flags Flags stored with the message.
233  *
234  * @return #GNUNET_NO to stop calling this callback with further fragments,
235  *         #GNUNET_YES to continue.
236  */
237 typedef int
238 (*GNUNET_PSYCSTORE_FragmentCallback) (void *cls,
239                                       struct GNUNET_MULTICAST_MessageHeader *message,
240                                       enum GNUNET_PSYCSTORE_MessageFlags psycstore_flags);
241
242
243 /**
244  * Retrieve message fragments by fragment ID range.
245  *
246  * @param h
247  *        Handle for the PSYCstore.
248  * @param channel_key
249  *        The channel we are interested in.
250  * @param slave_key
251  *        The slave requesting the fragment.  If not NULL, a membership test is
252  *        performed first and the fragment is only returned if the slave has
253  *        access to it.
254  * @param first_fragment_id
255  *        First fragment ID to retrieve.
256  *        Use 0 to get the latest message fragment.
257  * @param last_fragment_id
258  *        Last consecutive fragment ID to retrieve.
259  *        Use 0 to get the latest message fragment.
260  * @param fragment_cb
261  *        Callback to call with the retrieved fragments.
262  * @param result_cb
263  *        Callback to call with the result of the operation.
264  * @param cls
265  *        Closure for the callbacks.
266  *
267  * @return Handle that can be used to cancel the operation.
268  */
269 struct GNUNET_PSYCSTORE_OperationHandle *
270 GNUNET_PSYCSTORE_fragment_get (struct GNUNET_PSYCSTORE_Handle *h,
271                                const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
272                                const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key,
273                                uint64_t first_message_id,
274                                uint64_t last_message_id,
275                                GNUNET_PSYCSTORE_FragmentCallback fragment_cb,
276                                GNUNET_PSYCSTORE_ResultCallback result_cb,
277                                void *cls);
278
279
280 /**
281  * Retrieve latest message fragments.
282  *
283  * @param h
284  *        Handle for the PSYCstore.
285  * @param channel_key
286  *        The channel we are interested in.
287  * @param slave_key
288  *        The slave requesting the fragment.  If not NULL, a membership test is
289  *        performed first and the fragment is only returned if the slave has
290  *        access to it.
291  * @param first_fragment_id
292  *        First fragment ID to retrieve.
293  *        Use 0 to get the latest message fragment.
294  * @param last_fragment_id
295  *        Last consecutive fragment ID to retrieve.
296  *        Use 0 to get the latest message fragment.
297  * @param fragment_limit
298  *        Maximum number of fragments to retrieve.
299  * @param fragment_cb
300  *        Callback to call with the retrieved fragments.
301  * @param rcb
302  *        Callback to call with the result of the operation.
303  * @param cls
304  *        Closure for the callbacks.
305  *
306  * @return Handle that can be used to cancel the operation.
307  */
308 struct GNUNET_PSYCSTORE_OperationHandle *
309 GNUNET_PSYCSTORE_fragment_get_latest (struct GNUNET_PSYCSTORE_Handle *h,
310                                       const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
311                                       const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key,
312                                       uint64_t fragment_limit,
313                                       GNUNET_PSYCSTORE_FragmentCallback fragment_cb,
314                                       GNUNET_PSYCSTORE_ResultCallback rcb,
315                                       void *cls);
316
317
318 /**
319  * Retrieve all fragments of messages in a message ID range.
320  *
321  * @param h
322  *        Handle for the PSYCstore.
323  * @param channel_key
324  *        The channel we are interested in.
325  * @param slave_key
326  *        The slave requesting the message.
327  *        If not NULL, a membership test is performed first
328  *        and the message is only returned if the slave has access to it.
329  * @param first_message_id
330  *        First message ID to retrieve.
331  * @param last_message_id
332  *        Last consecutive message ID to retrieve.
333  * @param method_prefix
334  *        Retrieve only messages with a matching method prefix.
335  * @param fragment_cb
336  *        Callback to call with the retrieved fragments.
337  * @param result_cb
338  *        Callback to call with the result of the operation.
339  * @param cls
340  *        Closure for the callbacks.
341  *
342  * @return Handle that can be used to cancel the operation.
343  */
344 struct GNUNET_PSYCSTORE_OperationHandle *
345 GNUNET_PSYCSTORE_message_get (struct GNUNET_PSYCSTORE_Handle *h,
346                               const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
347                               const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key,
348                               uint64_t first_message_id,
349                               uint64_t last_message_id,
350                               const char *method_prefix,
351                               GNUNET_PSYCSTORE_FragmentCallback fragment_cb,
352                               GNUNET_PSYCSTORE_ResultCallback result_cb,
353                               void *cls);
354
355
356 /**
357  * Retrieve all fragments of the latest messages.
358  *
359  * @param h
360  *        Handle for the PSYCstore.
361  * @param channel_key
362  *        The channel we are interested in.
363  * @param slave_key
364  *        The slave requesting the message.
365  *        If not NULL, a membership test is performed first
366  *        and the message is only returned if the slave has access to it.
367  * @param message_limit
368  *        Maximum number of messages to retrieve.
369  * @param method_prefix
370  *        Retrieve only messages with a matching method prefix.
371  * @param fragment_cb
372  *        Callback to call with the retrieved fragments.
373  * @param result_cb
374  *        Callback to call with the result of the operation.
375  * @param cls
376  *        Closure for the callbacks.
377  *
378  * @return Handle that can be used to cancel the operation.
379  */
380 struct GNUNET_PSYCSTORE_OperationHandle *
381 GNUNET_PSYCSTORE_message_get_latest (struct GNUNET_PSYCSTORE_Handle *h,
382                                      const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
383                                      const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key,
384                                      uint64_t message_limit,
385                                      const char *method_prefix,
386                                      GNUNET_PSYCSTORE_FragmentCallback fragment_cb,
387                                      GNUNET_PSYCSTORE_ResultCallback rcb,
388                                      void *cls);
389
390
391 /**
392  * Retrieve a fragment of message specified by its message ID and fragment
393  * offset.
394  *
395  * @param h
396  *        Handle for the PSYCstore.
397  * @param channel_key
398  *        The channel we are interested in.
399  * @param slave_key
400  *        The slave requesting the message fragment.  If not NULL, a membership
401  *        test is performed first and the message fragment is only returned
402  *        if the slave has access to it.
403  * @param message_id
404  *        Message ID to retrieve.  Use 0 to get the latest message.
405  * @param fragment_offset
406  *        Offset of the fragment to retrieve.
407  * @param fragment_cb
408  *        Callback to call with the retrieved fragments.
409  * @param result_cb
410  *        Callback to call with the result of the operation.
411  * @param cls
412  *        Closure for the callbacks.
413  *
414  * @return Handle that can be used to cancel the operation.
415  */
416 struct GNUNET_PSYCSTORE_OperationHandle *
417 GNUNET_PSYCSTORE_message_get_fragment (struct GNUNET_PSYCSTORE_Handle *h,
418                                        const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
419                                        const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key,
420                                        uint64_t message_id,
421                                        uint64_t fragment_offset,
422                                        GNUNET_PSYCSTORE_FragmentCallback fragment_cb,
423                                        GNUNET_PSYCSTORE_ResultCallback result_cb,
424                                        void *cls);
425
426
427 /**
428  * Callback used to return the latest value of counters for the channel master.
429  *
430  * @see GNUNET_PSYCSTORE_counters_get()
431  *
432  * @param cls Closure.
433  * @param result_code
434  *        Status code for the operation:
435  *        #GNUNET_OK: success, counter values are returned.
436  *        #GNUNET_NO: no message has been sent to the channel yet.
437  *        #GNUNET_SYSERR: an error occurred.
438  * @param max_fragment_id
439  *        Latest message fragment ID, used by multicast.
440  * @param max_message_id
441  *        Latest message ID, used by PSYC.
442  * @param max_group_generation
443  *        Latest group generation, used by PSYC.
444  * @param max_state_message_id
445  *        Latest message ID containing state modifiers that
446  *        was applied to the state store.  Used for the state sync process.
447  */
448 typedef void
449 (*GNUNET_PSYCSTORE_CountersCallback) (void *cls,
450                                       int result_code,
451                                       uint64_t max_fragment_id,
452                                       uint64_t max_message_id,
453                                       uint64_t max_group_generation,
454                                       uint64_t max_state_message_id);
455
456
457 /**
458  * Retrieve latest values of counters for a channel.
459  *
460  * The current value of counters are needed
461  * - when a channel master is restarted, so that it can continue incrementing
462  *   the counters from their last value.
463  * - when a channel slave rejoins and starts the state synchronization process.
464  *
465  * @param h
466  *        Handle for the PSYCstore.
467  * @param channel_key
468  *        Public key that identifies the channel.
469  * @param ccb
470  *        Callback to call with the result.
471  * @param ccb_cls
472  *        Closure for the @a ccb callback.
473  *
474  * @return Handle that can be used to cancel the operation.
475  */
476 struct GNUNET_PSYCSTORE_OperationHandle *
477 GNUNET_PSYCSTORE_counters_get (struct GNUNET_PSYCSTORE_Handle *h,
478                                struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
479                                GNUNET_PSYCSTORE_CountersCallback ccb,
480                                void *ccb_cls);
481
482
483 /**
484  * Apply modifiers of a message to the current channel state.
485  *
486  * An error is returned if there are missing messages containing state
487  * operations before the current one.
488  *
489  * @param h
490  *        Handle for the PSYCstore.
491  * @param channel_key
492  *        The channel we are interested in.
493  * @param message_id
494  *        ID of the message that contains the @a modifiers.
495  * @param state_delta
496  *        Value of the @e state_delta PSYC header variable of the message.
497  * @param rcb
498  *        Callback to call with the result of the operation.
499  * @param rcb_cls
500  *        Closure for the @a rcb callback.
501  *
502  * @return Handle that can be used to cancel the operation.
503  */
504 struct GNUNET_PSYCSTORE_OperationHandle *
505 GNUNET_PSYCSTORE_state_modify (struct GNUNET_PSYCSTORE_Handle *h,
506                                const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
507                                uint64_t message_id,
508                                uint64_t state_delta,
509                                GNUNET_PSYCSTORE_ResultCallback rcb,
510                                void *rcb_cls);
511
512
513 /**
514  * Store synchronized state.
515  *
516  * @param h
517  *        Handle for the PSYCstore.
518  * @param channel_key
519  *        The channel we are interested in.
520  * @param max_state_message_id
521  *        ID of the last stateful message before @a state_hash_message_id.
522  * @param state_hash_message_id
523  *        ID of the message that contains the state_hash PSYC header variable.
524  * @param modifier_count
525  *        Number of elements in the @a modifiers array.
526  * @param modifiers
527  *        Full state to store.
528  * @param rcb
529  *        Callback to call with the result of the operation.
530  * @param rcb_cls
531  *        Closure for the callback.
532  *
533  * @return Handle that can be used to cancel the operation.
534  */
535 struct GNUNET_PSYCSTORE_OperationHandle *
536 GNUNET_PSYCSTORE_state_sync (struct GNUNET_PSYCSTORE_Handle *h,
537                              const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
538                              uint64_t max_state_message_id,
539                              uint64_t state_hash_message_id,
540                              size_t modifier_count,
541                              const struct GNUNET_ENV_Modifier *modifiers,
542                              GNUNET_PSYCSTORE_ResultCallback rcb,
543                              void *rcb_cls);
544
545
546
547 /**
548  * Reset the state of a channel.
549  *
550  * Delete all state variables stored for the given channel.
551  *
552  * @param h
553  *        Handle for the PSYCstore.
554  * @param channel_key
555  *        The channel we are interested in.
556  * @param rcb
557  *        Callback to call with the result of the operation.
558  * @param rcb_cls
559  *        Closure for the callback.
560  *
561  * @return Handle that can be used to cancel the operation.
562  */
563 struct GNUNET_PSYCSTORE_OperationHandle *
564 GNUNET_PSYCSTORE_state_reset (struct GNUNET_PSYCSTORE_Handle *h,
565                               const struct GNUNET_CRYPTO_EddsaPublicKey
566                               *channel_key,
567                               GNUNET_PSYCSTORE_ResultCallback rcb,
568                               void *rcb_cls);
569
570
571 /**
572  * Update signed values of state variables in the state store.
573  *
574  * @param h
575  *        Handle for the PSYCstore.
576  * @param channel_key
577  *        The channel we are interested in.
578  * @param message_id
579  *        Message ID that contained the state @a hash.
580  * @param hash
581  *        Hash of the serialized full state.
582  * @param rcb
583  *        Callback to call with the result of the operation.
584  * @param rcb_cls
585  *        Closure for the callback.
586  *
587  */
588 struct GNUNET_PSYCSTORE_OperationHandle *
589 GNUNET_PSYCSTORE_state_hash_update (struct GNUNET_PSYCSTORE_Handle *h,
590                                     const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
591                                     uint64_t message_id,
592                                     const struct GNUNET_HashCode *hash,
593                                     GNUNET_PSYCSTORE_ResultCallback rcb,
594                                     void *rcb_cls);
595
596
597 /**
598  * Function called with the value of a state variable.
599  *
600  * @param cls
601  *        Closure.
602  * @param name
603  *        Name of the state variable.  A NULL value indicates that there are no more
604  *        state variables to be returned.
605  * @param value
606  *        Value of the state variable.
607  * @param value_size
608  *        Number of bytes in @a value.
609  *
610  * @return #GNUNET_NO to stop calling this callback with further variables,
611  *         #GNUNET_YES to continue.
612  */;
613 typedef int
614 (*GNUNET_PSYCSTORE_StateCallback) (void *cls, const char *name,
615                                    const void *value, uint32_t value_size);
616
617
618 /**
619  * Retrieve the best matching state variable.
620  *
621  * @param h
622  *        Handle for the PSYCstore.
623  * @param channel_key
624  *        The channel we are interested in.
625  * @param name
626  *        Name of variable to match, the returned variable might be less specific.
627  * @param scb
628  *        Callback to return the matching state variable.
629  * @param rcb
630  *        Callback to call with the result of the operation.
631  * @param cls
632  *        Closure for the callbacks.
633  *
634  * @return Handle that can be used to cancel the operation.
635  */
636 struct GNUNET_PSYCSTORE_OperationHandle *
637 GNUNET_PSYCSTORE_state_get (struct GNUNET_PSYCSTORE_Handle *h,
638                             const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
639                             const char *name,
640                             GNUNET_PSYCSTORE_StateCallback scb,
641                             GNUNET_PSYCSTORE_ResultCallback rcb,
642                             void *cls);
643
644
645 /**
646  * Retrieve all state variables for a channel with the given prefix.
647  *
648  * @param h
649  *        Handle for the PSYCstore.
650  * @param channel_key
651  *        The channel we are interested in.
652  * @param name_prefix
653  *        Prefix of state variable names to match.
654  * @param scb
655  *        Callback to return matching state variables.
656  * @param rcb
657  *        Callback to call with the result of the operation.
658  * @param cls
659  *        Closure for the callbacks.
660  *
661  * @return Handle that can be used to cancel the operation.
662  */
663 struct GNUNET_PSYCSTORE_OperationHandle *
664 GNUNET_PSYCSTORE_state_get_prefix (struct GNUNET_PSYCSTORE_Handle *h,
665                                    const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
666                                    const char *name_prefix,
667                                    GNUNET_PSYCSTORE_StateCallback scb,
668                                    GNUNET_PSYCSTORE_ResultCallback rcb,
669                                    void *cls);
670
671
672 /**
673  * Cancel an operation.
674  *
675  * @param op Handle for the operation to cancel.
676  */
677 void
678 GNUNET_PSYCSTORE_operation_cancel (struct GNUNET_PSYCSTORE_OperationHandle *op);
679
680
681
682
683 #if 0                           /* keep Emacsens' auto-indent happy */
684 {
685 #endif
686 #ifdef __cplusplus
687 }
688 #endif
689
690 /* ifndef GNUNET_PSYCSTORE_SERVICE_H */
691 #endif
692 /* end of gnunet_psycstore_service.h */