/* * iobuf.h * * A O/O buffer library based on sbuf. * * Header file. * * History: * 21/01/2014 Creation. * * Author: Dario Rodriguez dario@softhome.net * This library is licensed on the terms of the GNU LGPL v2+ */ #ifndef IOBUF_H #define IOBUF_H #include "sbuf.h" typedef struct { int iobufnum; sbuf *in; sbuf *out; } siobuf; /* iobuf */ siobuf *iobuf_init(int insize,int outsize); siobuf *iobuf_staticinit(siobuf *uninitiobuf,int insize, int outsize, char *inbuf, char *outbuf); siobuf *iobuf_free(siobuf *); siobuf *iobuf_staticfree(siobuf *); #endif