From: Sean E. <sea...@us...> - 2002-09-30 01:05:21
|
Update of /cvsroot/gaim/gaim/src/protocols/zephyr In directory usw-pr-cvs1:/tmp/cvs-serv18273/src/protocols/zephyr Modified Files: zephyr.c Log Message: Phase II. No longer do you have to worry about protocol plugins. When Gaim probes plugins on load, it will detect protocol plugins and add them to the list of available protocols. When you try to log an account on with one of them, Gaim will automatically load the plugin--when no more accounts need the protocol--Gaim will automatically unload it. Protocol plugins are no longer available in the plugins ui, and no protocols are compiled statically by default. Index: zephyr.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/zephyr/zephyr.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- zephyr.c 29 Aug 2002 01:47:15 -0000 1.24 +++ zephyr.c 30 Sep 2002 01:05:18 -0000 1.25 @@ -62,11 +62,6 @@ int id; }; -static char *zephyr_name() -{ - return "Zephyr"; -} - #define z_call(func) if (func != ZERR_NONE)\ return; #define z_call_r(func) if (func != ZERR_NONE)\ @@ -945,7 +940,7 @@ { ret->protocol = PROTO_ZEPHYR; ret->options = OPT_PROTO_NO_PASSWORD; - ret->name = zephyr_name; + ret->name = g_strdup("Zephyr"); ret->login = zephyr_login; ret->close = zephyr_close; ret->add_buddy = zephyr_add_buddy; @@ -966,27 +961,11 @@ #ifndef STATIC -char *gaim_plugin_init(GModule *handle) -{ - load_protocol(zephyr_init, sizeof(struct prpl)); - return NULL; -} - -void gaim_plugin_remove() -{ - struct prpl *p = find_prpl(PROTO_ZEPHYR); - if (p == my_protocol) - unload_protocol(p); -} - -char *name() +void *gaim_prpl_init(struct prpl *prpl) { - return "Zephyr"; + zephyr_init(prpl); + prpl->plug->desc.api_version = PLUGIN_API_VERSION; } -char *description() -{ - return PRPL_DESC("Zephyr"); -} #endif |