Changeset 1bfd3d3 in mainline for uspace/lib/c/generic/adt/dynamic_fifo.c
- Timestamp:
- 2010-11-19T22:02:09Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 973ef9fc, a9c6b966
- Parents:
- cc3c2a1c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/adt/dynamic_fifo.c
rcc3c2a1c r1bfd3d3 56 56 * 57 57 * @param[in] fifo The dynamic queue. 58 * @return sTRUE if the queue is valid.59 * @return sFALSE otherwise.58 * @return TRUE if the queue is valid. 59 * @return FALSE otherwise. 60 60 */ 61 61 static int dyn_fifo_is_valid(dyn_fifo_t *fifo) … … 68 68 * @param[in,out] fifo The dynamic queue. 69 69 * @param[in] size The initial queue size. 70 * @return sEOK on success.71 * @return sEINVAL if the queue is not valid.72 * @return sEBADMEM if the fifo parameter is NULL.73 * @return sENOMEM if there is not enough memory left.70 * @return EOK on success. 71 * @return EINVAL if the queue is not valid. 72 * @return EBADMEM if the fifo parameter is NULL. 73 * @return ENOMEM if there is not enough memory left. 74 74 */ 75 75 int dyn_fifo_initialize(dyn_fifo_t *fifo, int size) … … 100 100 * this limit. May be zero or negative to indicate no 101 101 * limit. 102 * @return sEOK on success.103 * @return sEINVAL if the queue is not valid.104 * @return sENOMEM if there is not enough memory left.102 * @return EOK on success. 103 * @return EINVAL if the queue is not valid. 104 * @return ENOMEM if there is not enough memory left. 105 105 */ 106 106 int dyn_fifo_push(dyn_fifo_t *fifo, int value, int max_size) … … 150 150 * 151 151 * @param[in,out] fifo The dynamic queue. 152 * @return sValue of the first item in the queue.153 * @return sEINVAL if the queue is not valid.154 * @return sENOENT if the queue is empty.152 * @return Value of the first item in the queue. 153 * @return EINVAL if the queue is not valid. 154 * @return ENOENT if the queue is empty. 155 155 */ 156 156 int dyn_fifo_pop(dyn_fifo_t *fifo) … … 172 172 * 173 173 * @param[in,out] fifo The dynamic queue. 174 * @return siValue of the first item in the queue.175 * @return sEINVAL if the queue is not valid.176 * @return sENOENT if the queue is empty.174 * @return Value of the first item in the queue. 175 * @return EINVAL if the queue is not valid. 176 * @return ENOENT if the queue is empty. 177 177 */ 178 178 int dyn_fifo_value(dyn_fifo_t *fifo) … … 190 190 * 191 191 * @param[in,out] fifo The dynamic queue. 192 * @return sEOK on success.193 * @return sEINVAL if the queue is not valid.192 * @return EOK on success. 193 * @return EINVAL if the queue is not valid. 194 194 */ 195 195 int dyn_fifo_destroy(dyn_fifo_t *fifo)
Note:
See TracChangeset
for help on using the changeset viewer.