diff libpurple/plugins/perl/common/Conversation.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 39c7bb133a9f
line wrap: on
line diff
--- a/libpurple/plugins/perl/common/Conversation.xs	Mon Mar 19 17:01:28 2007 +0000
+++ b/libpurple/plugins/perl/common/Conversation.xs	Mon Mar 19 17:02:24 2007 +0000
@@ -1,236 +1,236 @@
 #include "module.h"
 
-MODULE = Gaim::Conversation  PACKAGE = Gaim  PREFIX = gaim_
+MODULE = Purple::Conversation  PACKAGE = Purple  PREFIX = purple_
 PROTOTYPES: ENABLE
 
 void
-gaim_get_ims()
+purple_get_ims()
 PREINIT:
 	GList *l;
 PPCODE:
-	for (l = gaim_get_ims(); l != NULL; l = l->next) {
-		XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Conversation")));
+	for (l = purple_get_ims(); l != NULL; l = l->next) {
+		XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Conversation")));
 	}
 
 void
-gaim_get_conversations()
+purple_get_conversations()
 PREINIT:
 	GList *l;
 PPCODE:
-	for (l = gaim_get_conversations(); l != NULL; l = l->next) {
-		XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Conversation")));
+	for (l = purple_get_conversations(); l != NULL; l = l->next) {
+		XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Conversation")));
 	}
 
 void
-gaim_get_chats()
+purple_get_chats()
 PREINIT:
 	GList *l;
 PPCODE:
-	for (l = gaim_get_chats(); l != NULL; l = l->next) {
-		XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Conversation")));
+	for (l = purple_get_chats(); l != NULL; l = l->next) {
+		XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Conversation")));
 	}
 
-MODULE = Gaim::Conversation  PACKAGE = Gaim::Conversations  PREFIX = gaim_conversations_
+MODULE = Purple::Conversation  PACKAGE = Purple::Conversations  PREFIX = purple_conversations_
 PROTOTYPES: ENABLE
 
-Gaim::Handle
-gaim_conversations_get_handle()
+Purple::Handle
+purple_conversations_get_handle()
 
 void
-gaim_conversations_init()
+purple_conversations_init()
 
 void
-gaim_conversations_uninit()
+purple_conversations_uninit()
 
-MODULE = Gaim::Conversation  PACKAGE = Gaim::Conversation  PREFIX = gaim_conversation_
+MODULE = Purple::Conversation  PACKAGE = Purple::Conversation  PREFIX = purple_conversation_
 PROTOTYPES: ENABLE
 
 void
-gaim_conversation_destroy(conv)
-	Gaim::Conversation conv
+purple_conversation_destroy(conv)
+	Purple::Conversation conv
 
-Gaim::ConversationType
-gaim_conversation_get_type(conv)
-	Gaim::Conversation conv
+Purple::ConversationType
+purple_conversation_get_type(conv)
+	Purple::Conversation conv
 
-Gaim::Account
-gaim_conversation_get_account(conv)
-	Gaim::Conversation conv
+Purple::Account
+purple_conversation_get_account(conv)
+	Purple::Conversation conv
 
-Gaim::Connection
-gaim_conversation_get_gc(conv)
-	Gaim::Conversation conv
+Purple::Connection
+purple_conversation_get_gc(conv)
+	Purple::Conversation conv
 
 void
-gaim_conversation_set_title(conv, title);
-	Gaim::Conversation conv
+purple_conversation_set_title(conv, title);
+	Purple::Conversation conv
 	const char * title
 
 const char *
-gaim_conversation_get_title(conv)
-	Gaim::Conversation conv
+purple_conversation_get_title(conv)
+	Purple::Conversation conv
 
 void
-gaim_conversation_autoset_title(conv)
-	Gaim::Conversation conv
+purple_conversation_autoset_title(conv)
+	Purple::Conversation conv
 
 void
-gaim_conversation_set_name(conv, name)
-	Gaim::Conversation conv
+purple_conversation_set_name(conv, name)
+	Purple::Conversation conv
 	const char *name
 
 const char *
-gaim_conversation_get_name(conv)
-	Gaim::Conversation conv
+purple_conversation_get_name(conv)
+	Purple::Conversation conv
 
 void
-gaim_conversation_set_logging(conv, log)
-	Gaim::Conversation conv
+purple_conversation_set_logging(conv, log)
+	Purple::Conversation conv
 	gboolean log
 
 gboolean
-gaim_conversation_is_logging(conv)
-	Gaim::Conversation conv
+purple_conversation_is_logging(conv)
+	Purple::Conversation conv
 
-Gaim::Conversation::IM
-gaim_conversation_get_im_data(conv)
-	Gaim::Conversation conv
+Purple::Conversation::IM
+purple_conversation_get_im_data(conv)
+	Purple::Conversation conv
 
-Gaim::Conversation::Chat
-gaim_conversation_get_chat_data(conv)
-	Gaim::Conversation conv
+Purple::Conversation::Chat
+purple_conversation_get_chat_data(conv)
+	Purple::Conversation conv
 
 gpointer
-gaim_conversation_get_data(conv, key)
-	Gaim::Conversation conv
+purple_conversation_get_data(conv, key)
+	Purple::Conversation conv
 	const char * key
 
-Gaim::ConnectionFlags
-gaim_conversation_get_features(conv)
-	Gaim::Conversation conv
+Purple::ConnectionFlags
+purple_conversation_get_features(conv)
+	Purple::Conversation conv
 
 gboolean
-gaim_conversation_has_focus(conv)
-	Gaim::Conversation conv
+purple_conversation_has_focus(conv)
+	Purple::Conversation conv
 
 void
-gaim_conversation_update(conv, type)
-	Gaim::Conversation conv
-	Gaim::ConvUpdateType type
+purple_conversation_update(conv, type)
+	Purple::Conversation conv
+	Purple::ConvUpdateType type
 
-Gaim::Conversation
-gaim_conversation_new(class, type, account, name)
-	Gaim::ConversationType type
-	Gaim::Account account
+Purple::Conversation
+purple_conversation_new(class, type, account, name)
+	Purple::ConversationType type
+	Purple::Account account
 	const char *name
     C_ARGS:
 	type, account, name
 
 void
-gaim_conversation_set_account(conv, account);
-	Gaim::Conversation conv
-	Gaim::Account account
+purple_conversation_set_account(conv, account);
+	Purple::Conversation conv
+	Purple::Account account
 
-MODULE = Gaim::Conversation  PACKAGE = Gaim::Conversation::IM  PREFIX = gaim_conv_im_
+MODULE = Purple::Conversation  PACKAGE = Purple::Conversation::IM  PREFIX = purple_conv_im_
 PROTOTYPES: ENABLE
 
-Gaim::Conversation
-gaim_conv_im_get_conversation(im)
-	Gaim::Conversation::IM im
+Purple::Conversation
+purple_conv_im_get_conversation(im)
+	Purple::Conversation::IM im
 
 void
-gaim_conv_im_set_icon(im, icon)
-	Gaim::Conversation::IM im
-	Gaim::Buddy::Icon icon
+purple_conv_im_set_icon(im, icon)
+	Purple::Conversation::IM im
+	Purple::Buddy::Icon icon
 
-Gaim::Buddy::Icon
-gaim_conv_im_get_icon(im)
-	Gaim::Conversation::IM im
+Purple::Buddy::Icon
+purple_conv_im_get_icon(im)
+	Purple::Conversation::IM im
 
 void
-gaim_conv_im_set_typing_state(im, state)
-	Gaim::Conversation::IM im
-	Gaim::TypingState state
+purple_conv_im_set_typing_state(im, state)
+	Purple::Conversation::IM im
+	Purple::TypingState state
 
-Gaim::TypingState
-gaim_conv_im_get_typing_state(im)
-	Gaim::Conversation::IM im
+Purple::TypingState
+purple_conv_im_get_typing_state(im)
+	Purple::Conversation::IM im
 
 void
-gaim_conv_im_start_typing_timeout(im, timeout)
-	Gaim::Conversation::IM im
+purple_conv_im_start_typing_timeout(im, timeout)
+	Purple::Conversation::IM im
 	int timeout
 
 void
-gaim_conv_im_stop_typing_timeout(im)
-	Gaim::Conversation::IM im
+purple_conv_im_stop_typing_timeout(im)
+	Purple::Conversation::IM im
 
 guint
-gaim_conv_im_get_typing_timeout(im)
-	Gaim::Conversation::IM im
+purple_conv_im_get_typing_timeout(im)
+	Purple::Conversation::IM im
 
 void
-gaim_conv_im_set_type_again(im, val)
-	Gaim::Conversation::IM im
+purple_conv_im_set_type_again(im, val)
+	Purple::Conversation::IM im
 	time_t val
 
 time_t
-gaim_conv_im_get_type_again(im)
-	Gaim::Conversation::IM im
+purple_conv_im_get_type_again(im)
+	Purple::Conversation::IM im
 
 void
-gaim_conv_im_start_send_typed_timeout(im)
-	Gaim::Conversation::IM im
+purple_conv_im_start_send_typed_timeout(im)
+	Purple::Conversation::IM im
 
 void
-gaim_conv_im_stop_send_typed_timeout(im)
-	Gaim::Conversation::IM im
+purple_conv_im_stop_send_typed_timeout(im)
+	Purple::Conversation::IM im
 
 guint
-gaim_conv_im_get_send_typed_timeout(im)
-	Gaim::Conversation::IM im
+purple_conv_im_get_send_typed_timeout(im)
+	Purple::Conversation::IM im
 
 void
-gaim_conv_im_update_typing(im)
-	Gaim::Conversation::IM im
+purple_conv_im_update_typing(im)
+	Purple::Conversation::IM im
 
 void
-gaim_conv_im_send(im, message)
-	Gaim::Conversation::IM im
+purple_conv_im_send(im, message)
+	Purple::Conversation::IM im
 	const char *message
 
 void
-gaim_conv_im_write(im, who, message, flags, mtime)
-	Gaim::Conversation::IM im
+purple_conv_im_write(im, who, message, flags, mtime)
+	Purple::Conversation::IM im
 	const char *who
 	const char *message
-	Gaim::MessageFlags flags
+	Purple::MessageFlags flags
 	time_t mtime
 
-MODULE = Gaim::Conversation  PACKAGE = Gaim::Conversation  PREFIX = gaim_conv_
+MODULE = Purple::Conversation  PACKAGE = Purple::Conversation  PREFIX = purple_conv_
 PROTOTYPES: ENABLE
 
 gboolean
-gaim_conv_present_error(who, account, what)
+purple_conv_present_error(who, account, what)
 	const char *who
-	Gaim::Account account
+	Purple::Account account
 	const char *what
 
 void
-gaim_conv_custom_smiley_close(conv, smile)
-	Gaim::Conversation conv
+purple_conv_custom_smiley_close(conv, smile)
+	Purple::Conversation conv
 	const char *smile
 
-MODULE = Gaim::Conversation  PACKAGE = Gaim::Conversation::Chat  PREFIX = gaim_conv_chat_
+MODULE = Purple::Conversation  PACKAGE = Purple::Conversation::Chat  PREFIX = purple_conv_chat_
 PROTOTYPES: ENABLE
 
-Gaim::Conversation
-gaim_conv_chat_get_conversation(chat)
-	Gaim::Conversation::Chat chat
+Purple::Conversation
+purple_conv_chat_get_conversation(chat)
+	Purple::Conversation::Chat chat
 
 void
-gaim_conv_chat_set_users(chat, users)
-	Gaim::Conversation::Chat chat
+purple_conv_chat_set_users(chat, users)
+	Purple::Conversation::Chat chat
 	SV * users
 PREINIT:
 	GList *l, *t_GL;
@@ -244,33 +244,33 @@
 		t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(users), i, 0), t_sl));
 	}
 
-	for (l = gaim_conv_chat_set_users(chat, t_GL); l != NULL; l = l->next) {
-		XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry")));
+	for (l = purple_conv_chat_set_users(chat, t_GL); l != NULL; l = l->next) {
+		XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::ListEntry")));
 	}
 
 void
-gaim_conv_chat_get_users(chat)
-	Gaim::Conversation::Chat chat
+purple_conv_chat_get_users(chat)
+	Purple::Conversation::Chat chat
 PREINIT:
 	GList *l;
 PPCODE:
-	for (l = gaim_conv_chat_get_users(chat); l != NULL; l = l->next) {
-		XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry")));
+	for (l = purple_conv_chat_get_users(chat); l != NULL; l = l->next) {
+		XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::ListEntry")));
 	}
 
 void
-gaim_conv_chat_ignore(chat, name)
-	Gaim::Conversation::Chat chat
+purple_conv_chat_ignore(chat, name)
+	Purple::Conversation::Chat chat
 	const char *name
 
 void
-gaim_conv_chat_unignore(chat, name)
-	Gaim::Conversation::Chat chat
+purple_conv_chat_unignore(chat, name)
+	Purple::Conversation::Chat chat
 	const char *name
 
 void
-gaim_conv_chat_set_ignored(chat, ignored)
-	Gaim::Conversation::Chat chat
+purple_conv_chat_set_ignored(chat, ignored)
+	Purple::Conversation::Chat chat
 	SV * ignored
 PREINIT:
 	GList *l, *t_GL;
@@ -284,49 +284,49 @@
 		t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(ignored), i, 0), t_sl));
 	}
 
-	for (l = gaim_conv_chat_set_ignored(chat, t_GL); l != NULL; l = l->next) {
-		XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry")));
+	for (l = purple_conv_chat_set_ignored(chat, t_GL); l != NULL; l = l->next) {
+		XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::ListEntry")));
 	}
 
 void
-gaim_conv_chat_get_ignored(chat)
-	Gaim::Conversation::Chat chat
+purple_conv_chat_get_ignored(chat)
+	Purple::Conversation::Chat chat
 PREINIT:
 	GList *l;
 PPCODE:
-	for (l = gaim_conv_chat_get_ignored(chat); l != NULL; l = l->next) {
-		XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry")));
+	for (l = purple_conv_chat_get_ignored(chat); l != NULL; l = l->next) {
+		XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::ListEntry")));
 	}
 
 const char *
-gaim_conv_chat_get_topic(chat)
-	Gaim::Conversation::Chat chat
+purple_conv_chat_get_topic(chat)
+	Purple::Conversation::Chat chat
 
 void
-gaim_conv_chat_set_id(chat, id)
-	Gaim::Conversation::Chat chat
+purple_conv_chat_set_id(chat, id)
+	Purple::Conversation::Chat chat
 	int id
 
 int
-gaim_conv_chat_get_id(chat)
-	Gaim::Conversation::Chat chat
+purple_conv_chat_get_id(chat)
+	Purple::Conversation::Chat chat
 
 void
-gaim_conv_chat_send(chat, message)
-	Gaim::Conversation::Chat chat
+purple_conv_chat_send(chat, message)
+	Purple::Conversation::Chat chat
 	const char * message
 
 void
-gaim_conv_chat_write(chat, who, message, flags, mtime)
-	Gaim::Conversation::Chat chat
+purple_conv_chat_write(chat, who, message, flags, mtime)
+	Purple::Conversation::Chat chat
 	const char *who
 	const char *message
-	Gaim::MessageFlags flags
+	Purple::MessageFlags flags
 	time_t mtime
 
 void
-gaim_conv_chat_add_users(chat, users, extra_msgs, flags, new_arrivals)
-	Gaim::Conversation::Chat chat
+purple_conv_chat_add_users(chat, users, extra_msgs, flags, new_arrivals)
+	Purple::Conversation::Chat chat
 	SV * users
 	SV * extra_msgs
 	SV * flags
@@ -359,44 +359,44 @@
 		t_GL_extra_msgs = g_list_append(t_GL_extra_msgs, SvPV(*av_fetch((AV *)SvRV(extra_msgs), i, 0), t_sl));
 	}
 
-	gaim_conv_chat_add_users(chat, t_GL_users, t_GL_extra_msgs, t_GL_flags, new_arrivals);
+	purple_conv_chat_add_users(chat, t_GL_users, t_GL_extra_msgs, t_GL_flags, new_arrivals);
 
 gboolean
-gaim_conv_chat_find_user(chat, user)
-	Gaim::Conversation::Chat chat
+purple_conv_chat_find_user(chat, user)
+	Purple::Conversation::Chat chat
 	const char * user
 
-void gaim_conv_chat_clear_users(chat)
-	Gaim::Conversation::Chat chat
+void purple_conv_chat_clear_users(chat)
+	Purple::Conversation::Chat chat
 
-void gaim_conv_chat_set_nick(chat, nick)
-	Gaim::Conversation::Chat chat
+void purple_conv_chat_set_nick(chat, nick)
+	Purple::Conversation::Chat chat
 	const char * nick
 
 const char *
-gaim_conv_chat_get_nick(chat)
-	Gaim::Conversation::Chat chat
+purple_conv_chat_get_nick(chat)
+	Purple::Conversation::Chat chat
 
-Gaim::Conversation
-gaim_find_chat(gc, id)
-	Gaim::Connection gc
+Purple::Conversation
+purple_find_chat(gc, id)
+	Purple::Connection gc
 	int id
 
-void gaim_conv_chat_left(chat)
-	Gaim::Conversation::Chat chat
+void purple_conv_chat_left(chat)
+	Purple::Conversation::Chat chat
 
-gboolean gaim_conv_chat_has_left(chat)
-	Gaim::Conversation::Chat chat
+gboolean purple_conv_chat_has_left(chat)
+	Purple::Conversation::Chat chat
 
-Gaim::Conversation::ChatBuddy
-gaim_conv_chat_cb_find(chat, name)
-	Gaim::Conversation::Chat chat
+Purple::Conversation::ChatBuddy
+purple_conv_chat_cb_find(chat, name)
+	Purple::Conversation::Chat chat
 	const char *name
 
 const char *
-gaim_conv_chat_cb_get_name(cb)
-	Gaim::Conversation::ChatBuddy cb
+purple_conv_chat_cb_get_name(cb)
+	Purple::Conversation::ChatBuddy cb
 
 void
-gaim_conv_chat_cb_destroy(cb);
-	Gaim::Conversation::ChatBuddy cb
+purple_conv_chat_cb_destroy(cb);
+	Purple::Conversation::ChatBuddy cb