summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/shm_du_map.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/include/ouroboros/shm_du_map.h b/include/ouroboros/shm_du_map.h
index 23c0c3aa..11fe35c6 100644
--- a/include/ouroboros/shm_du_map.h
+++ b/include/ouroboros/shm_du_map.h
@@ -50,16 +50,18 @@ int shm_du_map_read(uint8_t ** dst,
struct shm_du_map * dum,
ssize_t idx);
int shm_du_map_remove(struct shm_du_map * dum,
- ssize_t idx);
-
-/* FIXME: use shm_du_map * and index */
-uint8_t * shm_du_buff_head_alloc(struct shm_du_buff * sdb,
- size_t size);
-uint8_t * shm_du_buff_tail_alloc(struct shm_du_buff * sdb,
- size_t size);
-int shm_du_buff_head_release(struct shm_du_buff * sdb,
- size_t size);
-int shm_du_buff_tail_release(struct shm_du_buff * sdb,
- size_t size);
+ ssize_t idx);
+uint8_t * shm_du_buff_head_alloc(struct shm_du_map * dum,
+ int idx,
+ ssize_t size);
+uint8_t * shm_du_buff_tail_alloc(struct shm_du_map * dum,
+ int idx,
+ ssize_t size);
+int shm_du_buff_head_release(struct shm_du_map * dum,
+ int idx,
+ ssize_t size);
+int shm_du_buff_tail_release(struct shm_du_map * dum,
+ int idx,
+ ssize_t size);
#endif /* OUROBOROS_SHM_DU_MAP_H */