diff -r 6e95a22ee02f -r bbeb2e98ea5b libpurple/plugins/idle.c --- a/libpurple/plugins/idle.c Thu Jun 10 21:23:12 2021 -0500 +++ b/libpurple/plugins/idle.c Thu Jun 10 23:40:54 2021 -0500 @@ -24,6 +24,9 @@ #include +#include +#include + #include /* This plugin no longer depends on gtk */ @@ -262,8 +265,8 @@ idled_accts = g_list_remove(idled_accts, account); } -static PurplePluginInfo * -plugin_query(GError **error) +static GPluginPluginInfo * +idle_query(GError **error) { const gchar * const authors[] = { "Eric Warmenhoven ", @@ -288,7 +291,7 @@ } static gboolean -plugin_load(PurplePlugin *plugin, GError **error) +idle_load(GPluginPlugin *plugin, GError **error) { purple_signal_connect(purple_connections_get_handle(), "signing-off", plugin, @@ -298,12 +301,11 @@ } static gboolean -plugin_unload(PurplePlugin *plugin, GError **error) +idle_unload(GPluginPlugin *plugin, GError **error) { unidle_all_action(NULL); return TRUE; } -PURPLE_PLUGIN_INIT(idle, plugin_query, plugin_load, plugin_unload); - +GPLUGIN_NATIVE_PLUGIN_DECLARE(idle);