doc/reference/libpurple/tut_c_plugins.md

changeset 41638
abc29c6a3e59
parent 41165
24e2c88a7fc2
child 42782
9271f4acf563
--- a/doc/reference/libpurple/tut_c_plugins.md	Thu Sep 01 16:43:09 2022 -0500
+++ b/doc/reference/libpurple/tut_c_plugins.md	Thu Sep 01 16:47:28 2022 -0500
@@ -59,7 +59,7 @@
 }
 
 static gboolean
-hello_world_unload(GPluginPlugin *plugin, GError **error)
+hello_world_unload(GPluginPlugin *plugin, gboolean shutdown, GError **error)
 {
 	return TRUE;
 }
@@ -93,8 +93,9 @@
 
 `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

mercurial