Mercurial > hg > sidinfo
comparison sidlib.h @ 226:c32015f4969e
Rename PSIDHeader struct to SIDLibPSIDHeader to conform with the SIDLib
prefix used otherwise. Add new function sidlib_read_sid_file_alloc()
which allocates the PSID header struct, instead of sidlib_read_sid_file()
which just reads into the given struct.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 03 Jan 2020 10:38:18 +0200 |
parents | 4bec78f45188 |
children | 2b3d5d49086d |
comparison
equal
deleted
inserted
replaced
225:15a51252b73a | 226:c32015f4969e |
---|---|
92 BOOL isRSID; | 92 BOOL isRSID; |
93 size_t dataSize; // Total size of data - header | 93 size_t dataSize; // Total size of data - header |
94 th_md5hash_t hash; // Songlength database hash | 94 th_md5hash_t hash; // Songlength database hash |
95 | 95 |
96 SIDLibSLDBNode *lengths; // Songlength information node pointer | 96 SIDLibSLDBNode *lengths; // Songlength information node pointer |
97 BOOL allocated; // TRUE if structure has been allocated | |
97 | 98 |
98 } PSIDHeader; | 99 } SIDLibPSIDHeader; |
99 | 100 |
100 | 101 |
101 // | 102 // |
102 // Functions | 103 // Functions |
103 // | 104 // |
104 BOOL sidlib_read_sid_file(th_ioctx *ctx, PSIDHeader **ppsid, const BOOL newSLDB); | 105 int sidlib_read_sid_file(th_ioctx *ctx, SIDLibPSIDHeader *psid, const BOOL newSLDB); |
105 void sidlib_free_sid_file(PSIDHeader *psid); | 106 int sidlib_read_sid_file_alloc(th_ioctx *ctx, SIDLibPSIDHeader **ppsid, const BOOL newSLDB); |
107 void sidlib_free_sid_file(SIDLibPSIDHeader *psid); | |
106 | 108 |
107 const char * sidlib_get_sid_clock_str(const int flags); | 109 const char * sidlib_get_sid_clock_str(const int flags); |
108 const char * sidlib_get_sid_model_str(const int flags); | 110 const char * sidlib_get_sid_model_str(const int flags); |
109 | 111 |
110 SIDLibSLDB * sidlib_sldb_new(void); | 112 SIDLibSLDB * sidlib_sldb_new(void); |