diff options
author | Dimitri Staessens <dimitri.staessens@intec.ugent.be> | 2016-02-23 12:06:03 +0100 |
---|---|---|
committer | Dimitri Staessens <dimitri.staessens@intec.ugent.be> | 2016-02-23 12:06:03 +0100 |
commit | c36daed13ba47edf59aa47e27aeffa35b3030f0e (patch) | |
tree | fbea7a08a17a6b86be9b925c32aef1ab4d80ab6b /src | |
parent | 95c7e9a6a298702ae217b22d3f95313c0b1020af (diff) | |
download | ouroboros-c36daed13ba47edf59aa47e27aeffa35b3030f0e.tar.gz ouroboros-c36daed13ba47edf59aa47e27aeffa35b3030f0e.zip |
du_buff: Restructured for information hiding
Moved struct buffer and struct du_buff definitions to the source file.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/du_buff.c | 10 |
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) { |