summaryrefslogtreecommitdiff
path: root/libpurple/ciphers/md5hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpurple/ciphers/md5hash.h')
-rw-r--r--libpurple/ciphers/md5hash.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/libpurple/ciphers/md5hash.h b/libpurple/ciphers/md5hash.h
new file mode 100644
index 0000000000..3501bcf1c0
--- /dev/null
+++ b/libpurple/ciphers/md5hash.h
@@ -0,0 +1,64 @@
+/**
+ * @file md5.h Purple MD5 Hash
+ * @ingroup core
+ */
+
+/* purple
+ *
+ * Purple is the legal property of its developers, whose names are too numerous
+ * to list here. Please refer to the COPYRIGHT file distributed with this
+ * source distribution.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
+ */
+#ifndef PURPLE_MD5_HASH_H
+#define PURPLE_MD5_HASH_H
+
+#include "hash.h"
+
+#define PURPLE_TYPE_MD5_HASH (purple_md5_hash_get_gtype())
+#define PURPLE_MD5_HASH(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_MD5_HASH, PurpleMD5Hash))
+#define PURPLE_MD5_HASH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_MD5_HASH, PurpleMD5HashClass))
+#define PURPLE_IS_MD5_HASH(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_MD5_HASH))
+#define PURPLE_IS_MD5_HASH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((obj), PURPLE_TYPE_MD5_HASH))
+#define PURPLE_MD5_HASH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_MD5_HASH, PurpleMD5HashClass))
+
+typedef struct _PurpleMD5Hash PurpleMD5Hash;
+typedef struct _PurpleMD5HashClass PurpleMD5HashClass;
+
+struct _PurpleMD5Hash {
+ /*< private >*/
+ PurpleHash gparent;
+};
+
+struct _PurpleMD5HashClass {
+ /*< private >*/
+ PurpleHashClass gparent;
+
+ void (*_purple_reserved1)(void);
+ void (*_purple_reserved2)(void);
+ void (*_purple_reserved3)(void);
+ void (*_purple_reserved4)(void);
+};
+
+G_BEGIN_DECLS
+
+GType purple_md5_hash_get_gtype(void);
+
+PurpleHash *purple_md5_hash_new(void);
+
+G_END_DECLS
+
+#endif /* PURPLE_MD5_HASH_H */