Hide internals of ring buffer structure

This commit is contained in:
Marcel Holtmann 2010-04-02 21:51:19 -07:00
parent 09f7be82a9
commit 352ea97f8f
2 changed files with 8 additions and 6 deletions

View File

@ -31,6 +31,13 @@
#define MAX_SIZE 262144
struct ring_buffer {
unsigned char *buffer;
unsigned int size;
unsigned int in;
unsigned int out;
};
struct ring_buffer *ring_buffer_new(unsigned int size)
{
unsigned int real_size = 1;

View File

@ -19,12 +19,7 @@
*
*/
struct ring_buffer {
unsigned char *buffer;
unsigned int size;
unsigned int in;
unsigned int out;
};
struct ring_buffer;
/*!
* Creates a new ring buffer with capacity size