summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2016-02-25 11:27:17 +0100
committerDimitri Staessens <[email protected]>2016-02-25 11:27:17 +0100
commit07da22df212ddbf7ae56d9c0e04bb7ced4cca0a0 (patch)
tree5e077b69246f916da68c6c69db7a78bda9a4ecd6 /include
parent25fe49a5ae2b21809d3ebf9f9ed2cc61167cd9ba (diff)
downloadouroboros-07da22df212ddbf7ae56d9c0e04bb7ced4cca0a0.tar.gz
ouroboros-07da22df212ddbf7ae56d9c0e04bb7ced4cca0a0.zip
lib: du_buff alloc API changed to return pointers
du_buff.[c/h]: alloc_head and alloc_tail now return a pointer to the start of the PCI for direct read/write access.
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/du_buff.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ouroboros/du_buff.h b/include/ouroboros/du_buff.h
index 92d0609d..66904ca7 100644
--- a/include/ouroboros/du_buff.h
+++ b/include/ouroboros/du_buff.h
@@ -39,8 +39,8 @@ int du_buff_init(du_buff_t * dub,
uint8_t * data,
size_t len);
-int du_buff_head_alloc(du_buff_t * dub, size_t size);
-int du_buff_tail_alloc(du_buff_t * dub, size_t size);
+uint8_t * du_buff_head_alloc(du_buff_t * dub, size_t size);
+uint8_t * du_buff_tail_alloc(du_buff_t * dub, size_t size);
int du_buff_head_release(du_buff_t * dub, size_t size);
int du_buff_tail_release(du_buff_t * dub, size_t size);