mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
tweaks to the MD5 routines; they need to be exported when building a windows DLL since the seekable stream decoder in libOggFLAC secretly uses them
This commit is contained in:
@@ -28,9 +28,15 @@
|
||||
|
||||
#define md5byte unsigned char
|
||||
|
||||
/*
|
||||
* Due to an unholy abomination in libOggFLAC (it requires access to
|
||||
* these internal MD5 functions) we have to #include "FLAC/export.h"
|
||||
* and export them when building a DLL
|
||||
*/
|
||||
#include "FLAC/export.h"
|
||||
#include "FLAC/ordinals.h"
|
||||
|
||||
struct MD5Context {
|
||||
struct FLAC__MD5Context {
|
||||
FLAC__uint32 buf[4];
|
||||
FLAC__uint32 bytes[2];
|
||||
FLAC__uint32 in[16];
|
||||
@@ -38,11 +44,11 @@ struct MD5Context {
|
||||
unsigned capacity;
|
||||
};
|
||||
|
||||
void MD5Init(struct MD5Context *context);
|
||||
void MD5Update(struct MD5Context *context, md5byte const *buf, unsigned len);
|
||||
void MD5Final(md5byte digest[16], struct MD5Context *context);
|
||||
void MD5Transform(FLAC__uint32 buf[4], FLAC__uint32 const in[16]);
|
||||
FLAC_API void FLAC__MD5Init(struct FLAC__MD5Context *context);
|
||||
FLAC_API void FLAC__MD5Update(struct FLAC__MD5Context *context, md5byte const *buf, unsigned len);
|
||||
FLAC_API void FLAC__MD5Final(md5byte digest[16], struct FLAC__MD5Context *context);
|
||||
void FLAC__MD5Transform(FLAC__uint32 buf[4], FLAC__uint32 const in[16]);
|
||||
|
||||
FLAC__bool FLAC__MD5Accumulate(struct MD5Context *ctx, const FLAC__int32 * const signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample);
|
||||
FLAC_API FLAC__bool FLAC__MD5Accumulate(struct FLAC__MD5Context *ctx, const FLAC__int32 * const signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample);
|
||||
|
||||
#endif /* !MD5_H */
|
||||
|
||||
Reference in New Issue
Block a user