Sat, 12 Oct 2013 20:46:23 +0530
Changed *_get_gtype to *_get_type for ciphers and hashes so gtk-doc can find them
|
34539
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
1 | /** |
|
34566
e0f887dee077
Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents:
34539
diff
changeset
|
2 | * @file md5.h Purple MD5 Hash |
|
34539
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
3 | * @ingroup core |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
4 | */ |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
5 | |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
6 | /* purple |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
7 | * |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
8 | * Purple is the legal property of its developers, whose names are too numerous |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
9 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
10 | * source distribution. |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
11 | * |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
12 | * This program is free software; you can redistribute it and/or modify |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
13 | * it under the terms of the GNU General Public License as published by |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
14 | * the Free Software Foundation; either version 2 of the License, or |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
15 | * (at your option) any later version. |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
16 | * |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
17 | * This program is distributed in the hope that it will be useful, |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
20 | * GNU General Public License for more details. |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
21 | * |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
22 | * You should have received a copy of the GNU General Public License |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
23 | * along with this program; if not, write to the Free Software |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
25 | */ |
|
34566
e0f887dee077
Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents:
34539
diff
changeset
|
26 | #ifndef PURPLE_MD5_HASH_H |
|
e0f887dee077
Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents:
34539
diff
changeset
|
27 | #define PURPLE_MD5_HASH_H |
|
34539
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
28 | |
|
34566
e0f887dee077
Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents:
34539
diff
changeset
|
29 | #include "hash.h" |
|
34539
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
30 | |
|
35020
0ab63ada3cf2
Changed *_get_gtype to *_get_type for ciphers and hashes so gtk-doc can find them
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
31 | #define PURPLE_TYPE_MD5_HASH (purple_md5_hash_get_type()) |
|
34566
e0f887dee077
Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents:
34539
diff
changeset
|
32 | #define PURPLE_MD5_HASH(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_MD5_HASH, PurpleMD5Hash)) |
|
e0f887dee077
Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents:
34539
diff
changeset
|
33 | #define PURPLE_MD5_HASH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_MD5_HASH, PurpleMD5HashClass)) |
|
e0f887dee077
Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents:
34539
diff
changeset
|
34 | #define PURPLE_IS_MD5_HASH(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_MD5_HASH)) |
|
e0f887dee077
Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents:
34539
diff
changeset
|
35 | #define PURPLE_IS_MD5_HASH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((obj), PURPLE_TYPE_MD5_HASH)) |
|
e0f887dee077
Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents:
34539
diff
changeset
|
36 | #define PURPLE_MD5_HASH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_MD5_HASH, PurpleMD5HashClass)) |
|
34539
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
37 | |
|
34566
e0f887dee077
Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents:
34539
diff
changeset
|
38 | typedef struct _PurpleMD5Hash PurpleMD5Hash; |
|
e0f887dee077
Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents:
34539
diff
changeset
|
39 | typedef struct _PurpleMD5HashClass PurpleMD5HashClass; |
|
34539
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
40 | |
|
34566
e0f887dee077
Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents:
34539
diff
changeset
|
41 | struct _PurpleMD5Hash { |
|
34691
3acdd397a9c1
Removed reserved fields from instance structs.
Ankit Vani <a@nevitus.org>
parents:
34566
diff
changeset
|
42 | /*< private >*/ |
|
34566
e0f887dee077
Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents:
34539
diff
changeset
|
43 | PurpleHash gparent; |
|
34539
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
44 | }; |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
45 | |
|
34566
e0f887dee077
Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents:
34539
diff
changeset
|
46 | struct _PurpleMD5HashClass { |
|
34691
3acdd397a9c1
Removed reserved fields from instance structs.
Ankit Vani <a@nevitus.org>
parents:
34566
diff
changeset
|
47 | /*< private >*/ |
|
34566
e0f887dee077
Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents:
34539
diff
changeset
|
48 | PurpleHashClass gparent; |
|
34539
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
49 | |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
50 | void (*_purple_reserved1)(void); |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
51 | void (*_purple_reserved2)(void); |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
52 | void (*_purple_reserved3)(void); |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
53 | void (*_purple_reserved4)(void); |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
54 | }; |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
55 | |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
56 | G_BEGIN_DECLS |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
57 | |
|
35020
0ab63ada3cf2
Changed *_get_gtype to *_get_type for ciphers and hashes so gtk-doc can find them
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
58 | GType purple_md5_hash_get_type(void); |
|
34539
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
59 | |
|
34566
e0f887dee077
Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents:
34539
diff
changeset
|
60 | PurpleHash *purple_md5_hash_new(void); |
|
34539
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
61 | |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
62 | G_END_DECLS |
|
26e080fb06bb
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
63 | |
|
34566
e0f887dee077
Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents:
34539
diff
changeset
|
64 | #endif /* PURPLE_MD5_HASH_H */ |