Mercurial > audlegacy
annotate src/libaudutil/audutil.h @ 4887:0ddbd0025174 default tip
added libaudtag. (not used yet.)
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 05 May 2010 18:26:06 +0900 |
parents | 5586782f9dfe |
children |
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 */ |