Changes in uspace/srv/net/structures/dynamic_fifo.h [21580dd:aadf01e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/structures/dynamic_fifo.h
r21580dd raadf01e 56 56 /** Stored item field. 57 57 */ 58 int 58 int * items; 59 59 /** Actual field size. 60 60 */ 61 int 61 int size; 62 62 /** First item in the queue index. 63 63 */ 64 int 64 int head; 65 65 /** Last item in the queue index. 66 66 */ 67 int 67 int tail; 68 68 /** Consistency check magic value. 69 69 */ 70 int 70 int magic_value; 71 71 }; 72 72 … … 79 79 * @returns ENOMEM if there is not enough memory left. 80 80 */ 81 int dyn_fifo_initialize( dyn_fifo_ref fifo, int size);81 int dyn_fifo_initialize(dyn_fifo_ref fifo, int size); 82 82 83 83 /** Appends a new item to the queue end. … … 89 89 * @returns ENOMEM if there is not enough memory left. 90 90 */ 91 int dyn_fifo_push( dyn_fifo_ref fifo, int value, int max_size);91 int dyn_fifo_push(dyn_fifo_ref fifo, int value, int max_size); 92 92 93 93 /** Returns and excludes the first item in the queue. … … 97 97 * @returns ENOENT if the queue is empty. 98 98 */ 99 int dyn_fifo_pop( dyn_fifo_ref fifo);99 int dyn_fifo_pop(dyn_fifo_ref fifo); 100 100 101 101 /** Returns and keeps the first item in the queue. … … 105 105 * @returns ENOENT if the queue is empty. 106 106 */ 107 int dyn_fifo_value( dyn_fifo_ref fifo);107 int dyn_fifo_value(dyn_fifo_ref fifo); 108 108 109 109 /** Clears and destroys the queue. … … 112 112 * @returns EINVAL if the queue is not valid. 113 113 */ 114 int dyn_fifo_destroy( dyn_fifo_ref fifo);114 int dyn_fifo_destroy(dyn_fifo_ref fifo); 115 115 116 116 #endif
Note:
See TracChangeset
for help on using the changeset viewer.