libpurple/plugins/perl/common/Conversation.xs

Thu, 27 Jun 2013 01:26:07 +0530

author
Ankit Vani <a@nevitus.org>
date
Thu, 27 Jun 2013 01:26:07 +0530
branch
soc.2013.gobjectification
changeset 34652
65a6bfb86d43
parent 34646
e7f4631e93f7
child 34656
adbcbe04077c
permissions
-rw-r--r--

Updated libpurple plugins with the API changes

6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
1 #include "module.h"
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
2
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
3 MODULE = Purple::Conversation PACKAGE = Purple PREFIX = purple_
12819
50f53c5e6657 [gaim-migrate @ 15167]
Etan Reisner <deryni@pidgin.im>
parents: 12364
diff changeset
4 PROTOTYPES: ENABLE
50f53c5e6657 [gaim-migrate @ 15167]
Etan Reisner <deryni@pidgin.im>
parents: 12364
diff changeset
5
16773
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
6 BOOT:
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
7 {
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
8 HV *update_stash = gv_stashpv("Purple::Conversation::UpdateType", 1);
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
9 HV *typing_stash = gv_stashpv("Purple::IMConversation::TypingState", 1);
34620
e49aa67344e1 Renamed PurpleConversationMessageFlags back to PurpleMessageFlags.
Ankit Vani <a@nevitus.org>
parents: 34617
diff changeset
10 HV *flags_stash = gv_stashpv("Purple::MessageFlags", 1);
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
11 HV *cbflags_stash = gv_stashpv("Purple::ChatConversation::Buddy::Flags", 1);
16773
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
12
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
13 static const constiv *civ, update_const_iv[] = {
16773
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
14 #undef const_iv
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
15 #define const_iv(name) {#name, (IV)PURPLE_CONVERSATION_UPDATE_##name}
16773
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
16 const_iv(ADD),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
17 const_iv(REMOVE),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
18 const_iv(ACCOUNT),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
19 const_iv(TYPING),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
20 const_iv(UNSEEN),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
21 const_iv(LOGGING),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
22 const_iv(TOPIC),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
23 /*
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
24 const_iv(ONLINE),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
25 const_iv(OFFLINE),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
26 */
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
27 const_iv(AWAY),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
28 const_iv(ICON),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
29 const_iv(TITLE),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
30 const_iv(CHATLEFT),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
31 const_iv(FEATURES),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
32 };
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
33 static const constiv typing_const_iv[] = {
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
34 #undef const_iv
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
35 #define const_iv(name) {#name, (IV)PURPLE_IM_CONVERSATION_##name}
16773
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
36 const_iv(NOT_TYPING),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
37 const_iv(TYPING),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
38 const_iv(TYPED),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
39 };
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
40 static const constiv flags_const_iv[] = {
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
41 #undef const_iv
34620
e49aa67344e1 Renamed PurpleConversationMessageFlags back to PurpleMessageFlags.
Ankit Vani <a@nevitus.org>
parents: 34617
diff changeset
42 #define const_iv(name) {#name, (IV)PURPLE_MESSAGE_##name}
16773
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
43 const_iv(SEND),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
44 const_iv(RECV),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
45 const_iv(SYSTEM),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
46 const_iv(AUTO_RESP),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
47 const_iv(ACTIVE_ONLY),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
48 const_iv(NICK),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
49 const_iv(NO_LOG),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
50 const_iv(WHISPER),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
51 const_iv(ERROR),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
52 const_iv(DELAYED),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
53 const_iv(RAW),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
54 const_iv(IMAGES),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
55 const_iv(NOTIFY),
18282
7f893fd24e1f Add NO_LINKIFY message flag for perl plugins.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18122
diff changeset
56 const_iv(NO_LINKIFY),
16773
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
57 };
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
58 static const constiv cbflags_const_iv[] = {
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
59 #undef const_iv
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
60 #define const_iv(name) {#name, (IV)PURPLE_CHAT_CONVERSATION_BUDDY_##name}
16773
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
61 const_iv(NONE),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
62 const_iv(VOICE),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
63 const_iv(HALFOP),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
64 const_iv(OP),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
65 const_iv(FOUNDER),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
66 const_iv(TYPING),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
67 };
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
68
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
69 for (civ = update_const_iv + sizeof(update_const_iv) / sizeof(update_const_iv[0]); civ-- > update_const_iv; )
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
70 newCONSTSUB(update_stash, (char *)civ->name, newSViv(civ->iv));
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
71
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
72 for (civ = typing_const_iv + sizeof(typing_const_iv) / sizeof(typing_const_iv[0]); civ-- > typing_const_iv; )
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
73 newCONSTSUB(typing_stash, (char *)civ->name, newSViv(civ->iv));
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
74
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
75 for (civ = flags_const_iv + sizeof(flags_const_iv) / sizeof(flags_const_iv[0]); civ-- > flags_const_iv; )
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
76 newCONSTSUB(flags_stash, (char *)civ->name, newSViv(civ->iv));
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
77
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
78 for (civ = cbflags_const_iv + sizeof(cbflags_const_iv) / sizeof(cbflags_const_iv[0]); civ-- > cbflags_const_iv; )
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
79 newCONSTSUB(cbflags_stash, (char *)civ->name, newSViv(civ->iv));
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
80 }
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
81
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
82 MODULE = Purple::Conversation PACKAGE = Purple::Conversations PREFIX = purple_conversations_
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
83 PROTOTYPES: ENABLE
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
84
34646
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
85 void
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
86 purple_conversations_add(conv)
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
87 Purple::Conversation conv
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
88
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
89 void
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
90 purple_conversations_remove(conv)
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
91 Purple::Conversation conv
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
92
34652
65a6bfb86d43 Updated libpurple plugins with the API changes
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
93 void
65a6bfb86d43 Updated libpurple plugins with the API changes
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
94 purple_conversations_update_cache(conv, name, account)
65a6bfb86d43 Updated libpurple plugins with the API changes
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
95 Purple::Conversation conv
65a6bfb86d43 Updated libpurple plugins with the API changes
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
96 const char * name
65a6bfb86d43 Updated libpurple plugins with the API changes
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
97 Purple::Account account
65a6bfb86d43 Updated libpurple plugins with the API changes
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
98
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
99 Purple::Handle
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
100 purple_conversations_get_handle()
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
101
34632
ebe6b2a60305 Changed all arguments and return types of Chat and IMs to PurpleChatConversation and PurpleIMConversation.
Ankit Vani <a@nevitus.org>
parents: 34621
diff changeset
102 Purple::ChatConversation
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
103 purple_conversations_find_chat(gc, id)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
104 Purple::Connection gc
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
105 int id
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
106
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
107 void
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
108 purple_conversations_get_ims()
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
109 PREINIT:
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
110 GList *l;
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
111 PPCODE:
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
112 for (l = purple_conversations_get_ims(); l != NULL; l = l->next) {
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
113 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Conversation")));
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
114 }
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
115
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
116 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
117 purple_conversations_get()
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
118 PREINIT:
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
119 GList *l;
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
120 PPCODE:
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
121 for (l = purple_conversations_get(); l != NULL; l = l->next) {
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
122 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Conversation")));
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
123 }
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
124
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
125 void
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
126 purple_conversations_get_chats()
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
127 PREINIT:
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
128 GList *l;
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
129 PPCODE:
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
130 for (l = purple_conversations_get_chats(); l != NULL; l = l->next) {
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
131 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Conversation")));
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
132 }
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
133
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
134 Purple::Conversation
34617
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34616
diff changeset
135 purple_conversations_find_with_account(name, account)
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34616
diff changeset
136 const char *name
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34616
diff changeset
137 Purple::Account account
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34616
diff changeset
138
34632
ebe6b2a60305 Changed all arguments and return types of Chat and IMs to PurpleChatConversation and PurpleIMConversation.
Ankit Vani <a@nevitus.org>
parents: 34621
diff changeset
139 Purple::ChatConversation
34617
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34616
diff changeset
140 purple_conversations_find_chat_with_account(name, account)
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34616
diff changeset
141 const char *name
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34616
diff changeset
142 Purple::Account account
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34616
diff changeset
143
34632
ebe6b2a60305 Changed all arguments and return types of Chat and IMs to PurpleChatConversation and PurpleIMConversation.
Ankit Vani <a@nevitus.org>
parents: 34621
diff changeset
144 Purple::IMConversation
34617
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34616
diff changeset
145 purple_conversations_find_im_with_account(name, account)
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
146 const char *name
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
147 Purple::Account account
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
148
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
149 MODULE = Purple::Conversation PACKAGE = Purple::Conversation PREFIX = purple_conversation_
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
150 PROTOTYPES: ENABLE
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
151
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
152 Purple::Account
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
153 purple_conversation_get_account(conv)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
154 Purple::Conversation conv
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
155
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
156 Purple::Connection
32698
154e4a2a6287 Our API really shouldn't have a 'gc' in it anymore.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32336
diff changeset
157 purple_conversation_get_connection(conv)
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
158 Purple::Conversation conv
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
159
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
160 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
161 purple_conversation_set_title(conv, title);
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
162 Purple::Conversation conv
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
163 const char * title
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
164
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
165 const char *
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
166 purple_conversation_get_title(conv)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
167 Purple::Conversation conv
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
168
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
169 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
170 purple_conversation_autoset_title(conv)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
171 Purple::Conversation conv
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
172
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
173 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
174 purple_conversation_set_name(conv, name)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
175 Purple::Conversation conv
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
176 const char *name
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
177
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
178 const char *
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
179 purple_conversation_get_name(conv)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
180 Purple::Conversation conv
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
181
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
182 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
183 purple_conversation_set_logging(conv, log)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
184 Purple::Conversation conv
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
185 gboolean log
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
186
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
187 gboolean
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
188 purple_conversation_is_logging(conv)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
189 Purple::Conversation conv
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
190
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
191 gpointer
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
192 purple_conversation_get_data(conv, key)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
193 Purple::Conversation conv
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
194 const char * key
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
195
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
196 Purple::ConnectionFlags
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
197 purple_conversation_get_features(conv)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
198 Purple::Conversation conv
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
199
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
200 gboolean
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
201 purple_conversation_has_focus(conv)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
202 Purple::Conversation conv
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
203
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
204 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
205 purple_conversation_update(conv, type)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
206 Purple::Conversation conv
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
207 Purple::Conversation::UpdateType type
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
208
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
209 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
210 purple_conversation_set_account(conv, account);
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
211 Purple::Conversation conv
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
212 Purple::Account account
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
213
17268
de9f01003194 Expose _conversation_write and _conversation_do_command for perl plugins.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16773
diff changeset
214 void
de9f01003194 Expose _conversation_write and _conversation_do_command for perl plugins.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16773
diff changeset
215 purple_conversation_write(conv, who, message, flags, mtime)
de9f01003194 Expose _conversation_write and _conversation_do_command for perl plugins.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16773
diff changeset
216 Purple::Conversation conv
de9f01003194 Expose _conversation_write and _conversation_do_command for perl plugins.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16773
diff changeset
217 const char *who
de9f01003194 Expose _conversation_write and _conversation_do_command for perl plugins.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16773
diff changeset
218 const char *message
34620
e49aa67344e1 Renamed PurpleConversationMessageFlags back to PurpleMessageFlags.
Ankit Vani <a@nevitus.org>
parents: 34617
diff changeset
219 Purple::MessageFlags flags
17268
de9f01003194 Expose _conversation_write and _conversation_do_command for perl plugins.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16773
diff changeset
220 time_t mtime
de9f01003194 Expose _conversation_write and _conversation_do_command for perl plugins.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16773
diff changeset
221
34613
59e3b109ab38 Added send() and send_with_flags() methods in Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34609
diff changeset
222 void
34616
1604c574cdc9 Added write_message and send_message to Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34613
diff changeset
223 purple_conversation_write_message(conv, who, message, flags, mtime)
1604c574cdc9 Added write_message and send_message to Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34613
diff changeset
224 Purple::Conversation conv
1604c574cdc9 Added write_message and send_message to Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34613
diff changeset
225 const char *who
1604c574cdc9 Added write_message and send_message to Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34613
diff changeset
226 const char *message
34620
e49aa67344e1 Renamed PurpleConversationMessageFlags back to PurpleMessageFlags.
Ankit Vani <a@nevitus.org>
parents: 34617
diff changeset
227 Purple::MessageFlags flags
34616
1604c574cdc9 Added write_message and send_message to Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34613
diff changeset
228 time_t mtime
1604c574cdc9 Added write_message and send_message to Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34613
diff changeset
229
1604c574cdc9 Added write_message and send_message to Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34613
diff changeset
230 void
34613
59e3b109ab38 Added send() and send_with_flags() methods in Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34609
diff changeset
231 purple_conversation_send(conv, message)
59e3b109ab38 Added send() and send_with_flags() methods in Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34609
diff changeset
232 Purple::Conversation conv
59e3b109ab38 Added send() and send_with_flags() methods in Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34609
diff changeset
233 const char *message
59e3b109ab38 Added send() and send_with_flags() methods in Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34609
diff changeset
234
59e3b109ab38 Added send() and send_with_flags() methods in Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34609
diff changeset
235 void
34652
65a6bfb86d43 Updated libpurple plugins with the API changes
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
236 purple_conversation_send_with_flags(conv, message, flags)
34613
59e3b109ab38 Added send() and send_with_flags() methods in Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34609
diff changeset
237 Purple::Conversation conv
59e3b109ab38 Added send() and send_with_flags() methods in Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34609
diff changeset
238 const char *message
34620
e49aa67344e1 Renamed PurpleConversationMessageFlags back to PurpleMessageFlags.
Ankit Vani <a@nevitus.org>
parents: 34617
diff changeset
239 Purple::MessageFlags flags
34613
59e3b109ab38 Added send() and send_with_flags() methods in Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34609
diff changeset
240
33577
e614c5283d96 Revert my revision 485b1a932990
Mark Doliner <mark@kingant.net>
parents: 33569
diff changeset
241 gboolean
e614c5283d96 Revert my revision 485b1a932990
Mark Doliner <mark@kingant.net>
parents: 33569
diff changeset
242 purple_conversation_do_command(conv, cmdline, markup, error)
e614c5283d96 Revert my revision 485b1a932990
Mark Doliner <mark@kingant.net>
parents: 33569
diff changeset
243 Purple::Conversation conv
e614c5283d96 Revert my revision 485b1a932990
Mark Doliner <mark@kingant.net>
parents: 33569
diff changeset
244 const char *cmdline
e614c5283d96 Revert my revision 485b1a932990
Mark Doliner <mark@kingant.net>
parents: 33569
diff changeset
245 const char *markup
e614c5283d96 Revert my revision 485b1a932990
Mark Doliner <mark@kingant.net>
parents: 33569
diff changeset
246 char **error
e614c5283d96 Revert my revision 485b1a932990
Mark Doliner <mark@kingant.net>
parents: 33569
diff changeset
247
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
248 MODULE = Purple::Conversation PACKAGE = Purple::IMConversation PREFIX = purple_im_conversation_
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
249 PROTOTYPES: ENABLE
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
250
34632
ebe6b2a60305 Changed all arguments and return types of Chat and IMs to PurpleChatConversation and PurpleIMConversation.
Ankit Vani <a@nevitus.org>
parents: 34621
diff changeset
251 Purple::IMConversation
34609
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
252 purple_im_conversation_new(class, account, name)
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
253 Purple::Account account
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
254 const char *name
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
255 C_ARGS:
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
256 account, name
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
257
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
258 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
259 purple_im_conversation_set_icon(im, icon)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
260 Purple::IMConversation im
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
261 Purple::Buddy::Icon icon
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
262
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
263 Purple::Buddy::Icon
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
264 purple_im_conversation_get_icon(im)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
265 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
266
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
267 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
268 purple_im_conversation_set_typing_state(im, state)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
269 Purple::IMConversation im
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
270 Purple::IMConversation::TypingState state
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
271
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
272 Purple::IMConversation::TypingState
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
273 purple_im_conversation_get_typing_state(im)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
274 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
275
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
276 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
277 purple_im_conversation_start_typing_timeout(im, timeout)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
278 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
279 int timeout
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
280
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
281 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
282 purple_im_conversation_stop_typing_timeout(im)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
283 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
284
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
285 guint
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
286 purple_im_conversation_get_typing_timeout(im)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
287 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
288
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
289 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
290 purple_im_conversation_set_type_again(im, val)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
291 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
292 time_t val
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
293
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
294 time_t
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
295 purple_im_conversation_get_type_again(im)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
296 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
297
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
298 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
299 purple_im_conversation_start_send_typed_timeout(im)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
300 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
301
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
302 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
303 purple_im_conversation_stop_send_typed_timeout(im)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
304 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
305
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
306 guint
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
307 purple_im_conversation_get_send_typed_timeout(im)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
308 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
309
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
310 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
311 purple_im_conversation_update_typing(im)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
312 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
313
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
314 MODULE = Purple::Conversation PACKAGE = Purple::Conversation::Helper PREFIX = purple_conversation_helper_
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
315 PROTOTYPES: ENABLE
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
316
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
317 gboolean
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
318 purple_conversation_helper_present_error(who, account, what)
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
319 const char *who
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
320 Purple::Account account
12819
50f53c5e6657 [gaim-migrate @ 15167]
Etan Reisner <deryni@pidgin.im>
parents: 12364
diff changeset
321 const char *what
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
322
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
323 MODULE = Purple::Conversation PACKAGE = Purple::Conversation PREFIX = purple_conversation_
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
324 PROTOTYPES: ENABLE
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
325
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
326 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
327 purple_conversation_custom_smiley_close(conv, smile)
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
328 Purple::Conversation conv
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
329 const char *smile
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
330
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
331 MODULE = Purple::Conversation PACKAGE = Purple::ChatConversation PREFIX = purple_chat_conversation_
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
332 PROTOTYPES: ENABLE
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
333
34632
ebe6b2a60305 Changed all arguments and return types of Chat and IMs to PurpleChatConversation and PurpleIMConversation.
Ankit Vani <a@nevitus.org>
parents: 34621
diff changeset
334 Purple::ChatConversation
34609
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
335 purple_chat_conversation_new(class, account, name)
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
336 Purple::Account account
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
337 const char *name
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
338 C_ARGS:
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
339 account, name
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
340
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
341 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
342 purple_chat_conversation_get_users(chat)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
343 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
344 PREINIT:
18122
9bf9970c1b6a disapproval of revision '2d8ea56b90971e7851442d96b7d74ecb4f052126'
Richard Laager <rlaager@pidgin.im>
parents: 18121
diff changeset
345 GList *l;
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
346 PPCODE:
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
347 for (l = purple_chat_conversation_get_users(chat); l != NULL; l = l->next) {
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
348 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::ListEntry")));
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
349 }
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
350
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
351 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
352 purple_chat_conversation_ignore(chat, name)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
353 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
354 const char *name
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
355
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
356 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
357 purple_chat_conversation_unignore(chat, name)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
358 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
359 const char *name
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
360
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
361 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
362 purple_chat_conversation_set_ignored(chat, ignored)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
363 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
364 SV * ignored
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
365 PREINIT:
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
366 GList *l, *t_GL;
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
367 int i, t_len;
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
368 PPCODE:
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
369 t_GL = NULL;
25112
4e9dba9e28e6 disapproval of revision '2d9389f32256ca757b17d7cabe9d9beebce0d311'
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25106
diff changeset
370 t_len = av_len((AV *)SvRV(ignored));
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
371
25107
bd102c539600 Tweak a few for loop conditions in the Perl bindings per Etan's suggestion.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25106
diff changeset
372 for (i = 0; i <= t_len; i++)
23980
a38cbb35eecf Some cleanup and a couple leak fixes.
Daniel Atallah <datallah@pidgin.im>
parents: 21737
diff changeset
373 t_GL = g_list_append(t_GL, SvPVutf8_nolen(*av_fetch((AV *)SvRV(ignored), i, 0)));
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
374
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
375 for (l = purple_chat_conversation_set_ignored(chat, t_GL); l != NULL; l = l->next) {
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
376 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::ListEntry")));
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
377 }
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
378
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
379 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
380 purple_chat_conversation_get_ignored(chat)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
381 Purple::ChatConversation chat
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
382 PREINIT:
18122
9bf9970c1b6a disapproval of revision '2d8ea56b90971e7851442d96b7d74ecb4f052126'
Richard Laager <rlaager@pidgin.im>
parents: 18121
diff changeset
383 GList *l;
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
384 PPCODE:
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
385 for (l = purple_chat_conversation_get_ignored(chat); l != NULL; l = l->next) {
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
386 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::ListEntry")));
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
387 }
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
388
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
389 const char *
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
390 purple_chat_conversation_get_topic(chat)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
391 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
392
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
393 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
394 purple_chat_conversation_set_id(chat, id)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
395 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
396 int id
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
397
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
398 int
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
399 purple_chat_conversation_get_id(chat)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
400 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
401
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
402 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
403 purple_chat_conversation_add_users(chat, users, extra_msgs, flags, new_arrivals)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
404 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
405 SV * users
11456
ed9863eb788f [gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents: 11290
diff changeset
406 SV * extra_msgs
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
407 SV * flags
11456
ed9863eb788f [gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents: 11290
diff changeset
408 gboolean new_arrivals
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
409 PREINIT:
11456
ed9863eb788f [gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents: 11290
diff changeset
410 GList *t_GL_users, *t_GL_extra_msgs, *t_GL_flags;
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
411 int i, t_len;
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
412 PPCODE:
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
413 t_GL_users = NULL;
25112
4e9dba9e28e6 disapproval of revision '2d9389f32256ca757b17d7cabe9d9beebce0d311'
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25106
diff changeset
414 t_len = av_len((AV *)SvRV(users));
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
415
25107
bd102c539600 Tweak a few for loop conditions in the Perl bindings per Etan's suggestion.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25106
diff changeset
416 for (i = 0; i <= t_len; i++)
23980
a38cbb35eecf Some cleanup and a couple leak fixes.
Daniel Atallah <datallah@pidgin.im>
parents: 21737
diff changeset
417 t_GL_users = g_list_append(t_GL_users, SvPVutf8_nolen(*av_fetch((AV *)SvRV(users), i, 0)));
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
418
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
419 t_GL_flags = NULL;
25112
4e9dba9e28e6 disapproval of revision '2d9389f32256ca757b17d7cabe9d9beebce0d311'
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25106
diff changeset
420 t_len = av_len((AV *)SvRV(flags));
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
421
25107
bd102c539600 Tweak a few for loop conditions in the Perl bindings per Etan's suggestion.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25106
diff changeset
422 for (i = 0; i <= t_len; i++)
23980
a38cbb35eecf Some cleanup and a couple leak fixes.
Daniel Atallah <datallah@pidgin.im>
parents: 21737
diff changeset
423 t_GL_flags = g_list_append(t_GL_flags, SvPVutf8_nolen(*av_fetch((AV *)SvRV(flags), i, 0)));
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
424
11456
ed9863eb788f [gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents: 11290
diff changeset
425 t_GL_extra_msgs = NULL;
25112
4e9dba9e28e6 disapproval of revision '2d9389f32256ca757b17d7cabe9d9beebce0d311'
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25106
diff changeset
426 t_len = av_len((AV *)SvRV(extra_msgs));
11456
ed9863eb788f [gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents: 11290
diff changeset
427
25107
bd102c539600 Tweak a few for loop conditions in the Perl bindings per Etan's suggestion.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25106
diff changeset
428 for (i = 0; i <= t_len; i++)
23980
a38cbb35eecf Some cleanup and a couple leak fixes.
Daniel Atallah <datallah@pidgin.im>
parents: 21737
diff changeset
429 t_GL_extra_msgs = g_list_append(t_GL_extra_msgs, SvPVutf8_nolen(*av_fetch((AV *)SvRV(extra_msgs), i, 0)));
11456
ed9863eb788f [gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents: 11290
diff changeset
430
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
431 purple_chat_conversation_add_users(chat, t_GL_users, t_GL_extra_msgs, t_GL_flags, new_arrivals);
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
432
21737
fa92350ed598 applied changes from 8d953d5714cb202c5fa66fda1b0f31f01a969622
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 18282
diff changeset
433 g_list_free(t_GL_users);
fa92350ed598 applied changes from 8d953d5714cb202c5fa66fda1b0f31f01a969622
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 18282
diff changeset
434 g_list_free(t_GL_extra_msgs);
fa92350ed598 applied changes from 8d953d5714cb202c5fa66fda1b0f31f01a969622
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 18282
diff changeset
435 g_list_free(t_GL_flags);
fa92350ed598 applied changes from 8d953d5714cb202c5fa66fda1b0f31f01a969622
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 18282
diff changeset
436
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
437 gboolean
34652
65a6bfb86d43 Updated libpurple plugins with the API changes
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
438 purple_chat_conversation_has_user(chat, user)
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
439 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
440 const char * user
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
441
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
442 void purple_chat_conversation_clear_users(chat)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
443 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
444
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
445 void purple_chat_conversation_set_nick(chat, nick)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
446 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
447 const char * nick
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
448
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
449 const char *
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
450 purple_chat_conversation_get_nick(chat)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
451 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
452
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
453 void purple_chat_conversation_leave(chat)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
454 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
455
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
456 gboolean purple_chat_conversation_has_left(chat)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
457 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
458
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
459 Purple::ChatConversation::Buddy
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
460 purple_chat_conversation_find_buddy(chat, name)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
461 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
462 const char *name
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
463
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
464 const char *
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
465 purple_chat_conversation_buddy_get_name(cb)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
466 Purple::ChatConversation::Buddy cb

mercurial