aboutsummaryrefslogtreecommitdiffstats
path: root/common/iobuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/iobuf.h')
-rw-r--r--common/iobuf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/iobuf.h b/common/iobuf.h
index 22e02daad..16156383c 100644
--- a/common/iobuf.h
+++ b/common/iobuf.h
@@ -259,6 +259,12 @@ struct iobuf_struct
EXTERN_UNLESS_MAIN_MODULE int iobuf_debug_mode;
+/* Change the default size for all IOBUFs to KILOBYTE. This needs to
+ * be called before any iobufs are used and can only be used once.
+ * Returns the current value. Using 0 has no effect except for
+ * returning the current value. */
+unsigned int iobuf_set_buffer_size (unsigned int kilobyte);
+
/* Returns whether the specified filename corresponds to a pipe. In
particular, this function checks if FNAME is "-" and, if special
filenames are enabled (see check_special_filename), whether