changeset 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 29b80bc21ba7
children 04ded2f7253c
files plugins/events.c
diffstat 1 files changed, 97 insertions(+), 34 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/events.c	Wed Apr 09 23:28:47 2003 +0000
+++ b/plugins/events.c	Wed Apr 09 23:33:21 2003 +0000
@@ -31,7 +31,7 @@
 	printf("event_back\n");
 }
 
-static void evt_im_recv(struct gaim_connection *gc, char **who, char **what, void *data)
+static void evt_im_recv(struct gaim_connection *gc, char **who, char **what, guint *flags, void *data)
 {
 	printf("event_im_recv: %s %s\n", *who, *what);
 }
@@ -61,39 +61,54 @@
 	printf("event_buddy_back: %s\n", who);
 }
 
+static void evt_buddy_idle(struct gaim_connection *gc, char *who, void *data)
+{
+	printf("event_buddy_idle: %s\n", who);
+}
+
+static void evt_buddy_unidle(struct gaim_connection *gc, char *who, void *data)
+{
+	printf("event_buddy_unidle: %s\n", who);
+}
+
+static void evt_blist_update(void *data)
+{
+	printf("event_blist_update\n");
+}
+
 static void evt_chat_invited(struct gaim_connection *gc, char *who, char *room, char *message, void *data)
 {
 	printf("event_chat_invited: %s %s %s\n", who, room, message);
 }
 
-static void evt_chat_join(struct gaim_connection *gc, char *room, void *data)
+static void evt_chat_join(struct gaim_connection *gc, int id, void *data)
 {
-	printf("event_chat_join: %s\n", room);
+	printf("event_chat_join: %d\n", id);
 }
 
-static void evt_chat_leave(struct gaim_connection *gc, char *room, void *data)
+static void evt_chat_leave(struct gaim_connection *gc, int id, void *data)
 {
-	printf("event_chat_leave: %s\n", room);
+	printf("event_chat_leave: %d\n", id);
 }
 
-static void evt_chat_buddy_join(struct gaim_connection *gc, char *room, char *who, void *data)
+static void evt_chat_buddy_join(struct gaim_connection *gc, int id, char *who, void *data)
 {
-	printf("event_chat_buddy_join: %s %s\n", room, who);
+	printf("event_chat_buddy_join: %d %s\n", id, who);
 }
 
-static void evt_chat_buddy_leave(struct gaim_connection *gc, char *room, char *who, void *data)
+static void evt_chat_buddy_leave(struct gaim_connection *gc, int id, char *who, void *data)
 {
-	printf("event_chat_buddy_leave: %s %s\n", room, who);
+	printf("event_chat_buddy_leave: %d %s\n", id, who);
 }
 
-static void evt_chat_recv(struct gaim_connection *gc, char *room, char *who, char *text, void *data)
+static void evt_chat_recv(struct gaim_connection *gc, int id, char *who, char *text, void *data)
 {
-	printf("event_chat_recv: %s %s %s\n", room, who, text);
+	printf("event_chat_recv: %d %s %s\n", id, who, text);
 }
 
-static void evt_chat_send(struct gaim_connection *gc, char *room, char **what, void *data)
+static void evt_chat_send(struct gaim_connection *gc, int id, char **what, void *data)
 {
-	printf("event_chat_send: %s %s\n", room, *what);
+	printf("event_chat_send: %d %s\n", id, *what);
 }
 
 static void evt_warned(struct gaim_connection *gc, char *who, int level, void *data)
@@ -116,29 +131,77 @@
 	printf("event_new_conversation: %s\n", who);
 }
 
+static void evt_set_info(struct gaim_connection *gc, char *info, void *data)
+{
+	printf("event_set_info: %s\n", info);
+}
+
+static void evt_draw_menu(GtkWidget *menu, char *name, void *data)
+{
+	printf("event_draw_menu: %s\n", name);
+}
+
+static void evt_im_displayed_sent(struct gaim_connection *gc, char *who, char **what, void *data)
+{
+	printf("event_im_displayed_sent: %s %s\n", who, *what);
+}
+
+static void evt_im_displayed_rcvd(struct gaim_connection *gc, char *who, char *what, guint32 flags, time_t time, void *data)
+{
+	printf("event_im_displayed_rcvd: %s %s %s %s\n", who, what, flags, time);
+}
+
+static void evt_chat_send_invite(struct gaim_connection *gc, int id, char *who, char **msg, void *data)
+{
+	printf("event_chat_send_invite: %d %s %s\n", id, who, *msg);
+}
+
+static evt_got_typing(struct gaim_connection *gc, char *who, void *data)
+{
+	printf("event_got_typing: %s\n", who);
+}
+
+static evt_del_conversation(struct conversation *c, void *data)
+{
+	printf("event_del_conversation\n");
+}
+
+static evt_connecting(struct gaim_account *u, void *data)
+{
+	printf("event_connecting\n");
+}
+
 char *gaim_plugin_init(GModule *h)
 {
-	gaim_signal_connect(h, event_signon,           evt_signon, NULL);
-	gaim_signal_connect(h, event_signoff,          evt_signoff, NULL);
-	gaim_signal_connect(h, event_away,             evt_away, NULL);
-	gaim_signal_connect(h, event_back,             evt_back, NULL);
-	gaim_signal_connect(h, event_im_recv,          evt_im_recv, NULL);
-	gaim_signal_connect(h, event_im_send,          evt_im_send, NULL);
-	gaim_signal_connect(h, event_buddy_signon,     evt_buddy_signon, NULL);
-	gaim_signal_connect(h, event_buddy_signoff,    evt_buddy_signoff, NULL);
-	gaim_signal_connect(h, event_buddy_away,       evt_buddy_away, NULL);
-	gaim_signal_connect(h, event_buddy_back,       evt_buddy_back, NULL);
-	gaim_signal_connect(h, event_chat_invited,     evt_chat_invited, NULL);
-	gaim_signal_connect(h, event_chat_join,        evt_chat_join, NULL);
-	gaim_signal_connect(h, event_chat_leave,       evt_chat_leave, NULL);
-	gaim_signal_connect(h, event_chat_buddy_join,  evt_chat_buddy_join, NULL);
-	gaim_signal_connect(h, event_chat_buddy_leave, evt_chat_buddy_leave, NULL);
-	gaim_signal_connect(h, event_chat_recv,        evt_chat_recv, NULL);
-	gaim_signal_connect(h, event_chat_send,        evt_chat_send, NULL);
-	gaim_signal_connect(h, event_warned,           evt_warned, NULL);
-	gaim_signal_connect(h, event_error,            evt_error, NULL);
-	gaim_signal_connect(h, event_quit,             evt_quit, NULL);
-	gaim_signal_connect(h, event_new_conversation, evt_new_conversation, NULL);
+	gaim_signal_connect(h, event_signon,			evt_signon, NULL);
+	gaim_signal_connect(h, event_signoff,			evt_signoff, NULL);
+	gaim_signal_connect(h, event_away,				evt_away, NULL);
+	gaim_signal_connect(h, event_back,				evt_back, NULL);
+	gaim_signal_connect(h, event_im_recv,			evt_im_recv, NULL);
+	gaim_signal_connect(h, event_im_send,			evt_im_send, NULL);
+	gaim_signal_connect(h, event_buddy_signon,		evt_buddy_signon, NULL);
+	gaim_signal_connect(h, event_buddy_signoff,		evt_buddy_signoff, NULL);
+	gaim_signal_connect(h, event_buddy_away,		evt_buddy_away, NULL);
+	gaim_signal_connect(h, event_buddy_back,		evt_buddy_back, NULL);
+	gaim_signal_connect(h, event_chat_invited,		evt_chat_invited, NULL);
+	gaim_signal_connect(h, event_chat_join,			evt_chat_join, NULL);
+	gaim_signal_connect(h, event_chat_leave,		evt_chat_leave, NULL);
+	gaim_signal_connect(h, event_chat_buddy_join,	evt_chat_buddy_join, NULL);
+	gaim_signal_connect(h, event_chat_buddy_leave,	evt_chat_buddy_leave, NULL);
+	gaim_signal_connect(h, event_chat_recv,			evt_chat_recv, NULL);
+	gaim_signal_connect(h, event_chat_send,			evt_chat_send, NULL);
+	gaim_signal_connect(h, event_warned,			evt_warned, NULL);
+	gaim_signal_connect(h, event_error,				evt_error, NULL);
+	gaim_signal_connect(h, event_quit,				evt_quit, NULL);
+	gaim_signal_connect(h, event_new_conversation,	evt_new_conversation, NULL);
+	gaim_signal_connect(h, event_set_info,			evt_set_info, NULL);
+	gaim_signal_connect(h, event_draw_menu,			evt_draw_menu, NULL);
+	gaim_signal_connect(h, event_im_displayed_sent,	evt_im_displayed_sent, NULL);
+	gaim_signal_connect(h, event_im_displayed_rcvd, evt_im_displayed_rcvd, NULL);
+	gaim_signal_connect(h, event_chat_send_invite,	evt_chat_send_invite, NULL);
+	gaim_signal_connect(h, event_got_typing, 		evt_got_typing, NULL);
+	gaim_signal_connect(h, event_del_conversation,	evt_del_conversation, NULL);
+	gaim_signal_connect(h, event_connecting,		evt_connecting, NULL);
 	return NULL;
 }