diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-04-02 21:51:19 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-04-02 21:51:19 -0700 |
commit | 352ea97f8fb4977d2d3ae086472ee6c3032dc21f (patch) | |
tree | 867dbed7383ce3c1448af3a4035ce3d0b2f242aa /gatchat/ringbuffer.c | |
parent | 09f7be82a99edcff80355dbe5db197d66c819da6 (diff) | |
download | ofono-352ea97f8fb4977d2d3ae086472ee6c3032dc21f.tar.bz2 |
Hide internals of ring buffer structure
Diffstat (limited to 'gatchat/ringbuffer.c')
-rw-r--r-- | gatchat/ringbuffer.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gatchat/ringbuffer.c b/gatchat/ringbuffer.c index 23bcaed7..f82a9f9d 100644 --- a/gatchat/ringbuffer.c +++ b/gatchat/ringbuffer.c @@ -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; |