Mercurial > hg > xmms-sid
diff src/xs_support.h @ 867:051ef70d0123
Improve xs_fload_buffer() and add xs_fload_buffer_path().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 09 Nov 2012 03:59:02 +0200 |
parents | 6b47d9813067 |
children | 3c3569894b23 |
line wrap: on
line diff
--- a/src/xs_support.h Fri Nov 09 03:57:59 2012 +0200 +++ b/src/xs_support.h Fri Nov 09 03:59:02 2012 +0200 @@ -116,7 +116,10 @@ #endif guint16 xs_fread_be16(XSFile *); guint32 xs_fread_be32(XSFile *); -gint xs_fload_buffer(const gchar *, guint8 **, size_t *); +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, + guint8 **pbuf, size_t *bufSize, const size_t maxSize, gboolean failMaxSize); /* Misc functions