Mercurial > pidgin
view plugins/simple.c @ 1046:4593605da0e2
[gaim-migrate @ 1056]
1. made it compile again (gc->groups instead of just groups, account_online(user, gc) instead of just (gc), and most things are GSLists now, oh yeah, serv_got_update(gc, ...) and add_buddy(gc, ...)).
2. took out the stuff to set up the buddy list window, because account_online handles that now
3. change the init function to use load_protocol(), which is the new interface for loading a new protocol. it's basically the same but without actually touching the protocols list.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Wed, 01 Nov 2000 11:34:56 +0000 |
| parents | f7c6366ca703 |
| children | ece2d1543b20 |
line wrap: on
line source
#define GAIM_PLUGINS #include <stdio.h> #include "gaim.h" static void *handle = NULL; void gaim_plugin_init(void *h) { printf("plugin loaded.\n"); handle = h; } void gaim_plugin_remove() { printf("plugin unloaded.\n"); handle = NULL; } void gaim_plugin_config() { printf("configuring plugin.\n"); } char *name() { return "Simple Plugin Version 1.0"; } char *description() { return "Tests to see that most things are working."; }
