xine-lib: xine-lib-1.2.12/src/xine-engine/lrb.c File Reference

xine-lib 1.2.12

Functions
lrb.c File Reference
`#include "lrb.h"`
`#include <xine/xineutils.h>`

## Functions
lrb_t * | lrb_new (int max_num_entries, fifo_buffer_t *fifo)
void | lrb_drop (lrb_t *this)
void | lrb_add (lrb_t *this, buf_element_t *buf)
void | lrb_feedback (lrb_t *this, fifo_buffer_t *fifo)
void | lrb_flush (lrb_t *this)

## Function Documentation

## ◆ lrb_add()

void lrb_add | ( | lrb_t * | this,
|  | buf_element_t * | buf
| ) |  |

References lprintf, lrb_drop(), buf_element_s::next, and NULL.

## ◆ lrb_drop()

void lrb_drop | ( | lrb_t * | this | ) |

References _x_assert, buf_element_s::free_buffer, and buf_element_s::next.

Referenced by lrb_add(), and lrb_flush().

## ◆ lrb_feedback()

void lrb_feedback | ( | lrb_t * | this,
|  | fifo_buffer_t * | fifo
| ) |  |

References fifo_buffer_s::fifo_size, fifo_buffer_s::first, fifo_buffer_s::last, lprintf, fifo_buffer_s::mutex, buf_element_s::next, fifo_buffer_s::not_empty, and NULL.

## ◆ lrb_flush()

void lrb_flush | ( | lrb_t * | this | ) |

References lrb_drop().

## ◆ lrb_new()

lrb_t * lrb_new | ( | int | max_num_entries,
|  | fifo_buffer_t * | fifo
| ) |  |

References NULL.