]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/fastbuf.h
Fastbuf: fbmulti: *'s and whitespace
[libucw.git] / ucw / fastbuf.h
index 564593dd16094e9ef32a4506b254042ea955f014..5c3ad1291c707ce88ee94f0c46c84b7ec8cc04a9 100644 (file)
@@ -488,8 +488,8 @@ static inline void fbatomic_commit(struct fastbuf *b)
  *
  * This backend is seekable iff all of the supplied fastbufs are seekable.
  *
- * Also, please be aware of direct operations on the underlying buffers. The
- * fbmulti backend doesn't expect you doing something directly on them.
+ * You aren't allowed to do anything with the underlying buffers while these
+ * are connected into fbmulti.
  *
  * You may init a fbmulti by @fbmulti_create(bufsize, fb1, fb2, ..., NULL).
  * This call returns a fastbuf that concatenates all the given fastbufs.
@@ -511,10 +511,11 @@ static inline void fbatomic_commit(struct fastbuf *b)
  * For performance reasons, use @fbmulti_flatten() only once, just before reading.
  ***/
 
-struct fastbuffbmulti_create(uns bufsize, ...) SENTINEL_CHECK;
+struct fastbuf *fbmulti_create(uns bufsize, ...) SENTINEL_CHECK;
 void fbmulti_append(struct fastbuf *f, struct fastbuf *fa, int allow_close);
 void fbmulti_flatten(struct fastbuf *f);
 
+
 /*** === Configuring stream parameters [[bconfig]] ***/
 
 enum bconfig_type {                    /** Parameters that could be configured. **/