Put fifo_buffer struct definition in fifo_buffer.h - don't include stdio.h

This commit is contained in:
twinaphex 2014-10-15 06:58:54 +02:00
parent 28b5826cde
commit 26679ab241
2 changed files with 9 additions and 10 deletions

View File

@ -14,15 +14,6 @@
*/
#include "fifo_buffer.h"
#include <stdint.h>
struct fifo_buffer
{
uint8_t *buffer;
size_t bufsize;
size_t first;
size_t end;
};
fifo_buffer_t *fifo_new(size_t size)
{

View File

@ -17,13 +17,21 @@
#define __FIFO_BUFFER_H
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
struct fifo_buffer
{
uint8_t *buffer;
size_t bufsize;
size_t first;
size_t end;
};
typedef struct fifo_buffer fifo_buffer_t;
fifo_buffer_t *fifo_new(size_t size);