| 87 enabled the plugin or libpurple is loading a plugin that was previously loaded. |
87 enabled the plugin or libpurple is loading a plugin that was previously loaded. |
| 88 You can initialize any variables, register dynamic types, and so on in this |
88 You can initialize any variables, register dynamic types, and so on in this |
| 89 function. Plugins may also want to add their preferences to the pref |
89 function. Plugins may also want to add their preferences to the pref |
| 90 tree--more about that later. In this plugin we'll just use it to display a |
90 tree--more about that later. In this plugin we'll just use it to display a |
| 91 message. Just like `hello_world_query` if there are any errors that arise, you |
91 message. Just like `hello_world_query` if there are any errors that arise, you |
| 92 can call `g_set_error()` on the `error` agument and return `FALSE`. |
92 can call `g_set_error()` on the `error` argument and return `FALSE`. |
| 93 |
93 |
| 94 `hello_world_unload` is called when the plugin is unloaded. That is, when the |
94 `hello_world_unload` is called when the plugin is unloaded. That is, when the |
| 95 user has manually unloaded the plugin or the program is shutting down. We can |
95 user has manually unloaded the plugin or the program is shutting down. We can |
| 96 use it to wrap up everything, and free our variables. Again, if there are any |
96 use it to wrap up everything, and free our variables. Again, if there are any |
| 97 errors, you can call `g_set_error()` on the `error` argument and return `FALSE`. |
97 errors, you can call `g_set_error()` on the `error` argument and return `FALSE`. |