summaryrefslogtreecommitdiff
path: root/packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/packet.h b/packet.h
index 4645b14..ac14eca 100644
--- a/packet.h
+++ b/packet.h
@@ -27,6 +27,7 @@
#define _PACKET_H_
#include "includes.h"
+#include "queue.h"
void write_packet();
void read_packet();
@@ -46,4 +47,8 @@ typedef struct PacketType {
#define INIT_READBUF 128
+/* TODO: writev #ifdef guard */
+struct iovec * packet_queue_to_iovec(struct Queue *queue, int *ret_iov_count);
+void packet_queue_consume(struct Queue *queue, ssize_t written);
+
#endif /* _PACKET_H_ */