Ignore:
Timestamp:
2010-03-15T19:35:25Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6092b56e
Parents:
92307f1 (diff), 4684368 (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.
Message:

Merge from bzr://bzr.helenos.org/head.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/structures/dynamic_fifo.h

    r92307f1 r858fc90  
    5656        /** Stored item field.
    5757         */
    58         int     *       items;
     58        int *   items;
    5959        /** Actual field size.
    6060         */
    61         int             size;
     61        int size;
    6262        /** First item in the queue index.
    6363         */
    64         int             head;
     64        int head;
    6565        /** Last item in the queue index.
    6666         */
    67         int             tail;
     67        int tail;
    6868        /** Consistency check magic value.
    6969         */
    70         int             magic_value;
     70        int magic_value;
    7171};
    7272
     
    7979 *  @returns ENOMEM if there is not enough memory left.
    8080 */
    81 int     dyn_fifo_initialize( dyn_fifo_ref fifo, int size );
     81int dyn_fifo_initialize(dyn_fifo_ref fifo, int size);
    8282
    8383/** Appends a new item to the queue end.
     
    8989 *  @returns ENOMEM if there is not enough memory left.
    9090 */
    91 int     dyn_fifo_push( dyn_fifo_ref fifo, int value, int max_size );
     91int dyn_fifo_push(dyn_fifo_ref fifo, int value, int max_size);
    9292
    9393/** Returns and excludes the first item in the queue.
     
    9797 *  @returns ENOENT if the queue is empty.
    9898 */
    99 int     dyn_fifo_pop( dyn_fifo_ref fifo );
     99int dyn_fifo_pop(dyn_fifo_ref fifo);
    100100
    101101/** Returns and keeps the first item in the queue.
     
    105105 *  @returns ENOENT if the queue is empty.
    106106 */
    107 int     dyn_fifo_value( dyn_fifo_ref fifo );
     107int dyn_fifo_value(dyn_fifo_ref fifo);
    108108
    109109/** Clears and destroys the queue.
     
    112112 *  @returns EINVAL if the queue is not valid.
    113113 */
    114 int dyn_fifo_destroy( dyn_fifo_ref fifo );
     114int dyn_fifo_destroy(dyn_fifo_ref fifo);
    115115
    116116#endif
Note: See TracChangeset for help on using the changeset viewer.