diff libpurple/plugins/perl/common/Cipher.xs @ 15834:2f8274ce570a

Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 19 Mar 2007 17:02:24 +0000
parents 5fe8042783c1
children af603a54ae5a
line wrap: on
line diff
--- a/libpurple/plugins/perl/common/Cipher.xs	Mon Mar 19 17:01:28 2007 +0000
+++ b/libpurple/plugins/perl/common/Cipher.xs	Mon Mar 19 17:02:24 2007 +0000
@@ -1,18 +1,18 @@
 #include "module.h"
 
-MODULE = Gaim::Cipher  PACKAGE = Gaim::Cipher  PREFIX = gaim_cipher_
+MODULE = Purple::Cipher  PACKAGE = Purple::Cipher  PREFIX = purple_cipher_
 PROTOTYPES: ENABLE
 
 const gchar *
-gaim_cipher_get_name(cipher)
-	Gaim::Cipher cipher
+purple_cipher_get_name(cipher)
+	Purple::Cipher cipher
 
 guint
-gaim_cipher_get_capabilities(cipher)
-	Gaim::Cipher cipher
+purple_cipher_get_capabilities(cipher)
+	Purple::Cipher cipher
 
 gboolean
-gaim_cipher_digest_region(name, data, data_len, in_len, digest, out_len)
+purple_cipher_digest_region(name, data, data_len, in_len, digest, out_len)
 	const gchar * name
 	const guchar * data
 	size_t data_len
@@ -20,138 +20,138 @@
 	guchar &digest
 	size_t * out_len
 
-MODULE = Gaim::Cipher  PACKAGE = Gaim::Ciphers  PREFIX = gaim_ciphers_
+MODULE = Purple::Cipher  PACKAGE = Purple::Ciphers  PREFIX = purple_ciphers_
 PROTOTYPES: ENABLE
 
-Gaim::Cipher
-gaim_ciphers_find_cipher(name)
+Purple::Cipher
+purple_ciphers_find_cipher(name)
 	gchar * name
 
-Gaim::Cipher
-gaim_ciphers_register_cipher(name, ops)
+Purple::Cipher
+purple_ciphers_register_cipher(name, ops)
 	gchar * name
-	Gaim::Cipher::Ops ops
+	Purple::Cipher::Ops ops
 
 gboolean
-gaim_ciphers_unregister_cipher(cipher)
-	Gaim::Cipher cipher
+purple_ciphers_unregister_cipher(cipher)
+	Purple::Cipher cipher
 
 void
-gaim_ciphers_get_ciphers()
+purple_ciphers_get_ciphers()
 PREINIT:
 	GList *l;
 PPCODE:
-	for (l = gaim_ciphers_get_ciphers(); l != NULL; l = l->next) {
-		XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Cipher")));
+	for (l = purple_ciphers_get_ciphers(); l != NULL; l = l->next) {
+		XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Cipher")));
 	}
 
-Gaim::Handle
-gaim_ciphers_get_handle()
+Purple::Handle
+purple_ciphers_get_handle()
 
 void
-gaim_ciphers_init()
+purple_ciphers_init()
 
 void
-gaim_ciphers_uninit()
+purple_ciphers_uninit()
 
-MODULE = Gaim::Cipher  PACKAGE = Gaim::Cipher::Context  PREFIX = gaim_cipher_context_
+MODULE = Purple::Cipher  PACKAGE = Purple::Cipher::Context  PREFIX = purple_cipher_context_
 PROTOTYPES: ENABLE
 
 void
-gaim_cipher_context_set_option(context, name, value)
-	Gaim::Cipher::Context context
+purple_cipher_context_set_option(context, name, value)
+	Purple::Cipher::Context context
 	gchar *name
 	gpointer value
 
 gpointer
-gaim_cipher_context_get_option(context, name)
-	Gaim::Cipher::Context context
+purple_cipher_context_get_option(context, name)
+	Purple::Cipher::Context context
 	gchar *name
 
-Gaim::Cipher::Context
-gaim_cipher_context_new(cipher, extra)
-	Gaim::Cipher cipher
+Purple::Cipher::Context
+purple_cipher_context_new(cipher, extra)
+	Purple::Cipher cipher
 	void *extra
 
-Gaim::Cipher::Context
-gaim_cipher_context_new_by_name(name, extra)
+Purple::Cipher::Context
+purple_cipher_context_new_by_name(name, extra)
 	gchar *name
 	void *extra
 
 void
-gaim_cipher_context_reset(context, extra)
-	Gaim::Cipher::Context context
+purple_cipher_context_reset(context, extra)
+	Purple::Cipher::Context context
 	gpointer extra
 
 void
-gaim_cipher_context_destroy(context)
-	Gaim::Cipher::Context context
+purple_cipher_context_destroy(context)
+	Purple::Cipher::Context context
 
 void
-gaim_cipher_context_set_iv(context, iv, len)
-	Gaim::Cipher::Context context
+purple_cipher_context_set_iv(context, iv, len)
+	Purple::Cipher::Context context
 	guchar * iv
 	size_t len
 
 void
-gaim_cipher_context_append(context, data, len)
-	Gaim::Cipher::Context context
+purple_cipher_context_append(context, data, len)
+	Purple::Cipher::Context context
 	guchar * data
 	size_t len
 
 gboolean
-gaim_cipher_context_digest(context, in_len, digest, out_len)
-	Gaim::Cipher::Context context
+purple_cipher_context_digest(context, in_len, digest, out_len)
+	Purple::Cipher::Context context
 	size_t in_len
 	guchar &digest
 	size_t &out_len
 
 gboolean
-gaim_cipher_context_digest_to_str(context, in_len, digest_s, out_len)
-	Gaim::Cipher::Context context
+purple_cipher_context_digest_to_str(context, in_len, digest_s, out_len)
+	Purple::Cipher::Context context
 	size_t in_len
 	gchar &digest_s
 	size_t &out_len
 
 gint
-gaim_cipher_context_encrypt(context, data, len, output, outlen)
-	Gaim::Cipher::Context context
+purple_cipher_context_encrypt(context, data, len, output, outlen)
+	Purple::Cipher::Context context
 	guchar &data
 	size_t len
 	guchar &output
 	size_t &outlen
 
 gint
-gaim_cipher_context_decrypt(context, data, len, output, outlen)
-	Gaim::Cipher::Context context
+purple_cipher_context_decrypt(context, data, len, output, outlen)
+	Purple::Cipher::Context context
 	guchar &data
 	size_t len
 	guchar &output
 	size_t &outlen
 
 void
-gaim_cipher_context_set_salt(context, salt)
-	Gaim::Cipher::Context context
+purple_cipher_context_set_salt(context, salt)
+	Purple::Cipher::Context context
 	guchar *salt
 
 size_t
-gaim_cipher_context_get_salt_size(context)
-	Gaim::Cipher::Context context
+purple_cipher_context_get_salt_size(context)
+	Purple::Cipher::Context context
 
 void
-gaim_cipher_context_set_key(context, key)
-	Gaim::Cipher::Context context
+purple_cipher_context_set_key(context, key)
+	Purple::Cipher::Context context
 	guchar *key
 
 size_t
-gaim_cipher_context_get_key_size(context)
-	Gaim::Cipher::Context context
+purple_cipher_context_get_key_size(context)
+	Purple::Cipher::Context context
 
 void
-gaim_cipher_context_set_data(context, data)
-	Gaim::Cipher::Context context
+purple_cipher_context_set_data(context, data)
+	Purple::Cipher::Context context
 	gpointer data
 
 gpointer
-gaim_cipher_context_get_data(context)
-	Gaim::Cipher::Context context
+purple_cipher_context_get_data(context)
+	Purple::Cipher::Context context