
#ifndef __FD_READER_H__
#define __FD_READER_H__

#include <unistd.h>

typedef struct s_FDReader FDReader;

FDReader * fd_reader_new (int fd);
void fd_reader_destroy (void *ptr);

ssize_t fd_reader_readLine (FDReader *instance, char *buf, int len);
ssize_t fd_reader_read (FDReader *instance, char *buf, int len);

#endif
