diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2013-12-10 14:40:37 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2013-12-10 14:40:37 +0100 |
commit | 748407ebc8455f7df10c66790401c82e8a1ccd90 (patch) | |
tree | 6fe8b9d901c21c0052928fb9f03541dd39856c1e /bin/common/ring-buffer.h | |
parent | 5ad27e1abf2a19194adc238c125f7f595bac530f (diff) | |
download | uca-748407ebc8455f7df10c66790401c82e8a1ccd90.tar.gz uca-748407ebc8455f7df10c66790401c82e8a1ccd90.tar.bz2 uca-748407ebc8455f7df10c66790401c82e8a1ccd90.tar.xz uca-748407ebc8455f7df10c66790401c82e8a1ccd90.zip |
Make ring buffer public
Diffstat (limited to 'bin/common/ring-buffer.h')
-rw-r--r-- | bin/common/ring-buffer.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/bin/common/ring-buffer.h b/bin/common/ring-buffer.h deleted file mode 100644 index fafe5ec..0000000 --- a/bin/common/ring-buffer.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef RING_BUFFER_H -#define RING_BUFFER_H - -#include <glib.h> - -G_BEGIN_DECLS - -typedef struct { - guchar *data; - gsize block_size; - guint n_blocks_total; - guint n_blocks_used; - guint current_index; -} RingBuffer; - -RingBuffer * ring_buffer_new (gsize block_size, - gsize n_blocks); -void ring_buffer_free (RingBuffer *buffer); -void ring_buffer_reset (RingBuffer *buffer); -gsize ring_buffer_get_block_size (RingBuffer *buffer); -gpointer ring_buffer_get_current_pointer (RingBuffer *buffer); -void ring_buffer_set_current_pointer (RingBuffer *buffer, - guint index); -gpointer ring_buffer_get_pointer (RingBuffer *buffer, - guint index); -guint ring_buffer_get_num_blocks (RingBuffer *buffer); -void ring_buffer_proceed (RingBuffer *buffer); - -G_END_DECLS - -#endif |