e_uuid_store: Add function to dump the table for debugging
authorStefan Schmidt <s.schmidt@samsung.com>
Wed, 9 Apr 2014 13:11:57 +0000 (15:11 +0200)
committerStefan Schmidt <s.schmidt@samsung.com>
Thu, 24 Apr 2014 09:03:52 +0000 (11:03 +0200)
src/bin/e_uuid_store.c
src/bin/e_uuid_store.h

index 3be21b6..58c7833 100644 (file)
 
 struct uuid_store *store;
 
+void
+e_uuid_dump(void)
+ {
+   struct uuid_table *table;
+   struct table_entry *entry;
+   Eina_List *l;
+
+   if (store == NULL) return;
+
+   table = store->table;
+   if (table == NULL) return;
+
+   INF("Dump UUID table:");
+   EINA_LIST_FOREACH(table->entries, l, entry)
+     INF("UUID %li, x=%i, y=%i, width=%i, heigth=%i", entry->uuid, entry->x, entry->y, entry->width, entry->heigth );
+ }
+
 EINTERN int
 e_uuid_store_init(void)
  {
index 376b646..40cfb93 100644 (file)
@@ -27,6 +27,7 @@ struct uuid_store {
 
 EINTERN int e_uuid_store_init(void);
 EINTERN int e_uuid_store_shutdown(void);
+EAPI void e_uuid_dump(void);
 EAPI Eina_Bool e_uuid_store_reload(void);
 EAPI Eina_Bool e_uuid_store_entry_del(long uuid);
 EAPI Eina_Bool e_uuid_store_entry_update(long uuid, E_Client *ec);