Mercurial > hg > sidinfo
diff sidlib.c @ 402:95a8e05dae27
Sync with th-libs API changes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 20 Feb 2023 23:37:59 +0200 |
parents | db64a58314a9 |
children | 39cebb2b0677 |
line wrap: on
line diff
--- a/sidlib.c Fri Feb 10 02:49:17 2023 +0200 +++ b/sidlib.c Mon Feb 20 23:37:59 2023 +0200 @@ -43,7 +43,7 @@ } -static bool sidlib_fread_str(th_ioctx *ctx, SIDLibChConvCtx *chconv, char **str, const size_t len) +static bool sidlib_fread_str(th_ioctx_t *ctx, SIDLibChConvCtx *chconv, char **str, const size_t len) { char *tmp; @@ -78,7 +78,7 @@ } -static int sidlib_read_hash_data(th_ioctx *ctx, SIDLibPSIDHeader *psid, th_md5state_t *state) +static int sidlib_read_hash_data(th_ioctx_t *ctx, SIDLibPSIDHeader *psid, th_md5state_t *state) { int ret = THERR_OK; uint8_t *data = NULL; @@ -109,7 +109,7 @@ } -int sidlib_read_sid_file(th_ioctx *ctx, SIDLibPSIDHeader *psid, +int sidlib_read_sid_file(th_ioctx_t *ctx, SIDLibPSIDHeader *psid, const int flags, SIDLibChConvCtx *chconv) { int ret = THERR_OK; @@ -265,7 +265,7 @@ } -int sidlib_read_sid_file_alloc(th_ioctx *ctx, SIDLibPSIDHeader **ppsid, +int sidlib_read_sid_file_alloc(th_ioctx_t *ctx, SIDLibPSIDHeader **ppsid, const int flags, SIDLibChConvCtx *chconv) { if ((*ppsid = th_malloc0(sizeof(SIDLibPSIDHeader))) == NULL) @@ -375,7 +375,7 @@ // Parse one SLDB definition line, return SLDB node // -static int sidlib_sldb_parse_entry(th_ioctx *ctx, SIDLibSLDBNode **pnode, const char *line) +static int sidlib_sldb_parse_entry(th_ioctx_t *ctx, SIDLibSLDBNode **pnode, const char *line) { int ret = THERR_OK; SIDLibSLDBNode *node; @@ -474,7 +474,7 @@ // Read SLDB database to memory // -int sidlib_sldb_read(th_ioctx *ctx, SIDLibSLDB *dbh) +int sidlib_sldb_read(th_ioctx_t *ctx, SIDLibSLDB *dbh) { int ret = THERR_OK; char *line = NULL; @@ -821,7 +821,7 @@ #define VADDCH(ch) if (strPos < SIDLIB_BUFFER_SIZE) { tmpStr[strPos++] = ch; } -int sidlib_stildb_read(th_ioctx *fh, SIDLibSTILDB *dbh, SIDLibChConvCtx *chconv) +int sidlib_stildb_read(th_ioctx_t *fh, SIDLibSTILDB *dbh, SIDLibChConvCtx *chconv) { int ret = THERR_OK, field = -1; SIDLibSTILParserCtx ctx; @@ -1209,7 +1209,7 @@ } -int sidlib_write_sid_header(th_ioctx *ctx, const SIDLibPSIDHeader *psid) +int sidlib_write_sid_header(th_ioctx_t *ctx, const SIDLibPSIDHeader *psid) { int ret = THERR_OK; SIDLibPSIDHeader hsid;