summaryrefslogtreecommitdiffstats
path: root/src/uca-ring-buffer.h
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-02-14 14:28:59 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-02-14 14:34:47 +0100
commitf15d21389a81f8df36b00113aed5c81d27143861 (patch)
treec7a6247afd73254c202a8ccbb1e93bb43287b315 /src/uca-ring-buffer.h
parentdf1ae54168a7dda396050077f14fed33c4882c47 (diff)
downloadlibuca-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.h11
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);