diff src/prpl.h @ 1000:91b7377e7b45

[gaim-migrate @ 1010] Plugins work again, I think. There may still be some bugginess. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 16 Oct 2000 20:11:18 +0000
parents 7e231bc0018a
children f8f7f3ed2edb
line wrap: on
line diff
--- a/src/prpl.h	Sun Oct 15 03:55:23 2000 +0000
+++ b/src/prpl.h	Mon Oct 16 20:11:18 2000 +0000
@@ -32,6 +32,8 @@
 #define PROTO_IRC	5
 #define PROTO_FTP	6
 
+typedef void (*proto_init)(struct prpl *);
+
 struct prpl {
 	int protocol;
 	char *(* name)();
@@ -80,8 +82,12 @@
 
 extern GSList *protocols;
 
+/* this is mostly just for aim.c, when it initializes the protocols */
 void static_proto_init();
 
+/* this is what should actually load the protocol. pass it the protocol's initializer */
+void load_protocol(proto_init);
+
 struct prpl *find_prpl(int);
 
 #endif