diff -r 6e95a22ee02f -r bbeb2e98ea5b libpurple/plugins/joinpart.c --- a/libpurple/plugins/joinpart.c Thu Jun 10 21:23:12 2021 -0500 +++ b/libpurple/plugins/joinpart.c Thu Jun 10 23:40:54 2021 -0500 @@ -22,6 +22,9 @@ #include +#include +#include + #include #define JOINPART_PLUGIN_ID "core-rlaager-joinpart" @@ -202,8 +205,8 @@ return frame; } -static PurplePluginInfo * -plugin_query(GError **error) +static GPluginPluginInfo * +join_part_query(GError **error) { const gchar * const authors[] = { "Richard Laager ", @@ -227,7 +230,8 @@ ); } -static gboolean plugin_load(PurplePlugin *plugin, GError **error) +static gboolean +join_part_load(GPluginPlugin *plugin, GError **error) { void *conv_handle; GHashTable *users; @@ -261,7 +265,8 @@ return TRUE; } -static gboolean plugin_unload(PurplePlugin *plugin, GError **error) +static gboolean +join_part_unload(GPluginPlugin *plugin, GError **error) { /* Destroy the hash table. The core plugin code will * disconnect the signals, and since Purple is single-threaded, @@ -273,4 +278,4 @@ return TRUE; } -PURPLE_PLUGIN_INIT(joinpart, plugin_query, plugin_load, plugin_unload); +GPLUGIN_NATIVE_PLUGIN_DECLARE(join_part)