changeset 115:890cfb7d8fdb

[gaim-migrate @ 125] Added event_blist_update to plugins. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 14 Apr 2000 08:30:39 +0000
parents 668727c82810
children 8c982b7f18d4
files src/gaim.h src/server.c
diffstat 2 files changed, 18 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gaim.h	Fri Apr 14 08:19:10 2000 +0000
+++ b/src/gaim.h	Fri Apr 14 08:30:39 2000 +0000
@@ -135,6 +135,7 @@
 	event_im_send,
 	event_buddy_signon,
 	event_buddy_signoff,
+	event_blist_update,
 	/* any others? it's easy to add... */
 };
 
@@ -290,7 +291,7 @@
 #define TYPE_SIGNOFF   4
 #define TYPE_KEEPALIVE 5
 
-#define REVISION "gaim:$Revision: 119 $"
+#define REVISION "gaim:$Revision: 125 $"
 #define FLAPON "FLAPON\r\n\r\n"
 
 #define ROAST "Tic/Toc"
--- a/src/server.c	Fri Apr 14 08:19:10 2000 +0000
+++ b/src/server.c	Fri Apr 14 08:30:39 2000 +0000
@@ -97,6 +97,22 @@
 		is_idle = 1;
         }
 
+#ifdef GAIM_PLUGINS
+	{
+		GList *c = callbacks;
+		struct gaim_callback *g;
+		void (*function)(void *);
+		while (c) {
+			g = (struct gaim_callback *)c->data;
+			if (g->event == event_blist_update &&
+					g->function != NULL) { 
+				function = g->function;
+				(*function)(g->data);
+			}
+			c = c->next;
+		}
+	}
+#endif
         
 	return TRUE;