diff src/gaim.h @ 90:f5b305c0d974

[gaim-migrate @ 100] Added plugin code. I have yet to test it. :P All I know is, I can successfully load a plugin. I don't know what I can do with it yet, and I'm not even sure I can unload it yet. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 07 Apr 2000 17:43:29 +0000
parents 05077cb276d4
children 9f6ce50ffb78
line wrap: on
line diff
--- a/src/gaim.h	Fri Apr 07 07:51:14 2000 +0000
+++ b/src/gaim.h	Fri Apr 07 17:43:29 2000 +0000
@@ -64,7 +64,7 @@
 
 #define AUTO_RESPONSE "<AUTO-REPLY> : "
 
-#define PLUGIN_DIR "$HOME/.gaim/plugins/"
+#define PLUGIN_DIR ".gaim/plugins/"
 
 #define REG_EMAIL_ADDR "gaiminfo@blueridge.net"
 #define REG_SRVR "blueridge.net"
@@ -117,15 +117,14 @@
         char page[255];
 };
 
+#ifdef GAIM_PLUGINS
 struct gaim_plugin {
-        char name[64];
-        char filename[512];
-/*        char description[256];
-        int major_version;
-        int minor_version; */
-        char *(*init_gaim_plugin)();
-        void (*toc_receive)(char *);
+	char  *name;
+	char  *filename;
+	char  *description;
+	void  *handle;
 };
+#endif
 
 struct buddy {
 	char name[80];
@@ -269,7 +268,7 @@
 #define TYPE_SIGNOFF   4
 #define TYPE_KEEPALIVE 5
 
-#define REVISION "gaim:$Revision: 92 $"
+#define REVISION "gaim:$Revision: 100 $"
 #define FLAPON "FLAPON\r\n\r\n"
 
 #define ROAST "Tic/Toc"
@@ -541,7 +540,9 @@
 
 #ifdef GAIM_PLUGINS
 /* Functions in plugins.c */
-extern void load_plugins();
+extern void load_plugin  (GtkWidget *, gpointer);
+extern void unload_plugin(GtkWidget *, gpointer);
+extern void show_plugins (GtkWidget *, gpointer);
 #endif
 
 /* Functions in prefs.c */
@@ -556,9 +557,6 @@
 extern void save_prefs();
 
 
-/*Functions in plugins.c */
-extern void show_plugins();
-
 /* Functions in dialogs.c */
 extern void show_warn_dialog(char *);
 extern void do_error_dialog(char *, char *);