comparison sidlib.h @ 388:c96448875797

Change "new SLDB" boolean to a flags int.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 23 Feb 2022 20:09:55 +0200
parents 94ff750679a6
children db64a58314a9
comparison
equal deleted inserted replaced
387:51d6e86aa196 388:c96448875797
21 // Some constants 21 // Some constants
22 // 22 //
23 #define SIDLIB_PSID_MAGIC_LEN (4) 23 #define SIDLIB_PSID_MAGIC_LEN (4)
24 #define SIDLIB_PSID_STR_LEN (32) 24 #define SIDLIB_PSID_STR_LEN (32)
25 #define SIDLIB_BUFFER_SIZE (1024 * 16) 25 #define SIDLIB_BUFFER_SIZE (1024 * 16)
26
27
28 enum
29 {
30 SIDLIB_FLG_NEW_SLDB = 0x01, // Using 'new' Songlengths.md5 style SLDB
31 };
26 32
27 33
28 enum 34 enum
29 { 35 {
30 // Player flags 36 // Player flags
166 172
167 173
168 // 174 //
169 // Functions 175 // Functions
170 // 176 //
171 int sidlib_read_sid_file(th_ioctx *ctx, SIDLibPSIDHeader *psid, const BOOL newSLDB, SIDLibChConvCtx *chconv); 177 int sidlib_read_sid_file(th_ioctx *ctx, SIDLibPSIDHeader *psid, const int flags, SIDLibChConvCtx *chconv);
172 int sidlib_read_sid_file_alloc(th_ioctx *ctx, SIDLibPSIDHeader **ppsid, const BOOL newSLDB, SIDLibChConvCtx *chconv); 178 int sidlib_read_sid_file_alloc(th_ioctx *ctx, SIDLibPSIDHeader **ppsid, const int flags, SIDLibChConvCtx *chconv);
173 void sidlib_free_sid_file(SIDLibPSIDHeader *psid); 179 void sidlib_free_sid_file(SIDLibPSIDHeader *psid);
174 180
175 int sidlib_write_sid_header(th_ioctx *ctx, const SIDLibPSIDHeader *psid); 181 int sidlib_write_sid_header(th_ioctx *ctx, const SIDLibPSIDHeader *psid);
176 182
177 const char * sidlib_get_sid_clock_str(const int flags); 183 const char * sidlib_get_sid_clock_str(const int flags);