summaryrefslogtreecommitdiff
path: root/src/lib/du_buff.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/du_buff.c')
-rw-r--r--src/lib/du_buff.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/du_buff.c b/src/lib/du_buff.c
index 53d9c3e4..84bf528c 100644
--- a/src/lib/du_buff.c
+++ b/src/lib/du_buff.c
@@ -34,7 +34,15 @@ struct buffer {
uint8_t * data;
size_t size;
struct list_head list;
-} buffer;
+};
+
+struct du_buff {
+ struct buffer * buffer;
+ size_t size;
+ size_t du_start;
+ size_t du_end;
+ struct list_head list;
+};
void buffer_destroy(struct buffer * buf)
{