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 /include | |
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 'include')
-rw-r--r-- | include/ouroboros/du_buff.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/include/ouroboros/du_buff.h b/include/ouroboros/du_buff.h index 522733f8..d23f4b09 100644 --- a/include/ouroboros/du_buff.h +++ b/include/ouroboros/du_buff.h @@ -27,15 +27,9 @@ #include "common.h" #include "list.h" -struct buffer; - -typedef struct { - struct buffer * buffer; - size_t size; - size_t du_start; - size_t du_end; - struct list_head list; -} du_buff_t; +struct du_buff; + +typedef struct du_buff du_buff_t; du_buff_t * du_buff_create(size_t size); void du_buff_destroy(du_buff_t * dub); |