annotate plugins/signals-test.c @ 11274:67a929d50cfe

[gaim-migrate @ 13459] commit the make dist changes to po files, as otherwise it takes 15 minutes to process them (and a minute amount of time after the first attempt) committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 15 Aug 2005 16:22:25 +0000
parents bb0d7b719af2
children 920a37a4c1be
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
1 /*
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
2 * Signals test plugin.
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
3 *
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
4 * Copyright (C) 2003 Christian Hammond.
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
5 *
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
6 * This program is free software; you can redistribute it and/or
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
7 * modify it under the terms of the GNU General Public License as
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
8 * published by the Free Software Foundation; either version 2 of the
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
9 * License, or (at your option) any later version.
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
10 *
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
11 * This program is distributed in the hope that it will be useful, but
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
14 * General Public License for more details.
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
15 *
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
16 * You should have received a copy of the GNU General Public License
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
17 * along with this program; if not, write to the Free Software
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
19 * 02111-1307, USA.
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
20 */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
21 #define SIGNAL_TEST_PLUGIN_ID "core-signals-test"
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
22
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
23 #include <stdio.h>
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
24
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
25 #include "internal.h"
10684
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
26 #include "cipher.h"
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
27 #include "connection.h"
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
28 #include "conversation.h"
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
29 #include "core.h"
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
30 #include "debug.h"
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
31 #include "signals.h"
9954
a9fb4493ae22 [gaim-migrate @ 10851]
Nathan Walp <nwalp@pidgin.im>
parents: 9587
diff changeset
32 #include "version.h"
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
33
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
34 /**************************************************************************
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
35 * Account subsystem signal callbacks
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
36 **************************************************************************/
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
37 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
38 account_connecting_cb(GaimAccount *account, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
39 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
40 gaim_debug_misc("signals test", "account-connecting (%s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
41 gaim_account_get_username(account));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
42 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
43
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
44 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
45 account_away_cb(GaimAccount *account, const char *state,
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
46 const char *message, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
47 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
48 gaim_debug_misc("signals test", "account-away (%s, %s, %s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
49 gaim_account_get_username(account), state, message);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
50 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
51
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
52 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
53 account_setting_info_cb(GaimAccount *account, const char *info, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
54 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
55 gaim_debug_misc("signals test", "account-setting-info (%s, %s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
56 gaim_account_get_username(account), info);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
57 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
58
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
59 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
60 account_set_info_cb(GaimAccount *account, const char *info, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
61 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
62 gaim_debug_misc("signals test", "account-set-info (%s, %s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
63 gaim_account_get_username(account), info);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
64 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
65
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
66 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
67 account_warned_cb(GaimAccount *account, const char *warner, int level,
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
68 void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
69 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
70 gaim_debug_misc("signals test", "account-warned (%s, %s, %d)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
71 gaim_account_get_username(account), warner, level);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
72 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
73
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
74 /**************************************************************************
10934
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
75 * Buddy Icons signal callbacks
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
76 **************************************************************************/
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
77 static void
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
78 buddy_icon_cached_cb(GaimBuddyIcon *icon, GaimBuddy *buddy,
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
79 const char *filename, const char *old_icon)
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
80 {
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
81 gaim_debug_misc("signals test", "buddy icon cached (%s, %s, %s)\n",
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
82 gaim_buddy_get_name(buddy), filename, old_icon);
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
83 }
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
84
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
85 /**************************************************************************
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
86 * Buddy List subsystem signal callbacks
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
87 **************************************************************************/
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
88 static void
7009
d77e99c55b40 [gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents: 6509
diff changeset
89 buddy_away_cb(GaimBuddy *buddy, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
90 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
91 gaim_debug_misc("signals test", "buddy-away (%s)\n", buddy->name);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
92 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
93
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
94 static void
7009
d77e99c55b40 [gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents: 6509
diff changeset
95 buddy_back_cb(GaimBuddy *buddy, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
96 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
97 gaim_debug_misc("signals test", "buddy-back (%s)\n", buddy->name);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
98 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
99
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
100 static void
7009
d77e99c55b40 [gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents: 6509
diff changeset
101 buddy_idle_cb(GaimBuddy *buddy, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
102 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
103 gaim_debug_misc("signals test", "buddy-idle (%s)\n", buddy->name);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
104 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
105
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
106 static void
7009
d77e99c55b40 [gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents: 6509
diff changeset
107 buddy_unidle_cb(GaimBuddy *buddy, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
108 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
109 gaim_debug_misc("signals test", "buddy-unidle (%s)\n", buddy->name);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
110 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
111
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
112 static void
7009
d77e99c55b40 [gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents: 6509
diff changeset
113 buddy_signed_on_cb(GaimBuddy *buddy, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
114 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
115 gaim_debug_misc("signals test", "buddy-signed-on (%s)\n", buddy->name);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
116 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
117
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
118 static void
7009
d77e99c55b40 [gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents: 6509
diff changeset
119 buddy_signed_off_cb(GaimBuddy *buddy, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
120 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
121 gaim_debug_misc("signals test", "buddy-signed-off (%s)\n", buddy->name);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
122 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
123
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
124 static void
9051
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
125 blist_node_extended_menu_cb(GaimBlistNode *node, void *data)
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
126 {
9051
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
127 GaimContact *p = (GaimContact *)node;
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
128 GaimBuddy *b = (GaimBuddy *)node;
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
129 GaimChat *c = (GaimChat *)node;
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
130 GaimGroup *g = (GaimGroup *)node;
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
131
9051
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
132 if (GAIM_BLIST_NODE_IS_CONTACT(node))
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
133 gaim_debug_misc("signals test", "blist-node-extended-menu (Contact: %s)\n", p->alias);
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
134 else if (GAIM_BLIST_NODE_IS_BUDDY(node))
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
135 gaim_debug_misc("signals test", "blist-node-extended-menu (Buddy: %s)\n", b->name);
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
136 else if (GAIM_BLIST_NODE_IS_CHAT(node))
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
137 gaim_debug_misc("signals test", "blist-node-extended-menu (Chat: %s)\n", c->alias);
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
138 else if (GAIM_BLIST_NODE_IS_GROUP(node))
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
139 gaim_debug_misc("signals test", "blist-node-extended-menu (Group: %s)\n", g->name);
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
140 else
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
141 gaim_debug_misc("signals test", "blist-node-extended-menu (UNKNOWN: %d)\n", node->type);
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
142
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
143 }
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
144
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
145
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
146 /**************************************************************************
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
147 * Connection subsystem signal callbacks
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
148 **************************************************************************/
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
149 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
150 signing_on_cb(GaimConnection *gc, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
151 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
152 gaim_debug_misc("signals test", "signing-on (%s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
153 gaim_account_get_username(gaim_connection_get_account(gc)));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
154 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
155
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
156 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
157 signed_on_cb(GaimConnection *gc, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
158 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
159 gaim_debug_misc("signals test", "signed-on (%s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
160 gaim_account_get_username(gaim_connection_get_account(gc)));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
161 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
162
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
163 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
164 signing_off_cb(GaimConnection *gc, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
165 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
166 gaim_debug_misc("signals test", "signing-off (%s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
167 gaim_account_get_username(gaim_connection_get_account(gc)));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
168 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
169
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
170 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
171 signed_off_cb(GaimConnection *gc, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
172 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
173 gaim_debug_misc("signals test", "signed-off (%s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
174 gaim_account_get_username(gaim_connection_get_account(gc)));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
175 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
176
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
177 /**************************************************************************
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
178 * Conversation subsystem signal callbacks
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
179 **************************************************************************/
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
180 static gboolean
7503
798e5dbb072f [gaim-migrate @ 8116]
Luke Schierer <lschiere@pidgin.im>
parents: 7009
diff changeset
181 displaying_im_msg_cb(GaimAccount *account, GaimConversation *conv,
798e5dbb072f [gaim-migrate @ 8116]
Luke Schierer <lschiere@pidgin.im>
parents: 7009
diff changeset
182 char **buffer, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
183 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
184 gaim_debug_misc("signals test", "displaying-im-msg (%s, %s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
185 gaim_conversation_get_name(conv), *buffer);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
186
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
187 return FALSE;
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
188 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
189
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
190 static void
9051
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
191 displayed_im_msg_cb(GaimAccount *account, GaimConversation *conv, const char *buffer, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
192 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
193 gaim_debug_misc("signals test", "displayed-im-msg (%s, %s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
194 gaim_conversation_get_name(conv), buffer);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
195 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
196
9051
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
197 static gboolean
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
198 writing_im_msg_cb(GaimAccount *account, GaimConversation *conv, char **buffer, void *data)
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
199 {
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
200 gaim_debug_misc("signals test", "writing-im-msg (%s, %s, %s)\n",
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
201 gaim_account_get_username(account), gaim_conversation_get_name(conv), *buffer);
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
202
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
203 return FALSE;
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
204
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
205 }
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
206
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
207 static void
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
208 wrote_im_msg_cb(GaimAccount *account, GaimConversation *conv, const char *buffer, void *data)
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
209 {
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
210 gaim_debug_misc("signals test", "wrote-im-msg (%s, %s, %s)\n",
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
211 gaim_account_get_username(account), gaim_conversation_get_name(conv), buffer);
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
212 }
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
213
7503
798e5dbb072f [gaim-migrate @ 8116]
Luke Schierer <lschiere@pidgin.im>
parents: 7009
diff changeset
214 static void
6509
e74e378e86bf [gaim-migrate @ 7026]
Ethan Blanton <elb@pidgin.im>
parents: 6489
diff changeset
215 sending_im_msg_cb(GaimAccount *account, char *recipient, char **buffer, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
216 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
217 gaim_debug_misc("signals test", "sending-im-msg (%s, %s, %s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
218 gaim_account_get_username(account), recipient, *buffer);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
219
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
220 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
221
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
222 static void
6509
e74e378e86bf [gaim-migrate @ 7026]
Ethan Blanton <elb@pidgin.im>
parents: 6489
diff changeset
223 sent_im_msg_cb(GaimAccount *account, const char *recipient, const char *buffer, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
224 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
225 gaim_debug_misc("signals test", "sent-im-msg (%s, %s, %s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
226 gaim_account_get_username(account), recipient, buffer);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
227 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
228
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
229 static gboolean
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
230 receiving_im_msg_cb(GaimAccount *account, char **sender, char **buffer,
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
231 GaimConversation *conv, int *flags, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
232 {
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
233 gaim_debug_misc("signals test", "receiving-im-msg (%s, %s, %s, %s, %d)\n",
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
234 gaim_account_get_username(account), *sender, *buffer,
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
235 gaim_conversation_get_name(conv), *flags);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
236
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
237 return FALSE;
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
238 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
239
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
240 static void
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
241 received_im_msg_cb(GaimAccount *account, char *sender, char *buffer,
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
242 GaimConversation *conv, int flags, void *data)
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
243 {
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
244 gaim_debug_misc("signals test", "received-im-msg (%s, %s, %s, %s, %d)\n",
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
245 gaim_account_get_username(account), sender, buffer,
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
246 gaim_conversation_get_name(conv), flags);
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
247 }
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
248
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
249 static gboolean
7503
798e5dbb072f [gaim-migrate @ 8116]
Luke Schierer <lschiere@pidgin.im>
parents: 7009
diff changeset
250 displaying_chat_msg_cb(GaimAccount *account, GaimConversation *conv,
798e5dbb072f [gaim-migrate @ 8116]
Luke Schierer <lschiere@pidgin.im>
parents: 7009
diff changeset
251 char **buffer, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
252 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
253 gaim_debug_misc("signals test", "displaying-chat-msg (%s, %s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
254 gaim_conversation_get_name(conv), *buffer);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
255
6486
fab81e4b885c [gaim-migrate @ 7000]
Christian Hammond <chipx86@chipx86.com>
parents: 6485
diff changeset
256 return FALSE;
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
257 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
258
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
259 static void
9051
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
260 displayed_chat_msg_cb(GaimAccount *account, GaimConversation *conv, const char *buffer, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
261 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
262 gaim_debug_misc("signals test", "displayed-chat-msg (%s, %s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
263 gaim_conversation_get_name(conv), buffer);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
264 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
265
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
266 static gboolean
9051
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
267 writing_chat_msg_cb(GaimAccount *account, GaimConversation *conv,
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
268 char **buffer, void *data)
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
269 {
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
270 gaim_debug_misc("signals test", "writing-chat-msg (%s, %s)\n",
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
271 gaim_conversation_get_name(conv), *buffer);
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
272
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
273 return FALSE;
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
274 }
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
275
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
276 static void
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
277 wrote_chat_msg_cb(GaimAccount *account, GaimConversation *conv, const char *buffer, void *data)
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
278 {
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
279 gaim_debug_misc("signals test", "wrote-chat-msg (%s, %s)\n",
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
280 gaim_conversation_get_name(conv), buffer);
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
281 }
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
282
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
283 static gboolean
6509
e74e378e86bf [gaim-migrate @ 7026]
Ethan Blanton <elb@pidgin.im>
parents: 6489
diff changeset
284 sending_chat_msg_cb(GaimAccount *account, char **buffer, int id, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
285 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
286 gaim_debug_misc("signals test", "sending-chat-msg (%s, %s, %d)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
287 gaim_account_get_username(account), *buffer, id);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
288
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
289 return FALSE;
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
290 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
291
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
292 static void
6509
e74e378e86bf [gaim-migrate @ 7026]
Ethan Blanton <elb@pidgin.im>
parents: 6489
diff changeset
293 sent_chat_msg_cb(GaimAccount *account, const char *buffer, int id, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
294 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
295 gaim_debug_misc("signals test", "sent-chat-msg (%s, %s, %d)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
296 gaim_account_get_username(account), buffer, id);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
297 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
298
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
299 static gboolean
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
300 receiving_chat_msg_cb(GaimAccount *account, char **sender, char **buffer,
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
301 GaimConversation *chat, int *flags, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
302 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
303 gaim_debug_misc("signals test",
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
304 "receiving-chat-msg (%s, %s, %s, %s, %d)\n",
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
305 gaim_account_get_username(account), *sender, *buffer,
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
306 gaim_conversation_get_name(chat), *flags);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
307
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
308 return FALSE;
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
309 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
310
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
311 static void
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
312 received_chat_msg_cb(GaimAccount *account, char *sender, char *buffer,
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
313 GaimConversation *chat, int flags, void *data)
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
314 {
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
315 gaim_debug_misc("signals test",
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
316 "received-chat-msg (%s, %s, %s, %s, %d)\n",
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
317 gaim_account_get_username(account), sender, buffer,
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
318 gaim_conversation_get_name(chat), flags);
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
319 }
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
320
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
321 static void
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
322 conversation_switching_cb(GaimConversation *old_conv,
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
323 GaimConversation *new_conv, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
324 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
325 gaim_debug_misc("signals test", "conversation-switching (%s, %s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
326 gaim_conversation_get_name(old_conv),
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
327 gaim_conversation_get_name(new_conv));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
328 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
329
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
330 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
331 conversation_switched_cb(GaimConversation *old_conv,
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
332 GaimConversation *new_conv, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
333 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
334 gaim_debug_misc("signals test", "conversation-switched (%s, %s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
335 gaim_conversation_get_name(old_conv),
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
336 gaim_conversation_get_name(new_conv));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
337 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
338
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
339 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
340 conversation_created_cb(GaimConversation *conv, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
341 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
342 gaim_debug_misc("signals test", "conversation-created (%s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
343 gaim_conversation_get_name(conv));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
344 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
345
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
346 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
347 deleting_conversation_cb(GaimConversation *conv, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
348 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
349 gaim_debug_misc("signals test", "deleting-conversation (%s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
350 gaim_conversation_get_name(conv));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
351 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
352
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
353 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
354 buddy_typing_cb(GaimConversation *conv, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
355 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
356 gaim_debug_misc("signals test", "buddy-typing (%s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
357 gaim_conversation_get_name(conv));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
358 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
359
9587
5e1c76f3d232 [gaim-migrate @ 10430]
Luke Schierer <lschiere@pidgin.im>
parents: 9554
diff changeset
360 static gboolean
9554
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
361 chat_buddy_joining_cb(GaimConversation *conv, const char *user,
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
362 GaimConvChatBuddyFlags flags, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
363 {
9554
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
364 gaim_debug_misc("signals test", "chat-buddy-joining (%s, %s, %d)\n",
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
365 gaim_conversation_get_name(conv), user, flags);
9587
5e1c76f3d232 [gaim-migrate @ 10430]
Luke Schierer <lschiere@pidgin.im>
parents: 9554
diff changeset
366
5e1c76f3d232 [gaim-migrate @ 10430]
Luke Schierer <lschiere@pidgin.im>
parents: 9554
diff changeset
367 return FALSE;
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
368 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
369
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
370 static void
9554
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
371 chat_buddy_joined_cb(GaimConversation *conv, const char *user,
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
372 GaimConvChatBuddyFlags flags, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
373 {
9554
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
374 gaim_debug_misc("signals test", "chat-buddy-joined (%s, %s, %d)\n",
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
375 gaim_conversation_get_name(conv), user, flags);
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
376 }
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
377
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
378 static void
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
379 chat_buddy_flags_cb(GaimConversation *conv, const char *user,
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
380 GaimConvChatBuddyFlags oldflags, GaimConvChatBuddyFlags newflags, void *data)
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
381 {
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
382 gaim_debug_misc("signals test", "chat-buddy-flags (%s, %s, %d, %d)\n",
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
383 gaim_conversation_get_name(conv), user, oldflags, newflags);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
384 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
385
9587
5e1c76f3d232 [gaim-migrate @ 10430]
Luke Schierer <lschiere@pidgin.im>
parents: 9554
diff changeset
386 static gboolean
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
387 chat_buddy_leaving_cb(GaimConversation *conv, const char *user,
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
388 const char *reason, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
389 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
390 gaim_debug_misc("signals test", "chat-buddy-leaving (%s, %s, %s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
391 gaim_conversation_get_name(conv), user, reason);
9587
5e1c76f3d232 [gaim-migrate @ 10430]
Luke Schierer <lschiere@pidgin.im>
parents: 9554
diff changeset
392
5e1c76f3d232 [gaim-migrate @ 10430]
Luke Schierer <lschiere@pidgin.im>
parents: 9554
diff changeset
393 return FALSE;
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
394 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
395
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
396 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
397 chat_buddy_left_cb(GaimConversation *conv, const char *user,
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
398 const char *reason, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
399 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
400 gaim_debug_misc("signals test", "chat-buddy-left (%s, %s, %s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
401 gaim_conversation_get_name(conv), user, reason);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
402 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
403
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
404 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
405 chat_inviting_user_cb(GaimConversation *conv, const char *name,
9554
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
406 char **reason, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
407 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
408 gaim_debug_misc("signals test", "chat-inviting-user (%s, %s, %s)\n",
9554
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
409 gaim_conversation_get_name(conv), name, *reason);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
410 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
411
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
412 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
413 chat_invited_user_cb(GaimConversation *conv, const char *name,
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
414 const char *reason, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
415 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
416 gaim_debug_misc("signals test", "chat-invited-user (%s, %s, %s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
417 gaim_conversation_get_name(conv), name, reason);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
418 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
419
11064
e4459e8ccfb5 [gaim-migrate @ 13035]
Richard Laager <rlaager@wiktel.com>
parents: 11033
diff changeset
420 static gint
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
421 chat_invited_cb(GaimAccount *account, const char *inviter,
9514
1fac0336890c [gaim-migrate @ 10341]
Luke Schierer <lschiere@pidgin.im>
parents: 9051
diff changeset
422 const char *room_name, const char *message,
1fac0336890c [gaim-migrate @ 10341]
Luke Schierer <lschiere@pidgin.im>
parents: 9051
diff changeset
423 const GHashTable *components, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
424 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
425 gaim_debug_misc("signals test", "chat-invited (%s, %s, %s, %s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
426 gaim_account_get_username(account), inviter,
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
427 room_name, message);
11064
e4459e8ccfb5 [gaim-migrate @ 13035]
Richard Laager <rlaager@wiktel.com>
parents: 11033
diff changeset
428
e4459e8ccfb5 [gaim-migrate @ 13035]
Richard Laager <rlaager@wiktel.com>
parents: 11033
diff changeset
429 return 0;
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
430 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
431
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
432 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
433 chat_joined_cb(GaimConversation *conv, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
434 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
435 gaim_debug_misc("signals test", "chat-joined (%s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
436 gaim_conversation_get_name(conv));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
437 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
438
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
439 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
440 chat_left_cb(GaimConversation *conv, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
441 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
442 gaim_debug_misc("signals test", "chat-left (%s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
443 gaim_conversation_get_name(conv));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
444 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
445
9517
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
446 static void
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
447 chat_topic_changed_cb(GaimConversation *conv, const char *who,
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
448 const char *topic, void *data)
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
449 {
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
450 gaim_debug_misc("signals test",
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
451 "chat-topic-changed (%s topic changed to: \"%s\" by %s)\n",
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
452 gaim_conversation_get_name(conv), topic,
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
453 (who) ? who : "unknown");
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
454 }
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
455 /**************************************************************************
10684
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
456 * Ciphers signal callbacks
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
457 **************************************************************************/
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
458 static void
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
459 cipher_added_cb(GaimCipher *cipher, void *data) {
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
460 gaim_debug_misc("signals test", "cipher %s added\n",
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
461 gaim_cipher_get_name(cipher));
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
462 }
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
463
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
464 static void
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
465 cipher_removed_cb(GaimCipher *cipher, void *data) {
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
466 gaim_debug_misc("signals test", "cipher %s removed\n",
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
467 gaim_cipher_get_name(cipher));
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
468 }
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
469
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
470 /**************************************************************************
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
471 * Core signal callbacks
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
472 **************************************************************************/
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
473 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
474 quitting_cb(void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
475 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
476 gaim_debug_misc("signals test", "quitting ()\n");
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
477 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
478
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
479 /**************************************************************************
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
480 * Plugin stuff
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
481 **************************************************************************/
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
482 static gboolean
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
483 plugin_load(GaimPlugin *plugin)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
484 {
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
485 void *core_handle = gaim_get_core();
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
486 void *blist_handle = gaim_blist_get_handle();
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
487 void *conn_handle = gaim_connections_get_handle();
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
488 void *conv_handle = gaim_conversations_get_handle();
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
489 void *accounts_handle = gaim_accounts_get_handle();
10684
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
490 void *ciphers_handle = gaim_ciphers_get_handle();
10934
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
491 void *buddy_icons_handle = gaim_buddy_icons_get_handle();
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
492
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
493 /* Accounts subsystem signals */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
494 gaim_signal_connect(accounts_handle, "account-connecting",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
495 plugin, GAIM_CALLBACK(account_connecting_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
496 gaim_signal_connect(accounts_handle, "account-away",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
497 plugin, GAIM_CALLBACK(account_away_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
498 gaim_signal_connect(accounts_handle, "account-setting-info",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
499 plugin, GAIM_CALLBACK(account_setting_info_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
500 gaim_signal_connect(accounts_handle, "account-set-info",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
501 plugin, GAIM_CALLBACK(account_set_info_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
502 gaim_signal_connect(accounts_handle, "account-warned",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
503 plugin, GAIM_CALLBACK(account_warned_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
504
10934
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
505 /* Buddy Icon subsystem signals */
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
506 gaim_signal_connect(buddy_icons_handle, "buddy-icon-cached",
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
507 plugin, GAIM_CALLBACK(buddy_icon_cached_cb), NULL);
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
508
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
509 /* Buddy List subsystem signals */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
510 gaim_signal_connect(blist_handle, "buddy-away",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
511 plugin, GAIM_CALLBACK(buddy_away_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
512 gaim_signal_connect(blist_handle, "buddy-back",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
513 plugin, GAIM_CALLBACK(buddy_back_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
514 gaim_signal_connect(blist_handle, "buddy-idle",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
515 plugin, GAIM_CALLBACK(buddy_idle_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
516 gaim_signal_connect(blist_handle, "buddy-unidle",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
517 plugin, GAIM_CALLBACK(buddy_unidle_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
518 gaim_signal_connect(blist_handle, "buddy-signed-on",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
519 plugin, GAIM_CALLBACK(buddy_signed_on_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
520 gaim_signal_connect(blist_handle, "buddy-signed-off",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
521 plugin, GAIM_CALLBACK(buddy_signed_off_cb), NULL);
9051
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
522 gaim_signal_connect(blist_handle, "blist-node-extended-menu",
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
523 plugin, GAIM_CALLBACK(blist_node_extended_menu_cb), NULL);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
524
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
525 /* Connection subsystem signals */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
526 gaim_signal_connect(conn_handle, "signing-on",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
527 plugin, GAIM_CALLBACK(signing_on_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
528 gaim_signal_connect(conn_handle, "signed-on",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
529 plugin, GAIM_CALLBACK(signed_on_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
530 gaim_signal_connect(conn_handle, "signing-off",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
531 plugin, GAIM_CALLBACK(signing_off_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
532 gaim_signal_connect(conn_handle, "signed-off",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
533 plugin, GAIM_CALLBACK(signed_off_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
534
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
535 /* Conversations subsystem signals */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
536 gaim_signal_connect(conv_handle, "displaying-im-msg",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
537 plugin, GAIM_CALLBACK(displaying_im_msg_cb), NULL);
6489
aefe4067d3a3 [gaim-migrate @ 7003]
Nathan Walp <nwalp@pidgin.im>
parents: 6486
diff changeset
538 gaim_signal_connect(conv_handle, "displayed-im-msg",
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
539 plugin, GAIM_CALLBACK(displayed_im_msg_cb), NULL);
9051
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
540 gaim_signal_connect(conv_handle, "writing-im-msg",
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
541 plugin, GAIM_CALLBACK(writing_im_msg_cb), NULL);
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
542 gaim_signal_connect(conv_handle, "wrote-im-msg",
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
543 plugin, GAIM_CALLBACK(wrote_im_msg_cb), NULL);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
544 gaim_signal_connect(conv_handle, "sending-im-msg",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
545 plugin, GAIM_CALLBACK(sending_im_msg_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
546 gaim_signal_connect(conv_handle, "sent-im-msg",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
547 plugin, GAIM_CALLBACK(sent_im_msg_cb), NULL);
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
548 gaim_signal_connect(conv_handle, "receiving-im-msg",
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
549 plugin, GAIM_CALLBACK(receiving_im_msg_cb), NULL);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
550 gaim_signal_connect(conv_handle, "received-im-msg",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
551 plugin, GAIM_CALLBACK(received_im_msg_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
552 gaim_signal_connect(conv_handle, "displaying-chat-msg",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
553 plugin, GAIM_CALLBACK(displaying_chat_msg_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
554 gaim_signal_connect(conv_handle, "displayed-chat-msg",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
555 plugin, GAIM_CALLBACK(displayed_chat_msg_cb), NULL);
9051
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
556 gaim_signal_connect(conv_handle, "writing-chat-msg",
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
557 plugin, GAIM_CALLBACK(writing_chat_msg_cb), NULL);
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
558 gaim_signal_connect(conv_handle, "wrote-chat-msg",
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
559 plugin, GAIM_CALLBACK(wrote_chat_msg_cb), NULL);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
560 gaim_signal_connect(conv_handle, "sending-chat-msg",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
561 plugin, GAIM_CALLBACK(sending_chat_msg_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
562 gaim_signal_connect(conv_handle, "sent-chat-msg",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
563 plugin, GAIM_CALLBACK(sent_chat_msg_cb), NULL);
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
564 gaim_signal_connect(conv_handle, "receiving-chat-msg",
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
565 plugin, GAIM_CALLBACK(receiving_chat_msg_cb), NULL);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
566 gaim_signal_connect(conv_handle, "received-chat-msg",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
567 plugin, GAIM_CALLBACK(received_chat_msg_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
568 gaim_signal_connect(conv_handle, "conversation-switching",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
569 plugin, GAIM_CALLBACK(conversation_switching_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
570 gaim_signal_connect(conv_handle, "conversation-switched",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
571 plugin, GAIM_CALLBACK(conversation_switched_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
572 gaim_signal_connect(conv_handle, "conversation-created",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
573 plugin, GAIM_CALLBACK(conversation_created_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
574 gaim_signal_connect(conv_handle, "deleting-conversation",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
575 plugin, GAIM_CALLBACK(deleting_conversation_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
576 gaim_signal_connect(conv_handle, "buddy-typing",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
577 plugin, GAIM_CALLBACK(buddy_typing_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
578 gaim_signal_connect(conv_handle, "chat-buddy-joining",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
579 plugin, GAIM_CALLBACK(chat_buddy_joining_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
580 gaim_signal_connect(conv_handle, "chat-buddy-joined",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
581 plugin, GAIM_CALLBACK(chat_buddy_joined_cb), NULL);
9554
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
582 gaim_signal_connect(conv_handle, "chat-buddy-flags",
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
583 plugin, GAIM_CALLBACK(chat_buddy_flags_cb), NULL);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
584 gaim_signal_connect(conv_handle, "chat-buddy-leaving",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
585 plugin, GAIM_CALLBACK(chat_buddy_leaving_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
586 gaim_signal_connect(conv_handle, "chat-buddy-left",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
587 plugin, GAIM_CALLBACK(chat_buddy_left_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
588 gaim_signal_connect(conv_handle, "chat-inviting-user",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
589 plugin, GAIM_CALLBACK(chat_inviting_user_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
590 gaim_signal_connect(conv_handle, "chat-invited-user",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
591 plugin, GAIM_CALLBACK(chat_invited_user_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
592 gaim_signal_connect(conv_handle, "chat-invited",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
593 plugin, GAIM_CALLBACK(chat_invited_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
594 gaim_signal_connect(conv_handle, "chat-joined",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
595 plugin, GAIM_CALLBACK(chat_joined_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
596 gaim_signal_connect(conv_handle, "chat-left",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
597 plugin, GAIM_CALLBACK(chat_left_cb), NULL);
9517
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
598 gaim_signal_connect(conv_handle, "chat-topic-changed",
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
599 plugin, GAIM_CALLBACK(chat_topic_changed_cb), NULL);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
600
10684
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
601 /* Ciphers signals */
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
602 gaim_signal_connect(ciphers_handle, "cipher-added",
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
603 plugin, GAIM_CALLBACK(cipher_added_cb), NULL);
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
604 gaim_signal_connect(ciphers_handle, "cipher-removed",
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
605 plugin, GAIM_CALLBACK(cipher_removed_cb), NULL);
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
606
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
607 /* Core signals */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
608 gaim_signal_connect(core_handle, "quitting",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
609 plugin, GAIM_CALLBACK(quitting_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
610
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
611 return TRUE;
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
612 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
613
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
614 static GaimPluginInfo info =
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
615 {
9954
a9fb4493ae22 [gaim-migrate @ 10851]
Nathan Walp <nwalp@pidgin.im>
parents: 9587
diff changeset
616 GAIM_PLUGIN_MAGIC,
a9fb4493ae22 [gaim-migrate @ 10851]
Nathan Walp <nwalp@pidgin.im>
parents: 9587
diff changeset
617 GAIM_MAJOR_VERSION,
a9fb4493ae22 [gaim-migrate @ 10851]
Nathan Walp <nwalp@pidgin.im>
parents: 9587
diff changeset
618 GAIM_MINOR_VERSION,
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
619 GAIM_PLUGIN_STANDARD, /**< type */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
620 NULL, /**< ui_requirement */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
621 0, /**< flags */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
622 NULL, /**< dependencies */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
623 GAIM_PRIORITY_DEFAULT, /**< priority */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
624
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
625 SIGNAL_TEST_PLUGIN_ID, /**< id */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
626 N_("Signals Test"), /**< name */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
627 VERSION, /**< version */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
628 /** summary */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
629 N_("Test to see that all signals are working properly."),
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
630 /** description */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
631 N_("Test to see that all signals are working properly."),
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
632 "Christian Hammond <chipx86@gnupdate.org>", /**< author */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
633 GAIM_WEBSITE, /**< homepage */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
634
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
635 plugin_load, /**< load */
11256
bb0d7b719af2 [gaim-migrate @ 13430]
Gary Kramlich <grim@reaperworld.com>
parents: 11064
diff changeset
636 NULL, /**< unload */
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
637 NULL, /**< destroy */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
638
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
639 NULL, /**< ui_info */
8993
294ae6548d4e [gaim-migrate @ 9768]
Luke Schierer <lschiere@pidgin.im>
parents: 8749
diff changeset
640 NULL, /**< extra_info */
294ae6548d4e [gaim-migrate @ 9768]
Luke Schierer <lschiere@pidgin.im>
parents: 8749
diff changeset
641 NULL,
294ae6548d4e [gaim-migrate @ 9768]
Luke Schierer <lschiere@pidgin.im>
parents: 8749
diff changeset
642 NULL
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
643 };
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
644
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
645 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
646 init_plugin(GaimPlugin *plugin)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
647 {
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
648 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
649
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
650 GAIM_INIT_PLUGIN(signalstest, init_plugin, info)