[aravis] debug: add a "all" debug domain.



commit ba6c4e156de9f9b17a63de83fae048e38674739a
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Tue Jan 11 22:43:05 2011 +0100

    debug: add a "all" debug domain.

 src/arvdebug.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/arvdebug.c b/src/arvdebug.c
index c8068ee..4c2f690 100644
--- a/src/arvdebug.c
+++ b/src/arvdebug.c
@@ -63,7 +63,10 @@ arv_debug_check (const char *domain)
 	if (arv_debug_domains == NULL)
 		arv_debug_initialize (g_getenv ("ARV_DEBUG"));
 
-	return g_hash_table_lookup (arv_debug_domains, domain) != NULL;
+	if (g_hash_table_lookup (arv_debug_domains, domain) != NULL)
+		return TRUE;
+
+	return g_hash_table_lookup (arv_debug_domains, "all") != NULL;
 }
 
 void



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