e_uuid_store: Add function to dump the table for debugging

This commit is contained in:
Stefan Schmidt 2014-04-09 15:11:57 +02:00
parent 7a940b1062
commit 8ebda14276
2 changed files with 18 additions and 0 deletions

View File

@ -21,6 +21,23 @@
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)
{

View 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);