Mercurial > audlegacy
comparison src/libaudutil/audutil.h @ 4570:5586782f9dfe
Added libaudutil for functionality that does not fit into plugin API, but
does not belong into the core either.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 21 May 2008 08:54:18 +0300 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
4569:273e15b0d9c1 | 4570:5586782f9dfe |
---|---|
1 #ifndef AUDACIOUS_AUDUTIL_H | |
2 #define AUDACIOUS_AUDUTIL_H | |
3 | |
4 #include <glib.h> | |
5 | |
6 G_BEGIN_DECLS | |
7 | |
8 typedef struct { | |
9 guint32 bits[2]; /* message length in bits, lsw first */ | |
10 guint32 buf[4]; /* digest buffer */ | |
11 guint8 in[64]; /* accumulate block */ | |
12 } aud_md5state_t; | |
13 | |
14 #define AUD_MD5HASH_LENGTH (16) | |
15 #define AUD_MD5HASH_LENGTH_CH (AUD_MD5HASH_LENGTH * 2) | |
16 | |
17 typedef guint8 aud_md5hash_t[AUD_MD5HASH_LENGTH]; | |
18 | |
19 | |
20 void aud_md5_init(aud_md5state_t *ctx); | |
21 void aud_md5_append(aud_md5state_t *ctx, const guint8 *buf, guint len); | |
22 void aud_md5_finish(aud_md5state_t *ctx, aud_md5hash_t digest); | |
23 | |
24 | |
25 G_END_DECLS | |
26 | |
27 #endif /* AUDACIOUS_AUDUTIL_H */ |