diff options
author | Dimitri Staessens <[email protected]> | 2016-02-23 10:46:44 +0100 |
---|---|---|
committer | Dimitri Staessens <[email protected]> | 2016-02-23 10:50:09 +0100 |
commit | 95c7e9a6a298702ae217b22d3f95313c0b1020af (patch) | |
tree | 34d0f96abc11311cf90728ee25bace8f8fa74eae /include | |
parent | 8dea4896c5f69aa2faf77b77028ad968709e705f (diff) | |
download | ouroboros-95c7e9a6a298702ae217b22d3f95313c0b1020af.tar.gz ouroboros-95c7e9a6a298702ae217b22d3f95313c0b1020af.zip |
lib: cleanup of du_buff
du_buff.h : moved struct buffer to source
du_buff.c : fixed formatting
LOG_DBGF used
Diffstat (limited to 'include')
-rw-r--r-- | include/ouroboros/du_buff.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/include/ouroboros/du_buff.h b/include/ouroboros/du_buff.h index 1d7b260a..522733f8 100644 --- a/include/ouroboros/du_buff.h +++ b/include/ouroboros/du_buff.h @@ -24,19 +24,10 @@ #ifndef OUROBOROS_DU_BUFF_H #define OUROBOROS_DU_BUFF_H -#include <stdint.h> -#include <unistd.h> -#include <stdbool.h> - +#include "common.h" #include "list.h" -/*FIXME: to be defined inside du_buff_t */ - -struct buffer { - uint8_t * data; - size_t size; - struct list_head list; -} buffer; +struct buffer; typedef struct { struct buffer * buffer; @@ -51,7 +42,7 @@ void du_buff_destroy(du_buff_t * dub); int du_buff_init(du_buff_t * dub, size_t start, - uint8_t * data, + uint8_t * data, size_t len); uint8_t * du_buff_data_ptr_start(du_buff_t * dub); |