comparison plugins/HOWTO @ 445:e4c34ca88d9b

[gaim-migrate @ 455] Hehehehehe Libfaim got updated, gaim got updated. btw, gaim/faim can't sign in yet, don't ask me why. it's not my fault. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 29 Jun 2000 20:40:28 +0000
parents 59d97cd251ff
children f74eefb55a78
comparison
equal deleted inserted replaced
444:e7885c54ed2f 445:e4c34ca88d9b
55 When your plugin gets unloaded, gaim will try to call gaim_plugin_remove(). It 55 When your plugin gets unloaded, gaim will try to call gaim_plugin_remove(). It
56 doesn't have to be there, but it's nice if, say, you create a window, and when 56 doesn't have to be there, but it's nice if, say, you create a window, and when
57 the plugin gets unloaded, it removes the window. Also, all the callbacks you 57 the plugin gets unloaded, it removes the window. Also, all the callbacks you
58 have attached to gaim signals will be removed. 58 have attached to gaim signals will be removed.
59 59
60 Plugins can also unload themselves. To do this, call gaim_plugin_unload(void *)
61 (the void* is the handle passed to gaim_plugin_init). When your plugin gets
62 unloaded, gaim will remove all of your callbacks. It will not call your
63 gaim_plugin_remove function, however, since it will assume you have already
64 done the necessary cleanup.
65
60 Compilation of the plugins is fairly straight-forward; there is a Makefile in 66 Compilation of the plugins is fairly straight-forward; there is a Makefile in
61 this directory that has a rule for making the .so file from a .c file. No 67 this directory that has a rule for making the .so file from a .c file. No
62 modification of the Makefile should be necessary, unless if you simply want 68 modification of the Makefile should be necessary, unless if you simply want
63 to type 'make' to have it made; otherwise, 'make filename.so' will take 69 to type 'make' to have it made; otherwise, 'make filename.so' will take
64 filename.c and make the .so plugin from it. 70 filename.c and make the .so plugin from it. If you need to link in with extra
71 libraries, you can set the environment variable PLUGIN_LIBS to be the libraries
72 you want to link with.
65 73
66 There are a few examples in this directory. Enjoy. 74 There are a few examples in this directory. Enjoy.