diff options
author | wm4 <wm4@nowhere> | 2013-11-15 21:08:48 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-15 21:08:48 +0100 |
commit | a9d98082aa027a9e4f562acb9228df40592b236c (patch) | |
tree | 8513ae63b1202323c77310d28661e5373fd682f8 /mpvcore/mp_ring.h | |
parent | 7f7e9a9fff8a13cd55d25290102e029892431854 (diff) | |
download | mpv-a9d98082aa027a9e4f562acb9228df40592b236c.tar.bz2 mpv-a9d98082aa027a9e4f562acb9228df40592b236c.tar.xz |
mp_ring: remove unused function
This was needed for ao_jack.c., but not anymore.
Diffstat (limited to 'mpvcore/mp_ring.h')
-rw-r--r-- | mpvcore/mp_ring.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/mpvcore/mp_ring.h b/mpvcore/mp_ring.h index ba104af625..e93baea97e 100644 --- a/mpvcore/mp_ring.h +++ b/mpvcore/mp_ring.h @@ -47,28 +47,6 @@ struct mp_ring *mp_ring_new(void *talloc_ctx, int size); int mp_ring_read(struct mp_ring *buffer, unsigned char *dest, int len); /** - * Read data from the ringbuffer - * - * This function behaves similarly to `av_fifo_generic_read` and was actually - * added for compatibility with code that was written for it. - * This function will drain the returned amount of bytes from the ringbuffer - * so you don't have to handle that in inside `func`. - * - * buffer: target ringbuffer instance - * ctx: context for the callback function - * len: maximum number of bytes to read - * func: callback function to customize reading behaviour. It will be called - * by `mp_ring_read_cb` with the following parameters: - * ctx: context data provided to `mp_ring_read_cb` - * src: source buffer to read from - * len: the *exact* amount of bytes to read. These will be drained - * by the ring after this callback is called. - * return: number of bytes read - */ -int mp_ring_read_cb(struct mp_ring *buffer, void *ctx, int len, - void (*func)(void *ctx, void *src, int len)); - -/** * Write data to the ringbuffer * * buffer: target ringbuffer instance |