diff th_ioctx.h @ 695:a04b8fe158b9

Add helper function th_io_reopen().
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 09 Mar 2020 19:05:58 +0200
parents 0fc5ddaccc57
children ec8fe89576ff
line wrap: on
line diff
--- a/th_ioctx.h	Mon Mar 09 18:55:54 2020 +0200
+++ b/th_ioctx.h	Mon Mar 09 19:05:58 2020 +0200
@@ -98,6 +98,7 @@
 th_ioctx *   th_io_new(const th_ioctx_ops *fops, const char *filename);
 int          th_io_open(th_ioctx *ctx, const char *mode);
 int          th_io_fopen(th_ioctx **pctx, const th_ioctx_ops *fops, const char *filename, const char *mode);
+int          th_io_reopen(th_ioctx *ctx, const char *mode);
 void         th_io_close(th_ioctx *ctx);
 
 void         th_io_init_stdio(th_ioctx *ctx, FILE *fh);