soylent r163 - trunk/libsoylent



Author: svenp
Date: Tue Jun 17 20:52:08 2008
New Revision: 163
URL: http://svn.gnome.org/viewvc/soylent?rev=163&view=rev

Log:
added private utility functions

Added:
   trunk/libsoylent/sl-priv-util.c
   trunk/libsoylent/sl-priv-util.h

Added: trunk/libsoylent/sl-priv-util.c
==============================================================================
--- (empty file)
+++ trunk/libsoylent/sl-priv-util.c	Tue Jun 17 20:52:08 2008
@@ -0,0 +1,11 @@
+/**/
+
+#include "sl-priv-util.h"
+
+ESourceGroup *
+sl_priv_util_source_tree_get_default_group (ESourceList *source_tree)
+{
+  GSList *groups = e_source_list_peek_groups (source_tree);
+  g_assert (groups != NULL);
+  return groups->data;
+}

Added: trunk/libsoylent/sl-priv-util.h
==============================================================================
--- (empty file)
+++ trunk/libsoylent/sl-priv-util.h	Tue Jun 17 20:52:08 2008
@@ -0,0 +1,11 @@
+/**/
+
+#ifndef SL_PRIVUTIL_H
+#define SL_PRIVUTIL_H
+
+#include <libebook/e-book.h>
+
+ESourceGroup *sl_priv_util_source_tree_get_default_group
+  (ESourceList *source_tree);
+
+#endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]