Declaration [src]

purple_core_quit_cb (
  gpointer unused

Description [src]

Calls purple_core_quit(). This can be used as the function passed to g_timeout_add() when you want to shutdown Purple in a specified amount of time. When shutting down Purple from a plugin, you must use this instead of purple_core_quit(); for an immediate exit, use a timeout value of 0:

g_timeout_add(0, purple_core_quit_cb, NULL)

This ensures that code from your plugin is not being executed when purple_core_quit() is called. If the plugin called purple_core_quit() directly, you would get a core dump after purple_core_quit() executes and control returns to your plugin because purple_core_quit() frees all plugins.


unused gpointer

This argument is for consistency with a timeout callback. It is otherwise unused.

 The argument can be NULL.
 The data is owned by the caller of the function.

Return value

Returns: gboolean
  No description available.