| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,35 +0,0 @@ |
| 1 |
-/* |
|
| 2 |
- * iobuf.h |
|
| 3 |
- * |
|
| 4 |
- * An I/O buffer library based on sbuf. |
|
| 5 |
- * |
|
| 6 |
- * Header file. |
|
| 7 |
- * |
|
| 8 |
- * History: |
|
| 9 |
- * 21/01/2014 Creation. |
|
| 10 |
- * 12/03/2014 Fix _staticinit() and _*free() prototypes. |
|
| 11 |
- * |
|
| 12 |
- * Author: Dario Rodriguez dario@softhome.net |
|
| 13 |
- * This library is licensed on the terms of the GNU LGPL v2+ |
|
| 14 |
- */ |
|
| 15 |
- |
|
| 16 |
-#ifndef IOBUF_H |
|
| 17 |
-#define IOBUF_H |
|
| 18 |
- |
|
| 19 |
-#include "sbuf.h" |
|
| 20 |
- |
|
| 21 |
-typedef struct {
|
|
| 22 |
- int iobufnum; |
|
| 23 |
- sbuf *in; |
|
| 24 |
- sbuf *out; |
|
| 25 |
-} siobuf; |
|
| 26 |
- |
|
| 27 |
-/* iobuf */ |
|
| 28 |
-siobuf *iobuf_init(int insize,int outsize); |
|
| 29 |
-siobuf *iobuf_staticinit(siobuf *uninitiobuf, sbuf *uninitinbuf, sbuf *uninitoutbuf,int insize, int outsize, char *inbuf, char *outbuf); |
|
| 30 |
- |
|
| 31 |
-void iobuf_free(siobuf *iobuf); |
|
| 32 |
-void iobuf_staticfree(siobuf *iobuf); |
|
| 33 |
- |
|
| 34 |
-#endif |
|
| 35 |
- |
| ... | ... |
@@ -1,12 +1,13 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* iobuf.h |
| 3 | 3 |
* |
| 4 |
- * A O/O buffer library based on sbuf. |
|
| 4 |
+ * An I/O buffer library based on sbuf. |
|
| 5 | 5 |
* |
| 6 | 6 |
* Header file. |
| 7 | 7 |
* |
| 8 | 8 |
* History: |
| 9 | 9 |
* 21/01/2014 Creation. |
| 10 |
+ * 12/03/2014 Fix _staticinit() and _*free() prototypes. |
|
| 10 | 11 |
* |
| 11 | 12 |
* Author: Dario Rodriguez dario@softhome.net |
| 12 | 13 |
* This library is licensed on the terms of the GNU LGPL v2+ |
| ... | ... |
@@ -25,10 +26,10 @@ typedef struct {
|
| 25 | 26 |
|
| 26 | 27 |
/* iobuf */ |
| 27 | 28 |
siobuf *iobuf_init(int insize,int outsize); |
| 28 |
-siobuf *iobuf_staticinit(siobuf *uninitiobuf,int insize, int outsize, char *inbuf, char *outbuf); |
|
| 29 |
+siobuf *iobuf_staticinit(siobuf *uninitiobuf, sbuf *uninitinbuf, sbuf *uninitoutbuf,int insize, int outsize, char *inbuf, char *outbuf); |
|
| 29 | 30 |
|
| 30 |
-siobuf *iobuf_free(siobuf *); |
|
| 31 |
-siobuf *iobuf_staticfree(siobuf *); |
|
| 31 |
+void iobuf_free(siobuf *iobuf); |
|
| 32 |
+void iobuf_staticfree(siobuf *iobuf); |
|
| 32 | 33 |
|
| 33 | 34 |
#endif |
| 34 | 35 |
|
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,34 @@ |
| 1 |
+/* |
|
| 2 |
+ * iobuf.h |
|
| 3 |
+ * |
|
| 4 |
+ * A O/O buffer library based on sbuf. |
|
| 5 |
+ * |
|
| 6 |
+ * Header file. |
|
| 7 |
+ * |
|
| 8 |
+ * History: |
|
| 9 |
+ * 21/01/2014 Creation. |
|
| 10 |
+ * |
|
| 11 |
+ * Author: Dario Rodriguez dario@softhome.net |
|
| 12 |
+ * This library is licensed on the terms of the GNU LGPL v2+ |
|
| 13 |
+ */ |
|
| 14 |
+ |
|
| 15 |
+#ifndef IOBUF_H |
|
| 16 |
+#define IOBUF_H |
|
| 17 |
+ |
|
| 18 |
+#include "sbuf.h" |
|
| 19 |
+ |
|
| 20 |
+typedef struct {
|
|
| 21 |
+ int iobufnum; |
|
| 22 |
+ sbuf *in; |
|
| 23 |
+ sbuf *out; |
|
| 24 |
+} siobuf; |
|
| 25 |
+ |
|
| 26 |
+/* iobuf */ |
|
| 27 |
+siobuf *iobuf_init(int insize,int outsize); |
|
| 28 |
+siobuf *iobuf_staticinit(siobuf *uninitiobuf,int insize, int outsize, char *inbuf, char *outbuf); |
|
| 29 |
+ |
|
| 30 |
+siobuf *iobuf_free(siobuf *); |
|
| 31 |
+siobuf *iobuf_staticfree(siobuf *); |
|
| 32 |
+ |
|
| 33 |
+#endif |
|
| 34 |
+ |