annotate plugins/events.c @ 3103:0f54285a2271

[gaim-migrate @ 3117] Thanks Daniel Walls committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 28 Mar 2002 19:45:06 +0000
parents 50c7a704ee56
children cd938f18f3f8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
534
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
1 /* tester.c
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
2 *
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
3 * test every callback, print to stdout
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
4 *
2130
50c7a704ee56 [gaim-migrate @ 2140]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1404
diff changeset
5 * by EW
534
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
6 *
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
7 * GPL and all that jazz
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
8 *
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
9 */
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
10
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
11 #define GAIM_PLUGINS
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
12 #include "gaim.h"
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
13
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
14 static void evt_signon(struct gaim_connection *gc, void *data)
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
15 {
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
16 printf("event_signon\n");
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
17 }
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
18
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
19 static void evt_signoff(struct gaim_connection *gc, void *data)
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
20 {
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
21 printf("event_signoff\n");
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
22 }
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
23
1404
96e93119268d [gaim-migrate @ 1414]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1047
diff changeset
24 static void evt_away(struct gaim_connection *gc, char *state, char *message, void *data)
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
25 {
1404
96e93119268d [gaim-migrate @ 1414]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1047
diff changeset
26 printf("event_away: %s %s %s\n", gc->username, state, message);
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
27 }
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
28
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
29 static void evt_back(void *data)
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
30 {
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
31 printf("event_back\n");
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
32 }
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
33
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
34 static void evt_im_recv(struct gaim_connection *gc, char **who, char **what, void *data)
534
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
35 {
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
36 printf("event_im_recv: %s %s\n", *who, *what);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
37 }
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
38
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
39 static void evt_im_send(struct gaim_connection *gc, char *who, char **what, void *data)
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
40 {
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
41 printf("event_im_send: %s %s\n", who, *what);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
42 }
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
43
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
44 static void evt_buddy_signon(struct gaim_connection *gc, char *who, void *data)
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
45 {
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
46 printf("event_buddy_signon: %s\n", who);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
47 }
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
48
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
49 static void evt_buddy_signoff(struct gaim_connection *gc, char *who, void *data)
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
50 {
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
51 printf("event_buddy_signoff: %s\n", who);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
52 }
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
53
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
54 static void evt_buddy_away(struct gaim_connection *gc, char *who, void *data)
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
55 {
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
56 printf("event_buddy_away: %s\n", who);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
57 }
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
58
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
59 static void evt_buddy_back(struct gaim_connection *gc, char *who, void *data)
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
60 {
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
61 printf("event_buddy_back: %s\n", who);
534
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
62 }
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
63
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
64 static void evt_chat_invited(struct gaim_connection *gc, char *who, char *room, char *message, void *data)
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
65 {
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
66 printf("event_chat_invited: %s %s %s\n", who, room, message);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
67 }
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
68
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
69 static void evt_chat_join(struct gaim_connection *gc, char *room, void *data)
534
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
70 {
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
71 printf("event_chat_join: %s\n", room);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
72 }
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
73
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
74 static void evt_chat_leave(struct gaim_connection *gc, char *room, void *data)
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
75 {
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
76 printf("event_chat_leave: %s\n", room);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
77 }
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
78
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
79 static void evt_chat_buddy_join(struct gaim_connection *gc, char *room, char *who, void *data)
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
80 {
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
81 printf("event_chat_buddy_join: %s %s\n", room, who);
534
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
82 }
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
83
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
84 static void evt_chat_buddy_leave(struct gaim_connection *gc, char *room, char *who, void *data)
534
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
85 {
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
86 printf("event_chat_buddy_leave: %s %s\n", room, who);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
87 }
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
88
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
89 static void evt_chat_recv(struct gaim_connection *gc, char *room, char *who, char *text, void *data)
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
90 {
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
91 printf("event_chat_recv: %s %s %s\n", room, who, text);
534
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
92 }
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
93
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
94 static void evt_chat_send(struct gaim_connection *gc, char *room, char **what, void *data)
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
95 {
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
96 printf("event_chat_send: %s %s\n", room, *what);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
97 }
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
98
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
99 static void evt_warned(struct gaim_connection *gc, char *who, int level, void *data)
534
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
100 {
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
101 printf("event_warned: %s %d\n", who, level);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
102 }
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
103
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
104 static void evt_error(int error, void *data)
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
105 {
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
106 printf("event_error: %d\n", error);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
107 }
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
108
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
109 static void evt_quit(void *data)
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
110 {
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
111 printf("event_quit\n");
534
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
112 }
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
113
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
114 static void evt_new_conversation(char *who, void *data)
808
9d61f3d01046 [gaim-migrate @ 818]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 779
diff changeset
115 {
9d61f3d01046 [gaim-migrate @ 818]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 779
diff changeset
116 printf("event_new_conversation: %s\n", who);
9d61f3d01046 [gaim-migrate @ 818]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 779
diff changeset
117 }
9d61f3d01046 [gaim-migrate @ 818]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 779
diff changeset
118
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
119 char *gaim_plugin_init(GModule *h)
534
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
120 {
779
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
121 gaim_signal_connect(h, event_signon, evt_signon, NULL);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
122 gaim_signal_connect(h, event_signoff, evt_signoff, NULL);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
123 gaim_signal_connect(h, event_away, evt_away, NULL);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
124 gaim_signal_connect(h, event_back, evt_back, NULL);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
125 gaim_signal_connect(h, event_im_recv, evt_im_recv, NULL);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
126 gaim_signal_connect(h, event_im_send, evt_im_send, NULL);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
127 gaim_signal_connect(h, event_buddy_signon, evt_buddy_signon, NULL);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
128 gaim_signal_connect(h, event_buddy_signoff, evt_buddy_signoff, NULL);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
129 gaim_signal_connect(h, event_buddy_away, evt_buddy_away, NULL);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
130 gaim_signal_connect(h, event_buddy_back, evt_buddy_back, NULL);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
131 gaim_signal_connect(h, event_chat_invited, evt_chat_invited, NULL);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
132 gaim_signal_connect(h, event_chat_join, evt_chat_join, NULL);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
133 gaim_signal_connect(h, event_chat_leave, evt_chat_leave, NULL);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
134 gaim_signal_connect(h, event_chat_buddy_join, evt_chat_buddy_join, NULL);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
135 gaim_signal_connect(h, event_chat_buddy_leave, evt_chat_buddy_leave, NULL);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
136 gaim_signal_connect(h, event_chat_recv, evt_chat_recv, NULL);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
137 gaim_signal_connect(h, event_chat_send, evt_chat_send, NULL);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
138 gaim_signal_connect(h, event_warned, evt_warned, NULL);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
139 gaim_signal_connect(h, event_error, evt_error, NULL);
1823a4af82d3 [gaim-migrate @ 789]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 534
diff changeset
140 gaim_signal_connect(h, event_quit, evt_quit, NULL);
808
9d61f3d01046 [gaim-migrate @ 818]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 779
diff changeset
141 gaim_signal_connect(h, event_new_conversation, evt_new_conversation, NULL);
1047
ece2d1543b20 [gaim-migrate @ 1057]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 808
diff changeset
142 return NULL;
534
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
143 }
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
144
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
145 char *name()
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
146 {
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
147 return "Event Test";
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
148 }
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
149
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
150 char *description()
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
151 {
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
152 return "Test to see that all events are working properly.";
d7cdcd9e28f4 [gaim-migrate @ 544]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
153 }