# HG changeset patch # User Eric Warmenhoven # Date 956275432 0 # Node ID e8dae982b37ced8f7300be62719f1f86b726664f # Parent 01be710859643da05bdfcbe86d3bf746cb70afb7 [gaim-migrate @ 154] I figured I should document how to make your plugin configurable and how to compile it (even though compiling it should be pretty obvious from reading the Makefile). committer: Tailor Script diff -r 01be71085964 -r e8dae982b37c plugins/HOWTO --- a/plugins/HOWTO Thu Apr 20 23:50:57 2000 +0000 +++ b/plugins/HOWTO Fri Apr 21 00:03:52 2000 +0000 @@ -42,9 +42,21 @@ that plugins will have difficulty working together. But then again, that's what shared memory is for. +Plugins can be configured. This makes is so they don't have to be recompiled +in order to change things internal to them, and it's also just a cool feature +to have :). It's optional; to allow your plugin to be configured, add a +function called gaim_plugin_config(). The advised course of action is to have +it pop up a dialog window; but it's your plugin. + When your plugin gets unloaded, gaim will try to call gaim_plugin_remove(). It doesn't have to be there, but it's nice if, say, you create a window, and when the plugin gets unloaded, it removes the window. Also, all the callbacks you have attached to gaim signals will be removed. +Compilation of the plugins is fairly straight-forward; there is a Makefile in +this directory that has a rule for making the .so file from a .c file. No +modification of the Makefile should be necessary, unless if you simply want +to type 'make' to have it made; otherwise, 'make filename.so' will take +filename.c and make the .so plugin from it. + There are a few examples in this directory. Enjoy.