uncrustify as demanded.
[oweals/gnunet.git] / src / include / gnunet_peerstore_service.h
index ad80a3fa3734b3e27cde1d896de398339b8866c9..ac390ada2c2eb59fd870184d5625527b74cd315f 100644 (file)
@@ -71,9 +71,7 @@ extern "C" {
 /**
  * Options for storing values in PEERSTORE
  */
-enum GNUNET_PEERSTORE_StoreOption
-{
-
+enum GNUNET_PEERSTORE_StoreOption {
   /**
    * Possibly store multiple values under given key.
    */
@@ -84,7 +82,6 @@ enum GNUNET_PEERSTORE_StoreOption
    * storing the given value.
    */
   GNUNET_PEERSTORE_STOREOPTION_REPLACE = 1
-
 };
 
 /**
@@ -100,9 +97,7 @@ struct GNUNET_PEERSTORE_StoreContext;
 /**
  * Single PEERSTORE record
  */
-struct GNUNET_PEERSTORE_Record
-{
-
+struct GNUNET_PEERSTORE_Record {
   /**
    * Responsible sub system string
    */
@@ -169,7 +164,7 @@ typedef void (*GNUNET_PEERSTORE_Processor) (
  * @return NULL on error
  */
 struct GNUNET_PEERSTORE_Handle *
-GNUNET_PEERSTORE_connect (const struct GNUNET_CONFIGURATION_Handle *cfg);
+GNUNET_PEERSTORE_connect(const struct GNUNET_CONFIGURATION_Handle *cfg);
 
 
 /**
@@ -181,7 +176,7 @@ GNUNET_PEERSTORE_connect (const struct GNUNET_CONFIGURATION_Handle *cfg);
  * @param sync_first send any pending STORE requests before disconnecting
  */
 void
-GNUNET_PEERSTORE_disconnect (struct GNUNET_PEERSTORE_Handle *h, int sync_first);
+GNUNET_PEERSTORE_disconnect(struct GNUNET_PEERSTORE_Handle *h, int sync_first);
 
 
 /**
@@ -201,16 +196,16 @@ GNUNET_PEERSTORE_disconnect (struct GNUNET_PEERSTORE_Handle *h, int sync_first);
  * @param cont_cls Closure for @a cont
  */
 struct GNUNET_PEERSTORE_StoreContext *
-GNUNET_PEERSTORE_store (struct GNUNET_PEERSTORE_Handle *h,
-                        const char *sub_system,
-                        const struct GNUNET_PeerIdentity *peer,
-                        const char *key,
-                        const void *value,
-                        size_t size,
-                        struct GNUNET_TIME_Absolute expiry,
-                        enum GNUNET_PEERSTORE_StoreOption options,
-                        GNUNET_PEERSTORE_Continuation cont,
-                        void *cont_cls);
+GNUNET_PEERSTORE_store(struct GNUNET_PEERSTORE_Handle *h,
+                       const char *sub_system,
+                       const struct GNUNET_PeerIdentity *peer,
+                       const char *key,
+                       const void *value,
+                       size_t size,
+                       struct GNUNET_TIME_Absolute expiry,
+                       enum GNUNET_PEERSTORE_StoreOption options,
+                       GNUNET_PEERSTORE_Continuation cont,
+                       void *cont_cls);
 
 
 /**
@@ -219,7 +214,7 @@ GNUNET_PEERSTORE_store (struct GNUNET_PEERSTORE_Handle *h,
  * @param sc Store request context
  */
 void
-GNUNET_PEERSTORE_store_cancel (struct GNUNET_PEERSTORE_StoreContext *sc);
+GNUNET_PEERSTORE_store_cancel(struct GNUNET_PEERSTORE_StoreContext *sc);
 
 
 /**
@@ -233,12 +228,12 @@ GNUNET_PEERSTORE_store_cancel (struct GNUNET_PEERSTORE_StoreContext *sc);
  * @param callback_cls closure for @a callback
  */
 struct GNUNET_PEERSTORE_IterateContext *
-GNUNET_PEERSTORE_iterate (struct GNUNET_PEERSTORE_Handle *h,
-                          const char *sub_system,
-                          const struct GNUNET_PeerIdentity *peer,
-                          const char *key,
-                          GNUNET_PEERSTORE_Processor callback,
-                          void *callback_cls);
+GNUNET_PEERSTORE_iterate(struct GNUNET_PEERSTORE_Handle *h,
+                         const char *sub_system,
+                         const struct GNUNET_PeerIdentity *peer,
+                         const char *key,
+                         GNUNET_PEERSTORE_Processor callback,
+                         void *callback_cls);
 
 
 /**
@@ -248,7 +243,7 @@ GNUNET_PEERSTORE_iterate (struct GNUNET_PEERSTORE_Handle *h,
  * @param ic Iterate request context as returned by GNUNET_PEERSTORE_iterate()
  */
 void
-GNUNET_PEERSTORE_iterate_cancel (struct GNUNET_PEERSTORE_IterateContext *ic);
+GNUNET_PEERSTORE_iterate_cancel(struct GNUNET_PEERSTORE_IterateContext *ic);
 
 
 /**
@@ -264,12 +259,12 @@ GNUNET_PEERSTORE_iterate_cancel (struct GNUNET_PEERSTORE_IterateContext *ic);
  * @return Handle to watch request
  */
 struct GNUNET_PEERSTORE_WatchContext *
-GNUNET_PEERSTORE_watch (struct GNUNET_PEERSTORE_Handle *h,
-                        const char *sub_system,
-                        const struct GNUNET_PeerIdentity *peer,
-                        const char *key,
-                        GNUNET_PEERSTORE_Processor callback,
-                        void *callback_cls);
+GNUNET_PEERSTORE_watch(struct GNUNET_PEERSTORE_Handle *h,
+                       const char *sub_system,
+                       const struct GNUNET_PeerIdentity *peer,
+                       const char *key,
+                       GNUNET_PEERSTORE_Processor callback,
+                       void *callback_cls);
 
 
 /**
@@ -278,7 +273,7 @@ GNUNET_PEERSTORE_watch (struct GNUNET_PEERSTORE_Handle *h,
  * @param wc handle to the watch request
  */
 void
-GNUNET_PEERSTORE_watch_cancel (struct GNUNET_PEERSTORE_WatchContext *wc);
+GNUNET_PEERSTORE_watch_cancel(struct GNUNET_PEERSTORE_WatchContext *wc);
 
 
 #if 0 /* keep Emacsens' auto-indent happy */