]> git.0d.be Git - empathy.git/commitdiff
Update python binding
authorXavier Claessens <xclaesse@src.gnome.org>
Thu, 8 May 2008 18:42:11 +0000 (18:42 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Thu, 8 May 2008 18:42:11 +0000 (18:42 +0000)
svn path=/trunk/; revision=1095

python/pyempathy/pyempathy.defs
python/pyempathy/pyempathy.override
python/update-binding.sh

index 700d43935a6ff24d6108bb98ef1880a4368fba90..cc9ef339e271ad1605c74e1f5b96d999f6b40aa2 100644 (file)
   (gtype-id "EMPATHY_TYPE_CONTACT_MANAGER")
 )
 
+(define-object Dispatcher
+  (in-module "Empathy")
+  (parent "GObject")
+  (c-name "EmpathyDispatcher")
+  (gtype-id "EMPATHY_TYPE_DISPATCHER")
+)
+
 (define-object Idle
   (in-module "Empathy")
   (parent "GObject")
     '("contact" "EMPATHY_DEBUG_CONTACT")
     '("account" "EMPATHY_DEBUG_ACCOUNT")
     '("irc" "EMPATHY_DEBUG_IRC")
-    '("filter" "EMPATHY_DEBUG_FILTER")
+    '("dispatcher" "EMPATHY_DEBUG_DISPATCHER")
     '("other" "EMPATHY_DEBUG_OTHER")
   )
 )
   (return-type "EmpathyTpChat*")
   (parameters
     '("TpChannel*" "channel")
-    '("gboolean" "acknowledge")
   )
 )
 
 )
 
 
+
+;; From empathy-dispatcher.h
+
+(define-function empathy_dispatcher_get_type
+  (c-name "empathy_dispatcher_get_type")
+  (return-type "GType")
+)
+
+(define-function empathy_dispatcher_new
+  (c-name "empathy_dispatcher_new")
+  (is-constructor-of "EmpathyDispatcher")
+  (return-type "EmpathyDispatcher*")
+)
+
+(define-method channel_process
+  (of-object "EmpathyDispatcher")
+  (c-name "empathy_dispatcher_channel_process")
+  (return-type "none")
+  (parameters
+    '("TpChannel*" "channel")
+  )
+)
+
+(define-function empathy_dispatcher_tube_get_type
+  (c-name "empathy_dispatcher_tube_get_type")
+  (return-type "GType")
+)
+
+(define-method ref
+  (of-object "EmpathyDispatcherTube")
+  (c-name "empathy_dispatcher_tube_ref")
+  (return-type "EmpathyDispatcherTube*")
+)
+
+(define-method unref
+  (of-object "EmpathyDispatcherTube")
+  (c-name "empathy_dispatcher_tube_unref")
+  (return-type "none")
+)
+
+(define-method tube_process
+  (of-object "EmpathyDispatcher")
+  (c-name "empathy_dispatcher_tube_process")
+  (return-type "none")
+  (parameters
+    '("EmpathyDispatcherTube*" "tube")
+  )
+)
+
+
index 5f9261b74876aac99d2053f73a8f419ddf3e5373..0b44a265d9710d034545d4ccc5cc4021c05d0b25 100644 (file)
@@ -11,6 +11,7 @@ headers
 #include "empathy-contact-list.h"
 #include "empathy-contact-manager.h"
 #include "empathy-debug.h"
+#include "empathy-dispatcher.h"
 #include "empathy-enum-types.h"
 #include "empathy-idle.h"
 #include "empathy-irc-network.h"
index b39341ffcefc389001f4b1644ba98813ab97138e..d07c4d6e0fc875c4dfd41364e8713b0b2e6ab2bd 100755 (executable)
@@ -30,6 +30,7 @@ python /usr/share/pygtk/2.0/codegen/h2def.py  \
        empathy-irc-network.h                   \
        empathy-irc-server.h                    \
        empathy-tube-handler.h                  \
+       empathy-dispatcher.h                    \
  > ../python/pyempathy/pyempathy.defs
 
 # Update the list of headers from Makefile.am