annotate plugins/signals-test.c @ 13157:3a97c65196d1

[gaim-migrate @ 15520] We're supposed to use g_fopen everywhere, right? committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 07 Feb 2006 09:50:55 +0000
parents 49b2347863b2
children f09c6e8df82c
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"
11281
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
31 #include "ft.h"
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
32 #include "signals.h"
9954
a9fb4493ae22 [gaim-migrate @ 10851]
Nathan Walp <nwalp@pidgin.im>
parents: 9587
diff changeset
33 #include "version.h"
11628
e1e47878d0ed [gaim-migrate @ 13903]
Tim Ringenbach <marv@pidgin.im>
parents: 11516
diff changeset
34 #include "status.h"
12291
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
35 #include "sound.h"
6485
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 /**************************************************************************
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
38 * Account subsystem signal callbacks
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
39 **************************************************************************/
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
40 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
41 account_connecting_cb(GaimAccount *account, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
42 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
43 gaim_debug_misc("signals test", "account-connecting (%s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
44 gaim_account_get_username(account));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
45 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
46
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
47 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
48 account_setting_info_cb(GaimAccount *account, const char *info, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
49 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
50 gaim_debug_misc("signals test", "account-setting-info (%s, %s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
51 gaim_account_get_username(account), info);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
52 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
53
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
54 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
55 account_set_info_cb(GaimAccount *account, const char *info, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
56 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
57 gaim_debug_misc("signals test", "account-set-info (%s, %s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
58 gaim_account_get_username(account), info);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
59 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
60
11628
e1e47878d0ed [gaim-migrate @ 13903]
Tim Ringenbach <marv@pidgin.im>
parents: 11516
diff changeset
61 static void
e1e47878d0ed [gaim-migrate @ 13903]
Tim Ringenbach <marv@pidgin.im>
parents: 11516
diff changeset
62 account_status_changed(GaimAccount *account, GaimStatus *old, GaimStatus *new,
e1e47878d0ed [gaim-migrate @ 13903]
Tim Ringenbach <marv@pidgin.im>
parents: 11516
diff changeset
63 gpointer data)
e1e47878d0ed [gaim-migrate @ 13903]
Tim Ringenbach <marv@pidgin.im>
parents: 11516
diff changeset
64 {
e1e47878d0ed [gaim-migrate @ 13903]
Tim Ringenbach <marv@pidgin.im>
parents: 11516
diff changeset
65 gaim_debug_misc("signals test", "account-status-changed (%s, %s, %s)\n",
e1e47878d0ed [gaim-migrate @ 13903]
Tim Ringenbach <marv@pidgin.im>
parents: 11516
diff changeset
66 gaim_account_get_username(account),
e1e47878d0ed [gaim-migrate @ 13903]
Tim Ringenbach <marv@pidgin.im>
parents: 11516
diff changeset
67 gaim_status_get_name(old),
e1e47878d0ed [gaim-migrate @ 13903]
Tim Ringenbach <marv@pidgin.im>
parents: 11516
diff changeset
68 gaim_status_get_name(new));
e1e47878d0ed [gaim-migrate @ 13903]
Tim Ringenbach <marv@pidgin.im>
parents: 11516
diff changeset
69 }
e1e47878d0ed [gaim-migrate @ 13903]
Tim Ringenbach <marv@pidgin.im>
parents: 11516
diff changeset
70
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
71 /**************************************************************************
10934
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
72 * Buddy Icons signal callbacks
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
73 **************************************************************************/
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
74 static void
12293
ac63b000ed42 [gaim-migrate @ 14597]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12291
diff changeset
75 buddy_icon_changed_cb(GaimBuddy *buddy)
10934
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
76 {
12098
a726740ce86e [gaim-migrate @ 14395]
Richard Laager <rlaager@wiktel.com>
parents: 12097
diff changeset
77 gaim_debug_misc("signals test", "buddy icon changed (%s)\n",
12097
d0662345799b [gaim-migrate @ 14394]
Mark Doliner <mark@kingant.net>
parents: 11935
diff changeset
78 gaim_buddy_get_name(buddy));
10934
185ca25b5c7e [gaim-migrate @ 12717]
Mark Doliner <mark@kingant.net>
parents: 10684
diff changeset
79 }
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 /**************************************************************************
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
82 * Buddy List subsystem signal callbacks
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
83 **************************************************************************/
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
84 static void
11935
cb73483c9f63 [gaim-migrate @ 14226]
Etan Reisner <pidgin@unreliablesource.net>
parents: 11899
diff changeset
85 buddy_status_changed_cb(GaimBuddy *buddy, GaimStatus *old_status,
cb73483c9f63 [gaim-migrate @ 14226]
Etan Reisner <pidgin@unreliablesource.net>
parents: 11899
diff changeset
86 GaimStatus *status, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
87 {
11935
cb73483c9f63 [gaim-migrate @ 14226]
Etan Reisner <pidgin@unreliablesource.net>
parents: 11899
diff changeset
88 gaim_debug_misc("signals test", "buddy-status-changed (%s %s to %s)\n",
cb73483c9f63 [gaim-migrate @ 14226]
Etan Reisner <pidgin@unreliablesource.net>
parents: 11899
diff changeset
89 buddy->name, gaim_status_get_id(old_status),
cb73483c9f63 [gaim-migrate @ 14226]
Etan Reisner <pidgin@unreliablesource.net>
parents: 11899
diff changeset
90 gaim_status_get_id(status));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
91 }
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 static void
11935
cb73483c9f63 [gaim-migrate @ 14226]
Etan Reisner <pidgin@unreliablesource.net>
parents: 11899
diff changeset
94 buddy_idle_changed_cb(GaimBuddy *buddy, gboolean old_idle, gboolean idle,
cb73483c9f63 [gaim-migrate @ 14226]
Etan Reisner <pidgin@unreliablesource.net>
parents: 11899
diff changeset
95 void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
96 {
11935
cb73483c9f63 [gaim-migrate @ 14226]
Etan Reisner <pidgin@unreliablesource.net>
parents: 11899
diff changeset
97 gaim_debug_misc("signals test", "buddy-idle-changed (%s %s)\n",
cb73483c9f63 [gaim-migrate @ 14226]
Etan Reisner <pidgin@unreliablesource.net>
parents: 11899
diff changeset
98 buddy->name, old_idle ? "unidled" : "idled");
6485
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
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
101 static void
7009
d77e99c55b40 [gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents: 6509
diff changeset
102 buddy_signed_on_cb(GaimBuddy *buddy, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
103 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
104 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
105 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
106
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
107 static void
7009
d77e99c55b40 [gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents: 6509
diff changeset
108 buddy_signed_off_cb(GaimBuddy *buddy, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
109 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
110 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
111 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
112
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
113 static void
11454
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
114 buddy_added_cb(GaimBuddy *buddy, void *data)
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
115 {
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
116 gaim_debug_misc("signals test", "buddy_added_cb (%s)\n", gaim_buddy_get_name(buddy));
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
117 }
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
118
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
119 static void
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
120 buddy_removed_cb(GaimBuddy *buddy, void *data)
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
121 {
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
122 gaim_debug_misc("signals test", "buddy_removed_cb (%s)\n", gaim_buddy_get_name(buddy));
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
123 }
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
124
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
125 static void
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
126 blist_node_aliased(GaimBlistNode *node, const char *old_alias)
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
127 {
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
128 GaimContact *p = (GaimContact *)node;
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
129 GaimBuddy *b = (GaimBuddy *)node;
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
130 GaimChat *c = (GaimChat *)node;
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
131 GaimGroup *g = (GaimGroup *)node;
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
132
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
133 if (GAIM_BLIST_NODE_IS_CONTACT(node))
11748
6fa0a37127fd [gaim-migrate @ 14039]
Stu Tomlinson <stu@nosnilmot.com>
parents: 11706
diff changeset
134 gaim_debug_misc("signals test", "blist-node-aliased (Contact: %s, %s)\n", p->alias, old_alias);
11454
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
135 else if (GAIM_BLIST_NODE_IS_BUDDY(node))
11748
6fa0a37127fd [gaim-migrate @ 14039]
Stu Tomlinson <stu@nosnilmot.com>
parents: 11706
diff changeset
136 gaim_debug_misc("signals test", "blist-node-aliased (Buddy: %s, %s)\n", b->name, old_alias);
11454
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
137 else if (GAIM_BLIST_NODE_IS_CHAT(node))
11748
6fa0a37127fd [gaim-migrate @ 14039]
Stu Tomlinson <stu@nosnilmot.com>
parents: 11706
diff changeset
138 gaim_debug_misc("signals test", "blist-node-aliased (Chat: %s, %s)\n", c->alias, old_alias);
11454
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
139 else if (GAIM_BLIST_NODE_IS_GROUP(node))
11748
6fa0a37127fd [gaim-migrate @ 14039]
Stu Tomlinson <stu@nosnilmot.com>
parents: 11706
diff changeset
140 gaim_debug_misc("signals test", "blist-node-aliased (Group: %s, %s)\n", g->name, old_alias);
11454
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
141 else
11748
6fa0a37127fd [gaim-migrate @ 14039]
Stu Tomlinson <stu@nosnilmot.com>
parents: 11706
diff changeset
142 gaim_debug_misc("signals test", "blist-node-aliased (UNKNOWN: %d, %s)\n", node->type, old_alias);
11454
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
143
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
144 }
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
145
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
146 static void
9051
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
147 blist_node_extended_menu_cb(GaimBlistNode *node, void *data)
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
148 {
9051
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
149 GaimContact *p = (GaimContact *)node;
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
150 GaimBuddy *b = (GaimBuddy *)node;
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
151 GaimChat *c = (GaimChat *)node;
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
152 GaimGroup *g = (GaimGroup *)node;
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
153
9051
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
154 if (GAIM_BLIST_NODE_IS_CONTACT(node))
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
155 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
156 else if (GAIM_BLIST_NODE_IS_BUDDY(node))
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
157 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
158 else if (GAIM_BLIST_NODE_IS_CHAT(node))
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
159 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
160 else if (GAIM_BLIST_NODE_IS_GROUP(node))
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
161 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
162 else
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
163 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
164
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
165 }
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
166
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
167
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 * Connection subsystem signal callbacks
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
170 **************************************************************************/
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
171 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
172 signing_on_cb(GaimConnection *gc, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
173 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
174 gaim_debug_misc("signals test", "signing-on (%s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
175 gaim_account_get_username(gaim_connection_get_account(gc)));
6485
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 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
179 signed_on_cb(GaimConnection *gc, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
180 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
181 gaim_debug_misc("signals test", "signed-on (%s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
182 gaim_account_get_username(gaim_connection_get_account(gc)));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
183 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
184
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
185 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
186 signing_off_cb(GaimConnection *gc, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
187 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
188 gaim_debug_misc("signals test", "signing-off (%s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
189 gaim_account_get_username(gaim_connection_get_account(gc)));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
190 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
191
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
192 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
193 signed_off_cb(GaimConnection *gc, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
194 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
195 gaim_debug_misc("signals test", "signed-off (%s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
196 gaim_account_get_username(gaim_connection_get_account(gc)));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
197 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
198
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
199 /**************************************************************************
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
200 * Conversation subsystem signal callbacks
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
201 **************************************************************************/
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
202 static gboolean
9051
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
203 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
204 {
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
205 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
206 gaim_account_get_username(account), gaim_conversation_get_name(conv), *buffer);
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
207
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
208 return FALSE;
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 }
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
211
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
212 static void
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
213 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
214 {
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
215 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
216 gaim_account_get_username(account), gaim_conversation_get_name(conv), buffer);
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
217 }
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
218
7503
798e5dbb072f [gaim-migrate @ 8116]
Luke Schierer <lschiere@pidgin.im>
parents: 7009
diff changeset
219 static void
6509
e74e378e86bf [gaim-migrate @ 7026]
Ethan Blanton <elb@pidgin.im>
parents: 6489
diff changeset
220 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
221 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
222 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
223 gaim_account_get_username(account), recipient, *buffer);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
224
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
225 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
226
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
227 static void
6509
e74e378e86bf [gaim-migrate @ 7026]
Ethan Blanton <elb@pidgin.im>
parents: 6489
diff changeset
228 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
229 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
230 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
231 gaim_account_get_username(account), recipient, buffer);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
232 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
233
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
234 static gboolean
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
235 receiving_im_msg_cb(GaimAccount *account, char **sender, char **buffer,
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
236 GaimConversation *conv, int *flags, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
237 {
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
238 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
239 gaim_account_get_username(account), *sender, *buffer,
11899
0b8b7e59cb4b [gaim-migrate @ 14190]
Stu Tomlinson <stu@nosnilmot.com>
parents: 11748
diff changeset
240 (conv != NULL) ? gaim_conversation_get_name(conv) : "(null)", *flags);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
241
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
242 return FALSE;
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
243 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
244
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
245 static void
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
246 received_im_msg_cb(GaimAccount *account, char *sender, char *buffer,
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
247 GaimConversation *conv, int flags, void *data)
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
248 {
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
249 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
250 gaim_account_get_username(account), sender, buffer,
11899
0b8b7e59cb4b [gaim-migrate @ 14190]
Stu Tomlinson <stu@nosnilmot.com>
parents: 11748
diff changeset
251 (conv != NULL) ? gaim_conversation_get_name(conv) : "(null)", flags);
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
252 }
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
253
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
254 static gboolean
9051
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
255 writing_chat_msg_cb(GaimAccount *account, GaimConversation *conv,
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
256 char **buffer, void *data)
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
257 {
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
258 gaim_debug_misc("signals test", "writing-chat-msg (%s, %s)\n",
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
259 gaim_conversation_get_name(conv), *buffer);
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
260
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
261 return FALSE;
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
262 }
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
263
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
264 static void
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
265 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
266 {
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
267 gaim_debug_misc("signals test", "wrote-chat-msg (%s, %s)\n",
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
268 gaim_conversation_get_name(conv), buffer);
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
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
271 static gboolean
6509
e74e378e86bf [gaim-migrate @ 7026]
Ethan Blanton <elb@pidgin.im>
parents: 6489
diff changeset
272 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
273 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
274 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
275 gaim_account_get_username(account), *buffer, id);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
276
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
277 return FALSE;
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
278 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
279
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
280 static void
6509
e74e378e86bf [gaim-migrate @ 7026]
Ethan Blanton <elb@pidgin.im>
parents: 6489
diff changeset
281 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
282 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
283 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
284 gaim_account_get_username(account), buffer, id);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
285 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
286
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
287 static gboolean
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
288 receiving_chat_msg_cb(GaimAccount *account, char **sender, char **buffer,
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
289 GaimConversation *chat, int *flags, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
290 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
291 gaim_debug_misc("signals test",
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
292 "receiving-chat-msg (%s, %s, %s, %s, %d)\n",
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
293 gaim_account_get_username(account), *sender, *buffer,
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
294 gaim_conversation_get_name(chat), *flags);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
295
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
296 return FALSE;
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 void
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
300 received_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)
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
302 {
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
303 gaim_debug_misc("signals test",
10104
60db14d54914 [gaim-migrate @ 11131]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9954
diff changeset
304 "received-chat-msg (%s, %s, %s, %s, %d)\n",
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
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);
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
307 }
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
308
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
309 static void
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
310 conversation_created_cb(GaimConversation *conv, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
311 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
312 gaim_debug_misc("signals test", "conversation-created (%s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
313 gaim_conversation_get_name(conv));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
314 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
315
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
316 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
317 deleting_conversation_cb(GaimConversation *conv, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
318 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
319 gaim_debug_misc("signals test", "deleting-conversation (%s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
320 gaim_conversation_get_name(conv));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
321 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
322
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
323 static void
11706
bcc49c25ef90 [gaim-migrate @ 13997]
Richard Laager <rlaager@wiktel.com>
parents: 11628
diff changeset
324 buddy_typing_cb(GaimAccount *account, const char *name, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
325 {
11706
bcc49c25ef90 [gaim-migrate @ 13997]
Richard Laager <rlaager@wiktel.com>
parents: 11628
diff changeset
326 gaim_debug_misc("signals test", "buddy-typing (%s, %s)\n",
bcc49c25ef90 [gaim-migrate @ 13997]
Richard Laager <rlaager@wiktel.com>
parents: 11628
diff changeset
327 gaim_account_get_username(account), name);
bcc49c25ef90 [gaim-migrate @ 13997]
Richard Laager <rlaager@wiktel.com>
parents: 11628
diff changeset
328 }
bcc49c25ef90 [gaim-migrate @ 13997]
Richard Laager <rlaager@wiktel.com>
parents: 11628
diff changeset
329
bcc49c25ef90 [gaim-migrate @ 13997]
Richard Laager <rlaager@wiktel.com>
parents: 11628
diff changeset
330 static void
bcc49c25ef90 [gaim-migrate @ 13997]
Richard Laager <rlaager@wiktel.com>
parents: 11628
diff changeset
331 buddy_typing_stopped_cb(GaimAccount *account, const char *name, void *data)
bcc49c25ef90 [gaim-migrate @ 13997]
Richard Laager <rlaager@wiktel.com>
parents: 11628
diff changeset
332 {
bcc49c25ef90 [gaim-migrate @ 13997]
Richard Laager <rlaager@wiktel.com>
parents: 11628
diff changeset
333 gaim_debug_misc("signals test", "buddy-typing-stopped (%s, %s)\n",
bcc49c25ef90 [gaim-migrate @ 13997]
Richard Laager <rlaager@wiktel.com>
parents: 11628
diff changeset
334 gaim_account_get_username(account), name);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
335 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
336
9587
5e1c76f3d232 [gaim-migrate @ 10430]
Luke Schierer <lschiere@pidgin.im>
parents: 9554
diff changeset
337 static gboolean
9554
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
338 chat_buddy_joining_cb(GaimConversation *conv, const char *user,
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
339 GaimConvChatBuddyFlags flags, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
340 {
9554
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
341 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
342 gaim_conversation_get_name(conv), user, flags);
9587
5e1c76f3d232 [gaim-migrate @ 10430]
Luke Schierer <lschiere@pidgin.im>
parents: 9554
diff changeset
343
5e1c76f3d232 [gaim-migrate @ 10430]
Luke Schierer <lschiere@pidgin.im>
parents: 9554
diff changeset
344 return FALSE;
6485
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
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
347 static void
9554
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
348 chat_buddy_joined_cb(GaimConversation *conv, const char *user,
12850
49b2347863b2 [gaim-migrate @ 15200]
Richard Laager <rlaager@wiktel.com>
parents: 12639
diff changeset
349 GaimConvChatBuddyFlags flags, gboolean new_arrival, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
350 {
12850
49b2347863b2 [gaim-migrate @ 15200]
Richard Laager <rlaager@wiktel.com>
parents: 12639
diff changeset
351 gaim_debug_misc("signals test", "chat-buddy-joined (%s, %s, %d, %d)\n",
49b2347863b2 [gaim-migrate @ 15200]
Richard Laager <rlaager@wiktel.com>
parents: 12639
diff changeset
352 gaim_conversation_get_name(conv), user, flags, new_arrival);
9554
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
353 }
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
354
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
355 static void
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
356 chat_buddy_flags_cb(GaimConversation *conv, const char *user,
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
357 GaimConvChatBuddyFlags oldflags, GaimConvChatBuddyFlags newflags, void *data)
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
358 {
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
359 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
360 gaim_conversation_get_name(conv), user, oldflags, newflags);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
361 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
362
9587
5e1c76f3d232 [gaim-migrate @ 10430]
Luke Schierer <lschiere@pidgin.im>
parents: 9554
diff changeset
363 static gboolean
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
364 chat_buddy_leaving_cb(GaimConversation *conv, const char *user,
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
365 const char *reason, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
366 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
367 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
368 gaim_conversation_get_name(conv), user, reason);
9587
5e1c76f3d232 [gaim-migrate @ 10430]
Luke Schierer <lschiere@pidgin.im>
parents: 9554
diff changeset
369
5e1c76f3d232 [gaim-migrate @ 10430]
Luke Schierer <lschiere@pidgin.im>
parents: 9554
diff changeset
370 return FALSE;
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
371 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
372
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
373 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
374 chat_buddy_left_cb(GaimConversation *conv, const char *user,
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
375 const char *reason, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
376 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
377 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
378 gaim_conversation_get_name(conv), user, reason);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
379 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
380
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
381 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
382 chat_inviting_user_cb(GaimConversation *conv, const char *name,
9554
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
383 char **reason, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
384 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
385 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
386 gaim_conversation_get_name(conv), name, *reason);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
387 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
388
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
389 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
390 chat_invited_user_cb(GaimConversation *conv, const char *name,
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
391 const char *reason, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
392 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
393 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
394 gaim_conversation_get_name(conv), name, reason);
6485
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
11064
e4459e8ccfb5 [gaim-migrate @ 13035]
Richard Laager <rlaager@wiktel.com>
parents: 11033
diff changeset
397 static gint
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
398 chat_invited_cb(GaimAccount *account, const char *inviter,
9514
1fac0336890c [gaim-migrate @ 10341]
Luke Schierer <lschiere@pidgin.im>
parents: 9051
diff changeset
399 const char *room_name, const char *message,
1fac0336890c [gaim-migrate @ 10341]
Luke Schierer <lschiere@pidgin.im>
parents: 9051
diff changeset
400 const GHashTable *components, void *data)
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
401 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
402 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
403 gaim_account_get_username(account), inviter,
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
404 room_name, message);
11064
e4459e8ccfb5 [gaim-migrate @ 13035]
Richard Laager <rlaager@wiktel.com>
parents: 11033
diff changeset
405
e4459e8ccfb5 [gaim-migrate @ 13035]
Richard Laager <rlaager@wiktel.com>
parents: 11033
diff changeset
406 return 0;
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
407 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
408
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
409 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
410 chat_joined_cb(GaimConversation *conv, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
411 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
412 gaim_debug_misc("signals test", "chat-joined (%s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
413 gaim_conversation_get_name(conv));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
414 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
415
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
416 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
417 chat_left_cb(GaimConversation *conv, void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
418 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
419 gaim_debug_misc("signals test", "chat-left (%s)\n",
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
420 gaim_conversation_get_name(conv));
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
421 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
422
9517
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
423 static void
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
424 chat_topic_changed_cb(GaimConversation *conv, const char *who,
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
425 const char *topic, void *data)
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
426 {
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
427 gaim_debug_misc("signals test",
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
428 "chat-topic-changed (%s topic changed to: \"%s\" by %s)\n",
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
429 gaim_conversation_get_name(conv), topic,
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
430 (who) ? who : "unknown");
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
431 }
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
432 /**************************************************************************
10684
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
433 * Ciphers signal callbacks
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
434 **************************************************************************/
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
435 static void
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
436 cipher_added_cb(GaimCipher *cipher, void *data) {
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
437 gaim_debug_misc("signals test", "cipher %s added\n",
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
438 gaim_cipher_get_name(cipher));
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
439 }
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
440
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
441 static void
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
442 cipher_removed_cb(GaimCipher *cipher, void *data) {
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
443 gaim_debug_misc("signals test", "cipher %s removed\n",
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
444 gaim_cipher_get_name(cipher));
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
445 }
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
446
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
447 /**************************************************************************
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
448 * Core signal callbacks
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
449 **************************************************************************/
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
450 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
451 quitting_cb(void *data)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
452 {
7517
767d3db53e17 [gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents: 7516
diff changeset
453 gaim_debug_misc("signals test", "quitting ()\n");
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
454 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
455
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
456 /**************************************************************************
11281
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
457 * File transfer signal callbacks
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
458 **************************************************************************/
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
459 static void
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
460 ft_recv_accept_cb(GaimXfer *xfer, gpointer data) {
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
461 gaim_debug_misc("signals test", "file receive accepted\n");
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
462 }
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
463
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
464 static void
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
465 ft_send_accept_cb(GaimXfer *xfer, gpointer data) {
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
466 gaim_debug_misc("signals test", "file send accepted\n");
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
467 }
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
468
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
469 static void
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
470 ft_recv_start_cb(GaimXfer *xfer, gpointer data) {
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
471 gaim_debug_misc("signals test", "file receive started\n");
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
472 }
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
473
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
474 static void
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
475 ft_send_start_cb(GaimXfer *xfer, gpointer data) {
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
476 gaim_debug_misc("signals test", "file send started\n");
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
477 }
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
478
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
479 static void
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
480 ft_recv_cancel_cb(GaimXfer *xfer, gpointer data) {
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
481 gaim_debug_misc("signals test", "file receive canceled\n");
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
482 }
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
483
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
484 static void
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
485 ft_send_cancel_cb(GaimXfer *xfer, gpointer data) {
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
486 gaim_debug_misc("signals test", "file send canceled\n");
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
487 }
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
488
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
489 static void
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
490 ft_recv_complete_cb(GaimXfer *xfer, gpointer data) {
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
491 gaim_debug_misc("signals test", "file receive completed\n");
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
492 }
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
493
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
494 static void
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
495 ft_send_complete_cb(GaimXfer *xfer, gpointer data) {
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
496 gaim_debug_misc("signals test", "file send completed\n");
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
497 }
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
498
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
499 /**************************************************************************
12291
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
500 * Sound signal callbacks
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
501 **************************************************************************/
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
502 static int
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
503 sound_playing_event_cb(GaimSoundEventID event, const GaimAccount *account) {
12850
49b2347863b2 [gaim-migrate @ 15200]
Richard Laager <rlaager@wiktel.com>
parents: 12639
diff changeset
504 if (account != NULL)
49b2347863b2 [gaim-migrate @ 15200]
Richard Laager <rlaager@wiktel.com>
parents: 12639
diff changeset
505 gaim_debug_misc("signals test", "sound playing event: %d for account: %s\n",
49b2347863b2 [gaim-migrate @ 15200]
Richard Laager <rlaager@wiktel.com>
parents: 12639
diff changeset
506 event, gaim_account_get_username(account));
49b2347863b2 [gaim-migrate @ 15200]
Richard Laager <rlaager@wiktel.com>
parents: 12639
diff changeset
507 else
49b2347863b2 [gaim-migrate @ 15200]
Richard Laager <rlaager@wiktel.com>
parents: 12639
diff changeset
508 gaim_debug_misc("signals test", "sound playing event: %d\n", event);
12291
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
509
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
510 return 0;
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
511 }
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
512
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
513 /**************************************************************************
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
514 * Plugin stuff
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
515 **************************************************************************/
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
516 static gboolean
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
517 plugin_load(GaimPlugin *plugin)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
518 {
12291
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
519 void *core_handle = gaim_get_core();
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
520 void *blist_handle = gaim_blist_get_handle();
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
521 void *conn_handle = gaim_connections_get_handle();
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
522 void *conv_handle = gaim_conversations_get_handle();
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
523 void *accounts_handle = gaim_accounts_get_handle();
12291
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
524 void *ciphers_handle = gaim_ciphers_get_handle();
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
525 void *ft_handle = gaim_xfers_get_handle();
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
526 void *sound_handle = gaim_sounds_get_handle();
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
527
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
528 /* Accounts subsystem signals */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
529 gaim_signal_connect(accounts_handle, "account-connecting",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
530 plugin, GAIM_CALLBACK(account_connecting_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
531 gaim_signal_connect(accounts_handle, "account-setting-info",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
532 plugin, GAIM_CALLBACK(account_setting_info_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
533 gaim_signal_connect(accounts_handle, "account-set-info",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
534 plugin, GAIM_CALLBACK(account_set_info_cb), NULL);
11628
e1e47878d0ed [gaim-migrate @ 13903]
Tim Ringenbach <marv@pidgin.im>
parents: 11516
diff changeset
535 gaim_signal_connect(accounts_handle, "account-status-changed",
e1e47878d0ed [gaim-migrate @ 13903]
Tim Ringenbach <marv@pidgin.im>
parents: 11516
diff changeset
536 plugin, GAIM_CALLBACK(account_status_changed), NULL);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
537
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
538 /* Buddy List subsystem signals */
11935
cb73483c9f63 [gaim-migrate @ 14226]
Etan Reisner <pidgin@unreliablesource.net>
parents: 11899
diff changeset
539 gaim_signal_connect(blist_handle, "buddy-status-changed",
cb73483c9f63 [gaim-migrate @ 14226]
Etan Reisner <pidgin@unreliablesource.net>
parents: 11899
diff changeset
540 plugin, GAIM_CALLBACK(buddy_status_changed_cb), NULL);
cb73483c9f63 [gaim-migrate @ 14226]
Etan Reisner <pidgin@unreliablesource.net>
parents: 11899
diff changeset
541 gaim_signal_connect(blist_handle, "buddy-idle-changed",
cb73483c9f63 [gaim-migrate @ 14226]
Etan Reisner <pidgin@unreliablesource.net>
parents: 11899
diff changeset
542 plugin, GAIM_CALLBACK(buddy_idle_changed_cb), NULL);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
543 gaim_signal_connect(blist_handle, "buddy-signed-on",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
544 plugin, GAIM_CALLBACK(buddy_signed_on_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
545 gaim_signal_connect(blist_handle, "buddy-signed-off",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
546 plugin, GAIM_CALLBACK(buddy_signed_off_cb), NULL);
11454
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
547 gaim_signal_connect(blist_handle, "buddy-added",
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
548 plugin, GAIM_CALLBACK(buddy_added_cb), NULL);
12153
abe41ae8dd82 [gaim-migrate @ 14454]
Stu Tomlinson <stu@nosnilmot.com>
parents: 12098
diff changeset
549 gaim_signal_connect(blist_handle, "buddy-removed",
11454
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
550 plugin, GAIM_CALLBACK(buddy_removed_cb), NULL);
12097
d0662345799b [gaim-migrate @ 14394]
Mark Doliner <mark@kingant.net>
parents: 11935
diff changeset
551 gaim_signal_connect(blist_handle, "buddy-icon-changed",
d0662345799b [gaim-migrate @ 14394]
Mark Doliner <mark@kingant.net>
parents: 11935
diff changeset
552 plugin, GAIM_CALLBACK(buddy_icon_changed_cb), NULL);
11454
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
553 gaim_signal_connect(blist_handle, "blist-node-aliased",
201617d49573 [gaim-migrate @ 13693]
Richard Laager <rlaager@wiktel.com>
parents: 11281
diff changeset
554 plugin, GAIM_CALLBACK(blist_node_aliased), NULL);
9051
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
555 gaim_signal_connect(blist_handle, "blist-node-extended-menu",
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
556 plugin, GAIM_CALLBACK(blist_node_extended_menu_cb), NULL);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
557
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
558 /* Connection subsystem signals */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
559 gaim_signal_connect(conn_handle, "signing-on",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
560 plugin, GAIM_CALLBACK(signing_on_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
561 gaim_signal_connect(conn_handle, "signed-on",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
562 plugin, GAIM_CALLBACK(signed_on_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
563 gaim_signal_connect(conn_handle, "signing-off",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
564 plugin, GAIM_CALLBACK(signing_off_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
565 gaim_signal_connect(conn_handle, "signed-off",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
566 plugin, GAIM_CALLBACK(signed_off_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
567
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
568 /* Conversations subsystem signals */
9051
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
569 gaim_signal_connect(conv_handle, "writing-im-msg",
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
570 plugin, GAIM_CALLBACK(writing_im_msg_cb), NULL);
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
571 gaim_signal_connect(conv_handle, "wrote-im-msg",
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
572 plugin, GAIM_CALLBACK(wrote_im_msg_cb), NULL);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
573 gaim_signal_connect(conv_handle, "sending-im-msg",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
574 plugin, GAIM_CALLBACK(sending_im_msg_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
575 gaim_signal_connect(conv_handle, "sent-im-msg",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
576 plugin, GAIM_CALLBACK(sent_im_msg_cb), NULL);
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
577 gaim_signal_connect(conv_handle, "receiving-im-msg",
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
578 plugin, GAIM_CALLBACK(receiving_im_msg_cb), NULL);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
579 gaim_signal_connect(conv_handle, "received-im-msg",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
580 plugin, GAIM_CALLBACK(received_im_msg_cb), NULL);
9051
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
581 gaim_signal_connect(conv_handle, "writing-chat-msg",
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
582 plugin, GAIM_CALLBACK(writing_chat_msg_cb), NULL);
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
583 gaim_signal_connect(conv_handle, "wrote-chat-msg",
826013efffcb [gaim-migrate @ 9827]
Luke Schierer <lschiere@pidgin.im>
parents: 8999
diff changeset
584 plugin, GAIM_CALLBACK(wrote_chat_msg_cb), NULL);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
585 gaim_signal_connect(conv_handle, "sending-chat-msg",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
586 plugin, GAIM_CALLBACK(sending_chat_msg_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
587 gaim_signal_connect(conv_handle, "sent-chat-msg",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
588 plugin, GAIM_CALLBACK(sent_chat_msg_cb), NULL);
8999
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
589 gaim_signal_connect(conv_handle, "receiving-chat-msg",
8f838ae3e710 [gaim-migrate @ 9774]
Luke Schierer <lschiere@pidgin.im>
parents: 8993
diff changeset
590 plugin, GAIM_CALLBACK(receiving_chat_msg_cb), NULL);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
591 gaim_signal_connect(conv_handle, "received-chat-msg",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
592 plugin, GAIM_CALLBACK(received_chat_msg_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
593 gaim_signal_connect(conv_handle, "conversation-created",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
594 plugin, GAIM_CALLBACK(conversation_created_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
595 gaim_signal_connect(conv_handle, "deleting-conversation",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
596 plugin, GAIM_CALLBACK(deleting_conversation_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
597 gaim_signal_connect(conv_handle, "buddy-typing",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
598 plugin, GAIM_CALLBACK(buddy_typing_cb), NULL);
11706
bcc49c25ef90 [gaim-migrate @ 13997]
Richard Laager <rlaager@wiktel.com>
parents: 11628
diff changeset
599 gaim_signal_connect(conv_handle, "buddy-typing-stopped",
bcc49c25ef90 [gaim-migrate @ 13997]
Richard Laager <rlaager@wiktel.com>
parents: 11628
diff changeset
600 plugin, GAIM_CALLBACK(buddy_typing_stopped_cb), NULL);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
601 gaim_signal_connect(conv_handle, "chat-buddy-joining",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
602 plugin, GAIM_CALLBACK(chat_buddy_joining_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
603 gaim_signal_connect(conv_handle, "chat-buddy-joined",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
604 plugin, GAIM_CALLBACK(chat_buddy_joined_cb), NULL);
9554
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
605 gaim_signal_connect(conv_handle, "chat-buddy-flags",
8b2451878e26 [gaim-migrate @ 10387]
Luke Schierer <lschiere@pidgin.im>
parents: 9517
diff changeset
606 plugin, GAIM_CALLBACK(chat_buddy_flags_cb), NULL);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
607 gaim_signal_connect(conv_handle, "chat-buddy-leaving",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
608 plugin, GAIM_CALLBACK(chat_buddy_leaving_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
609 gaim_signal_connect(conv_handle, "chat-buddy-left",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
610 plugin, GAIM_CALLBACK(chat_buddy_left_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
611 gaim_signal_connect(conv_handle, "chat-inviting-user",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
612 plugin, GAIM_CALLBACK(chat_inviting_user_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
613 gaim_signal_connect(conv_handle, "chat-invited-user",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
614 plugin, GAIM_CALLBACK(chat_invited_user_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
615 gaim_signal_connect(conv_handle, "chat-invited",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
616 plugin, GAIM_CALLBACK(chat_invited_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
617 gaim_signal_connect(conv_handle, "chat-joined",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
618 plugin, GAIM_CALLBACK(chat_joined_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
619 gaim_signal_connect(conv_handle, "chat-left",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
620 plugin, GAIM_CALLBACK(chat_left_cb), NULL);
9517
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
621 gaim_signal_connect(conv_handle, "chat-topic-changed",
0524b36c701a [gaim-migrate @ 10344]
Luke Schierer <lschiere@pidgin.im>
parents: 9514
diff changeset
622 plugin, GAIM_CALLBACK(chat_topic_changed_cb), NULL);
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
623
10684
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
624 /* Ciphers signals */
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
625 gaim_signal_connect(ciphers_handle, "cipher-added",
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
626 plugin, GAIM_CALLBACK(cipher_added_cb), NULL);
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
627 gaim_signal_connect(ciphers_handle, "cipher-removed",
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
628 plugin, GAIM_CALLBACK(cipher_removed_cb), NULL);
72a5babfa8b4 [gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents: 10104
diff changeset
629
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
630 /* Core signals */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
631 gaim_signal_connect(core_handle, "quitting",
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
632 plugin, GAIM_CALLBACK(quitting_cb), NULL);
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
633
12291
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
634 /* File transfer signals */
11281
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
635 gaim_signal_connect(ft_handle, "file-recv-accept",
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
636 plugin, GAIM_CALLBACK(ft_recv_accept_cb), NULL);
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
637 gaim_signal_connect(ft_handle, "file-recv-start",
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
638 plugin, GAIM_CALLBACK(ft_recv_start_cb), NULL);
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
639 gaim_signal_connect(ft_handle, "file-recv-cancel",
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
640 plugin, GAIM_CALLBACK(ft_recv_cancel_cb), NULL);
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
641 gaim_signal_connect(ft_handle, "file-recv-complete",
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
642 plugin, GAIM_CALLBACK(ft_recv_complete_cb), NULL);
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
643 gaim_signal_connect(ft_handle, "file-send-accept",
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
644 plugin, GAIM_CALLBACK(ft_send_accept_cb), NULL);
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
645 gaim_signal_connect(ft_handle, "file-send-start",
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
646 plugin, GAIM_CALLBACK(ft_send_start_cb), NULL);
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
647 gaim_signal_connect(ft_handle, "file-send-cancel",
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
648 plugin, GAIM_CALLBACK(ft_send_cancel_cb), NULL);
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
649 gaim_signal_connect(ft_handle, "file-send-complete",
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
650 plugin, GAIM_CALLBACK(ft_send_complete_cb), NULL);
920a37a4c1be [gaim-migrate @ 13478]
Gary Kramlich <grim@reaperworld.com>
parents: 11256
diff changeset
651
12291
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
652 /* Sound signals */
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
653 gaim_signal_connect(sound_handle, "playing-sound-event", plugin,
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
654 GAIM_CALLBACK(sound_playing_event_cb), NULL);
5bc3d67ceb24 [gaim-migrate @ 14595]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12216
diff changeset
655
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
656 return TRUE;
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
657 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
658
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
659 static GaimPluginInfo info =
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
660 {
9954
a9fb4493ae22 [gaim-migrate @ 10851]
Nathan Walp <nwalp@pidgin.im>
parents: 9587
diff changeset
661 GAIM_PLUGIN_MAGIC,
a9fb4493ae22 [gaim-migrate @ 10851]
Nathan Walp <nwalp@pidgin.im>
parents: 9587
diff changeset
662 GAIM_MAJOR_VERSION,
a9fb4493ae22 [gaim-migrate @ 10851]
Nathan Walp <nwalp@pidgin.im>
parents: 9587
diff changeset
663 GAIM_MINOR_VERSION,
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
664 GAIM_PLUGIN_STANDARD, /**< type */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
665 NULL, /**< ui_requirement */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
666 0, /**< flags */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
667 NULL, /**< dependencies */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
668 GAIM_PRIORITY_DEFAULT, /**< priority */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
669
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
670 SIGNAL_TEST_PLUGIN_ID, /**< id */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
671 N_("Signals Test"), /**< name */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
672 VERSION, /**< version */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
673 /** summary */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
674 N_("Test to see that all signals are working properly."),
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
675 /** description */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
676 N_("Test to see that all signals are working properly."),
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
677 "Christian Hammond <chipx86@gnupdate.org>", /**< author */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
678 GAIM_WEBSITE, /**< homepage */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
679
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
680 plugin_load, /**< load */
11256
bb0d7b719af2 [gaim-migrate @ 13430]
Gary Kramlich <grim@reaperworld.com>
parents: 11064
diff changeset
681 NULL, /**< unload */
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
682 NULL, /**< destroy */
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
683
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
684 NULL, /**< ui_info */
8993
294ae6548d4e [gaim-migrate @ 9768]
Luke Schierer <lschiere@pidgin.im>
parents: 8749
diff changeset
685 NULL, /**< extra_info */
294ae6548d4e [gaim-migrate @ 9768]
Luke Schierer <lschiere@pidgin.im>
parents: 8749
diff changeset
686 NULL,
294ae6548d4e [gaim-migrate @ 9768]
Luke Schierer <lschiere@pidgin.im>
parents: 8749
diff changeset
687 NULL
6485
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
688 };
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
689
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
690 static void
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
691 init_plugin(GaimPlugin *plugin)
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
692 {
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
693 }
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
694
70d5122bc3ff [gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
695 GAIM_INIT_PLUGIN(signalstest, init_plugin, info)