comparison plugins/HOWTO @ 398:59d97cd251ff

[gaim-migrate @ 408] this better work committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 12 Jun 2000 13:59:03 +0000
parents bbff7d508593
children e4c34ca88d9b
comparison
equal deleted inserted replaced
397:0b5ecac8aa54 398:59d97cd251ff
26 The void * that gets passed to gaim_plugin_init is the handle for the plugin. 26 The void * that gets passed to gaim_plugin_init is the handle for the plugin.
27 DO NOT CHANGE THIS POINTER! Bad things will happen. You've been warned. It's 27 DO NOT CHANGE THIS POINTER! Bad things will happen. You've been warned. It's
28 needed for connecting to signals and things. It's a good idea to remember it 28 needed for connecting to signals and things. It's a good idea to remember it
29 somehow. 29 somehow.
30 30
31 gaim_plugin_init should return an int. If the int it returns is anything other 31 gaim_plugin_init should return an int. If the int returned is less than 0, it
32 than 1, it is interpreted as an error, and gaim_plugin_error is called. See 32 is interpreted as an error, and gaim_plugin_error is called. See the ChangeLog
33 the ChangeLog file in this directory for more details, and error.c for an 33 file in this directory for more details, and error.c for an example.
34 example.
35 34
36 You can basically do anything you want in the plugin. You can make function 35 You can basically do anything you want in the plugin. You can make function
37 calls, change public widgets, display new widgets, things like that. But the 36 calls, change public widgets, display new widgets, things like that. But the
38 really neat thing is you can do things at events. For example, when one of 37 really neat thing is you can do things at events. For example, when one of
39 your buddies signs on, you can instantly send them a message. You can modify 38 your buddies signs on, you can instantly send them a message. You can modify