summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorWilliam Goodspeed ?? <>2022-09-01 16:47:28 -0500
committerWilliam Goodspeed ?? <>2022-09-01 16:47:28 -0500
commit8e89bcebcd105a32e9975b3617f54a5ec1ee5e44 (patch)
tree246adc951014c75c56b82704ad7b0b8414f0fa05 /doc
parent2d5c63224795b3d61088ef447cfbbdefb3d135c1 (diff)
downloadpidgin-8e89bcebcd105a32e9975b3617f54a5ec1ee5e44.tar.gz
fix the missing argument in the C plugin tutorial
Reviewed at https://reviews.imfreedom.org/r/1705/
Diffstat (limited to 'doc')
-rw-r--r--doc/reference/libpurple/tut_c_plugins.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/reference/libpurple/tut_c_plugins.md b/doc/reference/libpurple/tut_c_plugins.md
index 33cd6c3c09..5f5f9c33e9 100644
--- a/doc/reference/libpurple/tut_c_plugins.md
+++ b/doc/reference/libpurple/tut_c_plugins.md
@@ -59,7 +59,7 @@ hello_world_load(GPluginPlugin *plugin, GError **error)
}
static gboolean
-hello_world_unload(GPluginPlugin *plugin, GError **error)
+hello_world_unload(GPluginPlugin *plugin, gboolean shutdown, GError **error)
{
return TRUE;
}
@@ -93,8 +93,9 @@ can call `g_set_error()` on the `error` argument and return `FALSE`.
`hello_world_unload` is called when the plugin is unloaded. That is, when the
user has manually unloaded the plugin or the program is shutting down. We can
-use it to wrap up everything, and free our variables. Again, if there are any
-errors, you can call `g_set_error()` on the `error` argument and return `FALSE`.
+use it to wrap up everything, and free our variables. If the program is shutting
+down, the `shutdown` argument will be `TRUE`. Again, if there are any errors, you
+can call `g_set_error()` on the `error` argument and return `FALSE`.
Finally we have `GPLUGIN_NATIVE_PLUGIN_DECLARE()`. It is a helper macro that
makes creating plugins easier. It has a single argument which is the prefix