Changes in uspace/lib/c/generic/adt/dynamic_fifo.c [7e66a5ec:4eca056] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/adt/dynamic_fifo.c
r7e66a5ec r4eca056 59 59 * @returns FALSE otherwise. 60 60 */ 61 static int dyn_fifo_is_valid(dyn_fifo_ reffifo)61 static int dyn_fifo_is_valid(dyn_fifo_t *fifo) 62 62 { 63 63 return fifo && (fifo->magic_value == DYN_FIFO_MAGIC_VALUE); … … 73 73 * @returns ENOMEM if there is not enough memory left. 74 74 */ 75 int dyn_fifo_initialize(dyn_fifo_ reffifo, int size)75 int dyn_fifo_initialize(dyn_fifo_t *fifo, int size) 76 76 { 77 77 if (!fifo) … … 104 104 * @returns ENOMEM if there is not enough memory left. 105 105 */ 106 int dyn_fifo_push(dyn_fifo_ reffifo, int value, int max_size)106 int dyn_fifo_push(dyn_fifo_t *fifo, int value, int max_size) 107 107 { 108 108 int *new_items; … … 154 154 * @returns ENOENT if the queue is empty. 155 155 */ 156 int dyn_fifo_pop(dyn_fifo_ reffifo)156 int dyn_fifo_pop(dyn_fifo_t *fifo) 157 157 { 158 158 int value; … … 176 176 * @returns ENOENT if the queue is empty. 177 177 */ 178 int dyn_fifo_value(dyn_fifo_ reffifo)178 int dyn_fifo_value(dyn_fifo_t *fifo) 179 179 { 180 180 if (!dyn_fifo_is_valid(fifo)) … … 193 193 * @returns EINVAL if the queue is not valid. 194 194 */ 195 int dyn_fifo_destroy(dyn_fifo_ reffifo)195 int dyn_fifo_destroy(dyn_fifo_t *fifo) 196 196 { 197 197 if (!dyn_fifo_is_valid(fifo))
Note:
See TracChangeset
for help on using the changeset viewer.