Mercurial > hg > th-libs
diff th_ioctx.h @ 693:a622d21833e1
Implement fopen() in mem ioctx, and simplistic read-only/write flag support.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 09 Mar 2020 18:54:37 +0200 |
parents | dfc2c9f0577f |
children | 0fc5ddaccc57 |
line wrap: on
line diff
--- a/th_ioctx.h Mon Mar 09 17:59:06 2020 +0200 +++ b/th_ioctx.h Mon Mar 09 18:54:37 2020 +0200 @@ -49,6 +49,7 @@ size_t minAlloc; ///< Minimum allocation increase (0 = default) off_t memOffset; ///< Current offset in data uint8_t *memData; ///< Pointer to data + BOOL memWrite; ///< TRUE = memory can be written to / expanded etc. FALSE = no // Message functions void (*error)(struct th_ioctx *ctx, const int err, const char *msg);