diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2014-02-14 14:28:59 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2014-02-14 14:34:47 +0100 |
commit | f15d21389a81f8df36b00113aed5c81d27143861 (patch) | |
tree | c7a6247afd73254c202a8ccbb1e93bb43287b315 /src/uca-ring-buffer.h | |
parent | df1ae54168a7dda396050077f14fed33c4882c47 (diff) | |
download | libuca-f15d21389a81f8df36b00113aed5c81d27143861.tar.gz libuca-f15d21389a81f8df36b00113aed5c81d27143861.tar.bz2 libuca-f15d21389a81f8df36b00113aed5c81d27143861.tar.xz libuca-f15d21389a81f8df36b00113aed5c81d27143861.zip |
Use read-write ring buffer
Diffstat (limited to 'src/uca-ring-buffer.h')
-rw-r--r-- | src/uca-ring-buffer.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/uca-ring-buffer.h b/src/uca-ring-buffer.h index 03e2cae..c90f2d2 100644 --- a/src/uca-ring-buffer.h +++ b/src/uca-ring-buffer.h @@ -32,13 +32,14 @@ UcaRingBuffer * uca_ring_buffer_new (gsize block_size, guint n_blocks); void uca_ring_buffer_reset (UcaRingBuffer *buffer); gsize uca_ring_buffer_get_block_size (UcaRingBuffer *buffer); -gpointer uca_ring_buffer_get_current_pointer (UcaRingBuffer *buffer); -void uca_ring_buffer_set_current_pointer (UcaRingBuffer *buffer, - guint index); -gpointer uca_ring_buffer_get_pointer (UcaRingBuffer *buffer, - guint index); guint uca_ring_buffer_get_num_blocks (UcaRingBuffer *buffer); +gboolean uca_ring_buffer_available (UcaRingBuffer *buffer); void uca_ring_buffer_proceed (UcaRingBuffer *buffer); +gpointer uca_ring_buffer_get_read_pointer (UcaRingBuffer *buffer); +gpointer uca_ring_buffer_get_write_pointer (UcaRingBuffer *buffer); +gpointer uca_ring_buffer_get_pointer (UcaRingBuffer *buffer, + guint index); +gpointer uca_ring_buffer_peek_pointer (UcaRingBuffer *buffer); GType uca_ring_buffer_get_type (void); |