aboutsummaryrefslogtreecommitdiffstats
path: root/python/pyempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-05-01 05:44:38 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-05-01 05:44:38 +0800
commit692886962aec6022d4fab9cdbd9867f2acd7f75c (patch)
treef0db8cc8325ed3b377d5663c7377db6967e41e8b /python/pyempathy
parentfb06002dc6fcf523f22f671aeaf22054515e926a (diff)
downloadgsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar
gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.gz
gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.bz2
gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.lz
gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.xz
gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.zst
gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.zip
Make use of tp-glib debug system.
svn path=/trunk/; revision=1066
Diffstat (limited to 'python/pyempathy')
-rw-r--r--python/pyempathy/pyempathy.defs38
1 files changed, 32 insertions, 6 deletions
diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs
index a722461c4..b45b06bab 100644
--- a/python/pyempathy/pyempathy.defs
+++ b/python/pyempathy/pyempathy.defs
@@ -143,6 +143,21 @@
;; Enumerations and flags ...
+(define-flags DebugFlags
+ (in-module "Empathy")
+ (c-name "EmpathyDebugFlags")
+ (gtype-id "EMPATHY_TYPE_DEBUG_FLAGS")
+ (values
+ '("tp" "EMPATHY_DEBUG_TP")
+ '("chat" "EMPATHY_DEBUG_CHAT")
+ '("contact" "EMPATHY_DEBUG_CONTACT")
+ '("account" "EMPATHY_DEBUG_ACCOUNT")
+ '("irc" "EMPATHY_DEBUG_IRC")
+ '("filter" "EMPATHY_DEBUG_FILTER")
+ '("other" "EMPATHY_DEBUG_OTHER")
+ )
+)
+
(define-enum RegExType
(in-module "Empathy")
(c-name "EmpathyRegExType")
@@ -359,19 +374,30 @@
;; From empathy-debug.h
-(define-function empathy_debug_impl
- (c-name "empathy_debug_impl")
+(define-function empathy_debug_flag_is_set
+ (c-name "empathy_debug_flag_is_set")
+ (return-type "gboolean")
+ (parameters
+ '("EmpathyDebugFlags" "flag")
+ )
+)
+
+(define-function empathy_debug
+ (c-name "empathy_debug")
(return-type "none")
(parameters
- '("const-gchar*" "domain")
- '("const-gchar*" "msg")
+ '("EmpathyDebugFlags" "flag")
+ '("const-gchar*" "format")
)
(varargs #t)
)
-(define-function empathy_debug_set_log_file_from_env
- (c-name "empathy_debug_set_log_file_from_env")
+(define-function empathy_debug_set_flags
+ (c-name "empathy_debug_set_flags")
(return-type "none")
+ (parameters
+ '("const-gchar*" "flags_string")
+ )
)