diff src/gaim.h @ 94:9f6ce50ffb78

[gaim-migrate @ 104] Woohoo, the landing of the plugins. Nearly everything necessary is here. The only thing missing is that you can't load a plugin without signing on first (at least, not without some trickery). committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 09 Apr 2000 11:18:25 +0000
parents f5b305c0d974
children 55faf2e3a134
line wrap: on
line diff
--- a/src/gaim.h	Sun Apr 09 08:25:15 2000 +0000
+++ b/src/gaim.h	Sun Apr 09 11:18:25 2000 +0000
@@ -19,6 +19,9 @@
  *
  */
 
+#include <gtk/gtk.h>
+#include <time.h>
+#include <stdio.h>
 #ifdef USE_APPLET
 #include <applet-widget.h>
 #endif /* USE_APPLET */
@@ -124,6 +127,25 @@
 	char  *description;
 	void  *handle;
 };
+
+enum gaim_event {
+	event_signon = 0,
+	event_signoff,
+	event_im_recv,
+	event_im_send,
+	event_buddy_signon,
+	event_buddy_signoff,
+	/* any others? it's easy to add... */
+};
+
+struct gaim_callback {
+	void *handle;
+	enum gaim_event event;
+	void *function;
+	void *data;
+};
+
+extern GList *callbacks;
 #endif
 
 struct buddy {
@@ -268,7 +290,7 @@
 #define TYPE_SIGNOFF   4
 #define TYPE_KEEPALIVE 5
 
-#define REVISION "gaim:$Revision: 100 $"
+#define REVISION "gaim:$Revision: 104 $"
 #define FLAPON "FLAPON\r\n\r\n"
 
 #define ROAST "Tic/Toc"
@@ -543,6 +565,8 @@
 extern void load_plugin  (GtkWidget *, gpointer);
 extern void unload_plugin(GtkWidget *, gpointer);
 extern void show_plugins (GtkWidget *, gpointer);
+extern void gaim_signal_connect(void *, enum gaim_event, void *, void *);
+extern void gaim_signal_disconnect(void *, enum gaim_event, void *);
 #endif
 
 /* Functions in prefs.c */