Mercurial > hg > th-libs
diff th_ioctx.h @ 519:e1b15fb56ddf
Change return value of th_io_error() and th_io_error_v() to int, and return the error code.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 26 Dec 2019 13:07:09 +0200 |
parents | e4ce60239d16 |
children | 3a852e9f70a6 |
line wrap: on
line diff
--- a/th_ioctx.h Thu Dec 26 13:05:40 2019 +0200 +++ b/th_ioctx.h Thu Dec 26 13:07:09 2019 +0200 @@ -87,9 +87,9 @@ void (*error)(th_ioctx *, const int, const char *msg), void (*msg)(th_ioctx *, const int, const char *msg)); -void th_io_error_v(th_ioctx *ctx, const int err, const char *fmt, va_list ap); +int th_io_error_v(th_ioctx *ctx, const int err, const char *fmt, va_list ap); void th_io_msg_v(th_ioctx *ctx, const int level, const char *fmt, va_list ap); -void th_io_error(th_ioctx *ctx, const int err, const char *fmt, ...); +int th_io_error(th_ioctx *ctx, const int err, const char *fmt, ...); void th_io_msg(th_ioctx *ctx, const int level, const char *fmt, ...);