Mercurial > hg > xmms-sid
diff src/xs_support.h @ 955:3c2efa18c422
Change semantics of xs_fread_be{32,16}() functions to match xs_fread_str()
and xs_fread_byte() and change the PSID/RSID file parsing for SLDB MD5
calculation to use them. Also, fix the parser so that PSID/RSID v3 files are
supported correctly.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 20 Nov 2012 21:28:39 +0200 |
parents | b2caef664524 |
children | 0233c5fd7d5e |
line wrap: on
line diff
--- a/src/xs_support.h Tue Nov 20 21:27:26 2012 +0200 +++ b/src/xs_support.h Tue Nov 20 21:28:39 2012 +0200 @@ -126,10 +126,11 @@ off_t xs_fsize(XSFile *f); #endif -guint16 xs_fread_be16(XSFile *); -guint32 xs_fread_be32(XSFile *); gboolean xs_fread_str(XSFile *, void *, const size_t); gboolean xs_fread_byte(XSFile *, guint8 *); +gboolean xs_fread_be16(XSFile *, guint16 *); +gboolean xs_fread_be32(XSFile *, guint32 *); + gboolean xs_fload_buffer(const gchar *filename, guint8 **pbuf, size_t *bufSize, const size_t maxSize, gboolean failMaxSize); gboolean xs_fload_buffer_path(const gchar *ppath, const gchar *pfilename,