/soc/2013/ankitkv/gobjectification: 28631d5a44f5: Added purple_p...

Ankit Vani a at nevitus.org
Sun Aug 11 13:19:08 EDT 2013


Changeset: 28631d5a44f5ed85f5d2cf0c72f130bb542af3d6
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-08-11 22:48 +0530
Branch:	 soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/28631d5a44f5

Description:

Added purple_plugin_info_get_error()

diffstat:

 libpurple/plugins.c |  10 ++++++++++
 libpurple/plugins.h |  10 ++++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)

diffs (40 lines):

diff --git a/libpurple/plugins.c b/libpurple/plugins.c
--- a/libpurple/plugins.c
+++ b/libpurple/plugins.c
@@ -659,6 +659,16 @@ purple_plugin_info_get_pref_frame_callba
 	return priv->get_pref_frame;
 }
 
+const gchar *
+purple_plugin_info_get_error(const PurplePluginInfo *info)
+{
+	PurplePluginInfoPrivate *priv = PURPLE_PLUGIN_INFO_GET_PRIVATE(info);
+
+	g_return_val_if_fail(priv != NULL, NULL);
+
+	return priv->error;
+}
+
 /**************************************************************************
  * PluginAction API
  **************************************************************************/
diff --git a/libpurple/plugins.h b/libpurple/plugins.h
--- a/libpurple/plugins.h
+++ b/libpurple/plugins.h
@@ -523,6 +523,16 @@ purple_plugin_info_get_actions_callback(
 PurplePluginPrefFrameCallback
 purple_plugin_info_get_pref_frame_callback(const PurplePluginInfo *info);
 
+/**
+ * Returns an error in the plugin info that would prevent the plugin from being
+ * loaded.
+ *
+ * @param info The plugin info.
+ *
+ * @return The plugin info error, or @c NULL.
+ */
+const gchar *purple_plugin_info_get_error(const PurplePluginInfo *info);
+
 /*@}*/
 
 /**************************************************************************/



More information about the Commits mailing list