Fri, 14 Jun 2013 12:11:09 +0530
GObjectified gchecksum.c as PurpleSHA1Cipher, PurpleSHA256Cipher and PurpleMD5Cipher
| 34538 | 1 | /** |
| 2 | * @file md4.h Purple MD4 hash | |
| 3 | * @ingroup core | |
| 4 | * | |
| 5 | * purple | |
| 6 | * | |
| 7 | * Purple is the legal property of its developers, whose names are too numerous | |
| 8 | * to list here. Please refer to the COPYRIGHT file distributed with this | |
| 9 | * source distribution. | |
| 10 | * | |
| 11 | * This program is free software; you can redistribute it and/or modify | |
| 12 | * it under the terms of the GNU General Public License as published by | |
| 13 | * the Free Software Foundation; either version 2 of the License, or | |
| 14 | * (at your option) any later version. | |
| 15 | * | |
| 16 | * This program is distributed in the hope that it will be useful, | |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 19 | * GNU General Public License for more details. | |
| 20 | * | |
| 21 | * You should have received a copy of the GNU General Public License | |
| 22 | * along with this program; if not, write to the Free Software | |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 24 | */ | |
| 25 | #ifndef PURPLE_MD4_CIPHER_H | |
| 26 | #define PURPLE_MD4_CIPHER_H | |
| 27 | ||
| 28 | #include "cipher.h" | |
| 29 | ||
| 30 | #define PURPLE_TYPE_MD4_CIPHER (purple_md4_cipher_get_gtype()) | |
| 31 | #define PURPLE_MD4_CIPHER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_MD4_CIPHER, PurpleMD4Cipher)) | |
| 32 | #define PURPLE_MD4_CIPHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_MD4_CIPHER, PurpleMD4CipherClass)) | |
| 33 | #define PURPLE_IS_MD4_CIPHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_MD4_CIPHER)) | |
| 34 | #define PURPLE_IS_MD4_CIPHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((obj), PURPLE_TYPE_MD4_CIPHER)) | |
| 35 | #define PURPLE_MD4_CIPHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_MD4_CIPHER, PurpleMD4CipherClass)) | |
| 36 | ||
| 37 | typedef struct _PurpleMD4Cipher PurpleMD4Cipher; | |
| 38 | typedef struct _PurpleMD4CipherClass PurpleMD4CipherClass; | |
| 39 | ||
| 40 | struct _PurpleMD4Cipher { | |
| 41 | PurpleCipher parent; | |
| 42 | ||
| 43 | void (*_purple_reserved1)(void); | |
| 44 | void (*_purple_reserved2)(void); | |
| 45 | void (*_purple_reserved3)(void); | |
| 46 | void (*_purple_reserved4)(void); | |
| 47 | }; | |
| 48 | ||
| 49 | struct _PurpleMD4CipherClass { | |
| 50 | PurpleCipherClass parent; | |
| 51 | ||
| 52 | void (*_purple_reserved1)(void); | |
| 53 | void (*_purple_reserved2)(void); | |
| 54 | void (*_purple_reserved3)(void); | |
| 55 | void (*_purple_reserved4)(void); | |
| 56 | }; | |
| 57 | ||
| 58 | G_BEGIN_DECLS | |
| 59 | ||
| 60 | GType purple_md4_cipher_get_gtype(void); | |
| 61 | ||
| 62 | PurpleCipher *purple_md4_cipher_new(void); | |
| 63 | ||
| 64 | G_END_DECLS | |
| 65 | ||
| 66 | #endif /* PURPLE_MD4_CIPHER_H */ |