Name
dvb_ringbuffer_pkt_next —
Get the index of the next packet in a ringbuffer.
Synopsis
ssize_t dvb_ringbuffer_pkt_next ( | struct dvb_ringbuffer * rbuf, |
| size_t idx, |
| size_t * pktlen) ; |
Arguments
rbuf
Ringbuffer concerned.
idx
Previous packet index, or -1 to return the first packet index.
pktlen
On success, will be updated to contain the length of the packet in bytes.
returns Packet index (if >=0), or -1 if no packets available.