Mercurial > pidgin.yaz
diff src/plugin.c @ 11772:d1d5f27de95d
[gaim-migrate @ 14063]
Added a bunch of accessor functions for the PluginInfo struct off of the plugin...
committer: Tailor Script <tailor@pidgin.im>
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Sun, 23 Oct 2005 23:26:14 +0000 |
parents | 3c88e4519fd1 |
children | 2b9ca8861ca5 |
line wrap: on
line diff
--- a/src/plugin.c Sun Oct 23 23:04:31 2005 +0000 +++ b/src/plugin.c Sun Oct 23 23:26:14 2005 +0000 @@ -611,6 +611,62 @@ return plugin->loaded; } +const gchar * +gaim_plugin_get_id(const GaimPlugin *plugin) { + g_return_val_if_fail(plugin, NULL); + g_return_val_if_fail(plugin->info, NULL); + + return plugin->info->id; +} + +const gchar * +gaim_plugin_get_name(const GaimPlugin *plugin) { + g_return_val_if_fail(plugin, NULL); + g_return_val_if_fail(plugin->info, NULL); + + return plugin->info->name; +} + +const gchar * +gaim_plugin_get_version(const GaimPlugin *plugin) { + g_return_val_if_fail(plugin, NULL); + g_return_val_if_fail(plugin->info, NULL); + + return plugin->info->version; +} + +const gchar * +gaim_plugin_get_summary(const GaimPlugin *plugin) { + g_return_val_if_fail(plugin, NULL); + g_return_val_if_fail(plugin->info, NULL); + + return plugin->info->summary; +} + +const gchar * +gaim_plugin_get_description(const GaimPlugin *plugin) { + g_return_val_if_fail(plugin, NULL); + g_return_val_if_fail(plugin->info, NULL); + + return plugin->info->description; +} + +const gchar * +gaim_plugin_get_author(const GaimPlugin *plugin) { + g_return_val_if_fail(plugin, NULL); + g_return_val_if_fail(plugin->info, NULL); + + return plugin->info->author; +} + +const gchar * +gaim_plugin_get_homepage(const GaimPlugin *plugin) { + g_return_val_if_fail(plugin, NULL); + g_return_val_if_fail(plugin->info, NULL); + + return plugin->info->homepage; +} + /************************************************************************** * Plugin IPC **************************************************************************/