soylent r264 - in trunk/libsoylent: . test
- From: svenp svn gnome org
- To: svn-commits-list gnome org
- Subject: soylent r264 - in trunk/libsoylent: . test
- Date: Mon, 4 Aug 2008 17:31:40 +0000 (UTC)
Author: svenp
Date: Mon Aug 4 17:31:40 2008
New Revision: 264
URL: http://svn.gnome.org/viewvc/soylent?rev=264&view=rev
Log:
added TODO-list for missing features
added macros useful for debugging
Modified:
trunk/libsoylent/soylent.h
trunk/libsoylent/test/test-playground.c
Modified: trunk/libsoylent/soylent.h
==============================================================================
--- trunk/libsoylent/soylent.h (original)
+++ trunk/libsoylent/soylent.h Mon Aug 4 17:31:40 2008
@@ -21,9 +21,50 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+/*
+ * general things that have to be changed / added
+ * ---
+ * TODO: add an SlBookManager (responsible for receiving signals when a book is
+ * created / deleted)
+ * TODO: add an sl_book_open method (one should be able to connect signals
+ * before a book is used, so no events get lost)
+ * TODO: SlBook should be derived from SlStorage
+ * TODO: add on_purpose to signals (TRUE if the user made a change explicitly
+ * (e.g. by calling add_attribute), FALSE if not (i.e. the backend reports a
+ * a change))
+ */
+
#ifndef SOYLENT_H
#define SOYLENT_H
+#define SL_ENABLE_DEBUG_ALL
+
+#define sl_debug(unit, format, ...) g_printerr ("dbg[%s]: ", unit); \
+ g_printerr (format, __VA_ARGS__); \
+ g_printerr ("\n")
+
+#ifdef SL_ENABLE_DEBUG_ALL
+ #define SL_ENABLE_DEBUG_BOOK
+ #define SL_ENABLE_DEBUG_ENTITY
+ #define SL_ENABLE_DEBUG_ATTRIBUTE
+#endif
+
+#ifdef SL_ENABLE_DEBUG_BOOK
+ #define sl_debug_book(format, ...) sl_debug ("Book", format, __VA_ARGS__)
+#else
+ #define sl_debug_book(format, ...)
+#endif
+#ifdef SL_ENABLE_DEBUG_ENTITY
+ #define sl_debug_entity(format, ...) sl_debug ("Entity", format, __VA_ARGS__)
+#else
+ #define sl_debug_entity(format, ...)
+#endif
+#ifdef SL_ENABLE_DEBUG_ATTRIBUTE
+ #define sl_debug_attribute(format, ...) sl_debug ("Attribute", format, __VA_ARGS__)
+#else
+ #define sl_debug_attribute(format, ...)
+#endif
+
#include "sl-entity.h"
#include "sl-entity-eds.h"
#include "sl-attribute.h"
Modified: trunk/libsoylent/test/test-playground.c
==============================================================================
--- trunk/libsoylent/test/test-playground.c (original)
+++ trunk/libsoylent/test/test-playground.c Mon Aug 4 17:31:40 2008
@@ -21,6 +21,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+/* TODO
+ * test1: add attributes and values to a predefined addressbrook and check if all
+ * changes are as expected
+ * test2: run test1 and check if all signals are emitted correctly; after that
+ * check like in test1 if all changes are as expected
+ */
+
#include "test.h"
int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]