Changeset a7811f17 in mainline for uspace/lib/c/generic/adt/dynamic_fifo.c
- Timestamp:
- 2010-11-19T21:28:02Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a9c6b966
- Parents:
- 45f04f8 (diff), aaa3f33a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/adt/dynamic_fifo.c
r45f04f8 ra7811f17 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.