annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4570
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 #ifndef AUDACIOUS_AUDUTIL_H
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 #define AUDACIOUS_AUDUTIL_H
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 #include <glib.h>
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 G_BEGIN_DECLS
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 typedef struct {
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 guint32 bits[2]; /* message length in bits, lsw first */
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 guint32 buf[4]; /* digest buffer */
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 guint8 in[64]; /* accumulate block */
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 } aud_md5state_t;
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 #define AUD_MD5HASH_LENGTH (16)
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 #define AUD_MD5HASH_LENGTH_CH (AUD_MD5HASH_LENGTH * 2)
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 typedef guint8 aud_md5hash_t[AUD_MD5HASH_LENGTH];
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 void aud_md5_init(aud_md5state_t *ctx);
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21 void aud_md5_append(aud_md5state_t *ctx, const guint8 *buf, guint len);
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22 void aud_md5_finish(aud_md5state_t *ctx, aud_md5hash_t digest);
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25 G_END_DECLS
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26
5586782f9dfe Added libaudutil for functionality that does not fit into plugin API, but
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27 #endif /* AUDACIOUS_AUDUTIL_H */