Mercurial > pidgin.yaz
comparison plugins/events.c @ 5090:4596276f5b12
[gaim-migrate @ 5452]
Ka-Hing Cheung (bsponline) updated events.c to have the right arguements.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Wed, 09 Apr 2003 23:33:21 +0000 |
parents | cd938f18f3f8 |
children | fefad67de2c7 |
comparison
equal
deleted
inserted
replaced
5089:29b80bc21ba7 | 5090:4596276f5b12 |
---|---|
29 static void evt_back(void *data) | 29 static void evt_back(void *data) |
30 { | 30 { |
31 printf("event_back\n"); | 31 printf("event_back\n"); |
32 } | 32 } |
33 | 33 |
34 static void evt_im_recv(struct gaim_connection *gc, char **who, char **what, void *data) | 34 static void evt_im_recv(struct gaim_connection *gc, char **who, char **what, guint *flags, void *data) |
35 { | 35 { |
36 printf("event_im_recv: %s %s\n", *who, *what); | 36 printf("event_im_recv: %s %s\n", *who, *what); |
37 } | 37 } |
38 | 38 |
39 static void evt_im_send(struct gaim_connection *gc, char *who, char **what, void *data) | 39 static void evt_im_send(struct gaim_connection *gc, char *who, char **what, void *data) |
59 static void evt_buddy_back(struct gaim_connection *gc, char *who, void *data) | 59 static void evt_buddy_back(struct gaim_connection *gc, char *who, void *data) |
60 { | 60 { |
61 printf("event_buddy_back: %s\n", who); | 61 printf("event_buddy_back: %s\n", who); |
62 } | 62 } |
63 | 63 |
64 static void evt_buddy_idle(struct gaim_connection *gc, char *who, void *data) | |
65 { | |
66 printf("event_buddy_idle: %s\n", who); | |
67 } | |
68 | |
69 static void evt_buddy_unidle(struct gaim_connection *gc, char *who, void *data) | |
70 { | |
71 printf("event_buddy_unidle: %s\n", who); | |
72 } | |
73 | |
74 static void evt_blist_update(void *data) | |
75 { | |
76 printf("event_blist_update\n"); | |
77 } | |
78 | |
64 static void evt_chat_invited(struct gaim_connection *gc, char *who, char *room, char *message, void *data) | 79 static void evt_chat_invited(struct gaim_connection *gc, char *who, char *room, char *message, void *data) |
65 { | 80 { |
66 printf("event_chat_invited: %s %s %s\n", who, room, message); | 81 printf("event_chat_invited: %s %s %s\n", who, room, message); |
67 } | 82 } |
68 | 83 |
69 static void evt_chat_join(struct gaim_connection *gc, char *room, void *data) | 84 static void evt_chat_join(struct gaim_connection *gc, int id, void *data) |
70 { | 85 { |
71 printf("event_chat_join: %s\n", room); | 86 printf("event_chat_join: %d\n", id); |
72 } | 87 } |
73 | 88 |
74 static void evt_chat_leave(struct gaim_connection *gc, char *room, void *data) | 89 static void evt_chat_leave(struct gaim_connection *gc, int id, void *data) |
75 { | 90 { |
76 printf("event_chat_leave: %s\n", room); | 91 printf("event_chat_leave: %d\n", id); |
77 } | 92 } |
78 | 93 |
79 static void evt_chat_buddy_join(struct gaim_connection *gc, char *room, char *who, void *data) | 94 static void evt_chat_buddy_join(struct gaim_connection *gc, int id, char *who, void *data) |
80 { | 95 { |
81 printf("event_chat_buddy_join: %s %s\n", room, who); | 96 printf("event_chat_buddy_join: %d %s\n", id, who); |
82 } | 97 } |
83 | 98 |
84 static void evt_chat_buddy_leave(struct gaim_connection *gc, char *room, char *who, void *data) | 99 static void evt_chat_buddy_leave(struct gaim_connection *gc, int id, char *who, void *data) |
85 { | 100 { |
86 printf("event_chat_buddy_leave: %s %s\n", room, who); | 101 printf("event_chat_buddy_leave: %d %s\n", id, who); |
87 } | 102 } |
88 | 103 |
89 static void evt_chat_recv(struct gaim_connection *gc, char *room, char *who, char *text, void *data) | 104 static void evt_chat_recv(struct gaim_connection *gc, int id, char *who, char *text, void *data) |
90 { | 105 { |
91 printf("event_chat_recv: %s %s %s\n", room, who, text); | 106 printf("event_chat_recv: %d %s %s\n", id, who, text); |
92 } | 107 } |
93 | 108 |
94 static void evt_chat_send(struct gaim_connection *gc, char *room, char **what, void *data) | 109 static void evt_chat_send(struct gaim_connection *gc, int id, char **what, void *data) |
95 { | 110 { |
96 printf("event_chat_send: %s %s\n", room, *what); | 111 printf("event_chat_send: %d %s\n", id, *what); |
97 } | 112 } |
98 | 113 |
99 static void evt_warned(struct gaim_connection *gc, char *who, int level, void *data) | 114 static void evt_warned(struct gaim_connection *gc, char *who, int level, void *data) |
100 { | 115 { |
101 printf("event_warned: %s %d\n", who, level); | 116 printf("event_warned: %s %d\n", who, level); |
114 static void evt_new_conversation(char *who, void *data) | 129 static void evt_new_conversation(char *who, void *data) |
115 { | 130 { |
116 printf("event_new_conversation: %s\n", who); | 131 printf("event_new_conversation: %s\n", who); |
117 } | 132 } |
118 | 133 |
134 static void evt_set_info(struct gaim_connection *gc, char *info, void *data) | |
135 { | |
136 printf("event_set_info: %s\n", info); | |
137 } | |
138 | |
139 static void evt_draw_menu(GtkWidget *menu, char *name, void *data) | |
140 { | |
141 printf("event_draw_menu: %s\n", name); | |
142 } | |
143 | |
144 static void evt_im_displayed_sent(struct gaim_connection *gc, char *who, char **what, void *data) | |
145 { | |
146 printf("event_im_displayed_sent: %s %s\n", who, *what); | |
147 } | |
148 | |
149 static void evt_im_displayed_rcvd(struct gaim_connection *gc, char *who, char *what, guint32 flags, time_t time, void *data) | |
150 { | |
151 printf("event_im_displayed_rcvd: %s %s %s %s\n", who, what, flags, time); | |
152 } | |
153 | |
154 static void evt_chat_send_invite(struct gaim_connection *gc, int id, char *who, char **msg, void *data) | |
155 { | |
156 printf("event_chat_send_invite: %d %s %s\n", id, who, *msg); | |
157 } | |
158 | |
159 static evt_got_typing(struct gaim_connection *gc, char *who, void *data) | |
160 { | |
161 printf("event_got_typing: %s\n", who); | |
162 } | |
163 | |
164 static evt_del_conversation(struct conversation *c, void *data) | |
165 { | |
166 printf("event_del_conversation\n"); | |
167 } | |
168 | |
169 static evt_connecting(struct gaim_account *u, void *data) | |
170 { | |
171 printf("event_connecting\n"); | |
172 } | |
173 | |
119 char *gaim_plugin_init(GModule *h) | 174 char *gaim_plugin_init(GModule *h) |
120 { | 175 { |
121 gaim_signal_connect(h, event_signon, evt_signon, NULL); | 176 gaim_signal_connect(h, event_signon, evt_signon, NULL); |
122 gaim_signal_connect(h, event_signoff, evt_signoff, NULL); | 177 gaim_signal_connect(h, event_signoff, evt_signoff, NULL); |
123 gaim_signal_connect(h, event_away, evt_away, NULL); | 178 gaim_signal_connect(h, event_away, evt_away, NULL); |
124 gaim_signal_connect(h, event_back, evt_back, NULL); | 179 gaim_signal_connect(h, event_back, evt_back, NULL); |
125 gaim_signal_connect(h, event_im_recv, evt_im_recv, NULL); | 180 gaim_signal_connect(h, event_im_recv, evt_im_recv, NULL); |
126 gaim_signal_connect(h, event_im_send, evt_im_send, NULL); | 181 gaim_signal_connect(h, event_im_send, evt_im_send, NULL); |
127 gaim_signal_connect(h, event_buddy_signon, evt_buddy_signon, NULL); | 182 gaim_signal_connect(h, event_buddy_signon, evt_buddy_signon, NULL); |
128 gaim_signal_connect(h, event_buddy_signoff, evt_buddy_signoff, NULL); | 183 gaim_signal_connect(h, event_buddy_signoff, evt_buddy_signoff, NULL); |
129 gaim_signal_connect(h, event_buddy_away, evt_buddy_away, NULL); | 184 gaim_signal_connect(h, event_buddy_away, evt_buddy_away, NULL); |
130 gaim_signal_connect(h, event_buddy_back, evt_buddy_back, NULL); | 185 gaim_signal_connect(h, event_buddy_back, evt_buddy_back, NULL); |
131 gaim_signal_connect(h, event_chat_invited, evt_chat_invited, NULL); | 186 gaim_signal_connect(h, event_chat_invited, evt_chat_invited, NULL); |
132 gaim_signal_connect(h, event_chat_join, evt_chat_join, NULL); | 187 gaim_signal_connect(h, event_chat_join, evt_chat_join, NULL); |
133 gaim_signal_connect(h, event_chat_leave, evt_chat_leave, NULL); | 188 gaim_signal_connect(h, event_chat_leave, evt_chat_leave, NULL); |
134 gaim_signal_connect(h, event_chat_buddy_join, evt_chat_buddy_join, NULL); | 189 gaim_signal_connect(h, event_chat_buddy_join, evt_chat_buddy_join, NULL); |
135 gaim_signal_connect(h, event_chat_buddy_leave, evt_chat_buddy_leave, NULL); | 190 gaim_signal_connect(h, event_chat_buddy_leave, evt_chat_buddy_leave, NULL); |
136 gaim_signal_connect(h, event_chat_recv, evt_chat_recv, NULL); | 191 gaim_signal_connect(h, event_chat_recv, evt_chat_recv, NULL); |
137 gaim_signal_connect(h, event_chat_send, evt_chat_send, NULL); | 192 gaim_signal_connect(h, event_chat_send, evt_chat_send, NULL); |
138 gaim_signal_connect(h, event_warned, evt_warned, NULL); | 193 gaim_signal_connect(h, event_warned, evt_warned, NULL); |
139 gaim_signal_connect(h, event_error, evt_error, NULL); | 194 gaim_signal_connect(h, event_error, evt_error, NULL); |
140 gaim_signal_connect(h, event_quit, evt_quit, NULL); | 195 gaim_signal_connect(h, event_quit, evt_quit, NULL); |
141 gaim_signal_connect(h, event_new_conversation, evt_new_conversation, NULL); | 196 gaim_signal_connect(h, event_new_conversation, evt_new_conversation, NULL); |
197 gaim_signal_connect(h, event_set_info, evt_set_info, NULL); | |
198 gaim_signal_connect(h, event_draw_menu, evt_draw_menu, NULL); | |
199 gaim_signal_connect(h, event_im_displayed_sent, evt_im_displayed_sent, NULL); | |
200 gaim_signal_connect(h, event_im_displayed_rcvd, evt_im_displayed_rcvd, NULL); | |
201 gaim_signal_connect(h, event_chat_send_invite, evt_chat_send_invite, NULL); | |
202 gaim_signal_connect(h, event_got_typing, evt_got_typing, NULL); | |
203 gaim_signal_connect(h, event_del_conversation, evt_del_conversation, NULL); | |
204 gaim_signal_connect(h, event_connecting, evt_connecting, NULL); | |
142 return NULL; | 205 return NULL; |
143 } | 206 } |
144 | 207 |
145 struct gaim_plugin_description desc; | 208 struct gaim_plugin_description desc; |
146 struct gaim_plugin_description *gaim_plugin_desc() { | 209 struct gaim_plugin_description *gaim_plugin_desc() { |