]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Reformat iostream-pump.h.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sun, 25 Feb 2018 18:03:49 +0000 (19:03 +0100)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Sun, 18 Mar 2018 10:53:18 +0000 (12:53 +0200)
src/lib/iostream-pump.h

index 21b68a625a60d422127747e18c5173075f414e01..0614674e7570f937aeb03c855aebb32a3bd884f4 100644 (file)
@@ -1,23 +1,18 @@
-/* Copyright (c) 2002-2018 Dovecot authors, see the included COPYING file
- */
 #ifndef IOSTREAM_PUMP_H
-#define IOSTREAM_PUMP_H 1
-
-/**
-
-iostream-pump
-=============
+#define IOSTREAM_PUMP_H
 
-This construct pumps data from istream to ostream asynchronously.
+/* iostream-pump
+   =============
 
-The pump requires you to provide completion callback. The
-completion callback is called with success parameter to
-indicate whether it ended with error.
+   This construct pumps data from istream to ostream asynchronously.
 
-The istream and ostream are reffed on creation and unreffed
-on unref.
-
-**/
+   The pump requires you to provide completion callback. The completion
+   callback is called with success parameter to indicate whether it ended
+   with error.
+   
+   The istream and ostream are reffed on creation and unreffed
+   on unref.
+ */
 
 struct istream;
 struct ostream;
@@ -51,10 +46,13 @@ void iostream_pump_ref(struct iostream_pump *pump);
 void iostream_pump_unref(struct iostream_pump **pump_r);
 
 void iostream_pump_set_completion_callback(struct iostream_pump *pump,
-                                          iostream_pump_callback_t *callback, void *context);
+                                          iostream_pump_callback_t *callback,
+                                          void *context);
 #define iostream_pump_set_completion_callback(pump, callback, context) \
-       iostream_pump_set_completion_callback(pump, (iostream_pump_callback_t *)callback, context + \
-               CALLBACK_TYPECHECK(callback, void (*)(enum iostream_pump_status, typeof(context))))
+       iostream_pump_set_completion_callback(pump, \
+               (iostream_pump_callback_t *)callback, \
+               context + CALLBACK_TYPECHECK(callback, \
+                       void (*)(enum iostream_pump_status, typeof(context))))
 
 /* Returns TRUE if the pump is currently only writing to the ostream. The input
    listener has been removed either because the ostream buffer is full or