/soc/2015/igor.gajowiak/chatlog: eab12f34aa58: Added an interfac...

Igor Gajowiak igor.gajowiak at gmail.com
Thu Aug 6 14:55:06 EDT 2015


Changeset: eab12f34aa58550f57a0aaa66cd95ec1a9189ad1
Author:	 Igor Gajowiak <igor.gajowiak at gmail.com>
Date:	 2015-08-06 20:54 +0200
Branch:	 default
URL: https://hg.pidgin.im/soc/2015/igor.gajowiak/chatlog/rev/eab12f34aa58

Description:

Added an interface for getting registered generic logs.

diffstat:

 libpurple/genericlog.c |   6 ++++++
 libpurple/genericlog.h |  10 ++++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)

diffs (36 lines):

diff --git a/libpurple/genericlog.c b/libpurple/genericlog.c
--- a/libpurple/genericlog.c
+++ b/libpurple/genericlog.c
@@ -84,6 +84,12 @@ purple_genericlog_get_name(const PurpleG
 /* Log subsystem API                                                      */
 /**************************************************************************/
 
+GList *
+purple_genericlog_get_registered_logs()
+{
+	return purple_genericlogs;
+}
+
 static gint
 id_compare(gconstpointer log, gconstpointer id)
 {
diff --git a/libpurple/genericlog.h b/libpurple/genericlog.h
--- a/libpurple/genericlog.h
+++ b/libpurple/genericlog.h
@@ -178,6 +178,16 @@ purple_genericlog_get_name(const PurpleG
 /**************************************************************************/
 
 /**
+ * purple_genericlog_get_registered_logs:
+ *
+ * Gets all registered logs.
+ *
+ * Returns: A #GList of elements of type #PurpleGenericLog.
+ */
+GList*
+purple_genericlog_get_registered_logs();
+
+/**
  * purple_genericlog_find_by_id:
  * @id: The id of the log.
  *



More information about the Commits mailing list