Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/adt/dynamic_fifo.c

    r7e66a5ec r4eca056  
    5959 * @returns             FALSE otherwise.
    6060 */
    61 static int dyn_fifo_is_valid(dyn_fifo_ref fifo)
     61static int dyn_fifo_is_valid(dyn_fifo_t *fifo)
    6262{
    6363        return fifo && (fifo->magic_value == DYN_FIFO_MAGIC_VALUE);
     
    7373 * @returns             ENOMEM if there is not enough memory left.
    7474 */
    75 int dyn_fifo_initialize(dyn_fifo_ref fifo, int size)
     75int dyn_fifo_initialize(dyn_fifo_t *fifo, int size)
    7676{
    7777        if (!fifo)
     
    104104 * @returns             ENOMEM if there is not enough memory left.
    105105 */
    106 int dyn_fifo_push(dyn_fifo_ref fifo, int value, int max_size)
     106int dyn_fifo_push(dyn_fifo_t *fifo, int value, int max_size)
    107107{
    108108        int *new_items;
     
    154154 * @returns             ENOENT if the queue is empty.
    155155 */
    156 int dyn_fifo_pop(dyn_fifo_ref fifo)
     156int dyn_fifo_pop(dyn_fifo_t *fifo)
    157157{
    158158        int value;
     
    176176 * @returns             ENOENT if the queue is empty.
    177177 */
    178 int dyn_fifo_value(dyn_fifo_ref fifo)
     178int dyn_fifo_value(dyn_fifo_t *fifo)
    179179{
    180180        if (!dyn_fifo_is_valid(fifo))
     
    193193 * @returns             EINVAL if the queue is not valid.
    194194 */
    195 int dyn_fifo_destroy(dyn_fifo_ref fifo)
     195int dyn_fifo_destroy(dyn_fifo_t *fifo)
    196196{
    197197        if (!dyn_fifo_is_valid(fifo))
Note: See TracChangeset for help on using the changeset viewer.