summaryrefslogtreecommitdiff
path: root/src/network_backends.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/network_backends.h')
-rw-r--r--src/network_backends.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/network_backends.h b/src/network_backends.h
index 3cb36af..8d92006 100644
--- a/src/network_backends.h
+++ b/src/network_backends.h
@@ -2,8 +2,9 @@
#define _NETWORK_BACKENDS_H_
#ifdef HAVE_CONFIG_H
-#include "config.h"
+# include "config.h"
#endif
+#include "settings.h"
#include <sys/types.h>
@@ -45,6 +46,11 @@
#include "base.h"
+/* return values:
+ * >= 0 : chunks completed
+ * -1 : error (on our side)
+ * -2 : remote close
+ */
int network_write_chunkqueue_write(server *srv, connection *con, int fd, chunkqueue *cq);
int network_write_chunkqueue_writev(server *srv, connection *con, int fd, chunkqueue *cq);