From 9d47e5b702754e8089741af17e26000a33b78a0d Mon Sep 17 00:00:00 2001 From: leitner Date: Sat, 1 Nov 2003 00:08:14 +0000 Subject: [PATCH] added FROMBUF_FREE --- iob_internal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iob_internal.h b/iob_internal.h index 8872d5b..3174c8b 100644 --- a/iob_internal.h +++ b/iob_internal.h @@ -2,8 +2,10 @@ #include "array.h" typedef struct iob_entry { - enum { FROMBUF, FROMFILE } type; + enum { FROMBUF, FROMBUF_FREE, FROMFILE } type; int64 fd; const char* buf; uint64 offset,n; } iob_entry; + +int iob_addbuf_internal(io_batch* b,const void* buf,uint64 n,int free);