/*------------------------------------------------------------------------ * Unloading the MXit plugin. * * @param plugin The plugin object * @param error Unload error (if any) */ static gboolean plugin_unload( PurplePlugin *plugin, GError **error ) { if (!purple_protocols_remove(my_protocol, error)) return FALSE; return TRUE; }
static gboolean plugin_unload(PurplePlugin *plugin #if PURPLE_VERSION_CHECK(3, 0, 0) , GError **error #endif ) { #if PURPLE_VERSION_CHECK(3, 0, 0) if (!purple_protocols_remove(skypeweb_protocol, error)) return FALSE; #endif return TRUE; }