diff th_ioctx.h @ 208:3635415a2d03

More work on th_ioctx stuff and wrappers.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 12 Feb 2016 02:49:21 +0200
parents 55f429dff750
children 462b837ea492
line wrap: on
line diff
--- a/th_ioctx.h	Fri Feb 12 02:47:11 2016 +0200
+++ b/th_ioctx.h	Fri Feb 12 02:49:21 2016 +0200
@@ -57,7 +57,10 @@
     int     (*fputc)(int, th_ioctx *ctx);
     size_t  (*fread)(void *ptr, const size_t, const size_t, th_ioctx *ctx);
     size_t  (*fwrite)(const void *ptr, const size_t, const size_t, th_ioctx *ctx);
-    int     (*vfprintf)(th_ioctx *ctx, const char *format, va_list ap);
+
+    char *  (*fgets)(char *str, int size, th_ioctx *ctx);
+    int     (*fputs)(const char *str, th_ioctx *ctx);
+    int     (*vfprintf)(th_ioctx *ctx, const char *fmt, va_list ap);
 
 } th_ioctx_ops;
 
@@ -102,7 +105,7 @@
 size_t       thfread(void *ptr, const size_t, const size_t, th_ioctx *ctx);
 size_t       thfwrite(const void *, const size_t, const size_t, th_ioctx *ctx);
 char *       thfgets(char *ptr, int size, th_ioctx *ctx);
-
+int          thfputs(const char *ptr, th_ioctx *ctx);
 int          thvfprintf(th_ioctx *ctx, const char *fmt, va_list ap);
 int          thfprintf(th_ioctx *ctx, const char *fmt, ...);