--- 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