aboutsummaryrefslogtreecommitdiffstats
path: root/python/pyempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-02-03 18:04:58 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-02-03 18:04:58 +0800
commitee1ceba3cacd37be2bb9b9fa117029126e35e91a (patch)
tree08a0f0a7f0d52d99b4de09e289f84ee94235051a /python/pyempathy
parent028b73a7c053c8a53de8153030ea225bd31bac7d (diff)
downloadgsoc2013-empathy-ee1ceba3cacd37be2bb9b9fa117029126e35e91a.tar
gsoc2013-empathy-ee1ceba3cacd37be2bb9b9fa117029126e35e91a.tar.gz
gsoc2013-empathy-ee1ceba3cacd37be2bb9b9fa117029126e35e91a.tar.bz2
gsoc2013-empathy-ee1ceba3cacd37be2bb9b9fa117029126e35e91a.tar.lz
gsoc2013-empathy-ee1ceba3cacd37be2bb9b9fa117029126e35e91a.tar.xz
gsoc2013-empathy-ee1ceba3cacd37be2bb9b9fa117029126e35e91a.tar.zst
gsoc2013-empathy-ee1ceba3cacd37be2bb9b9fa117029126e35e91a.zip
Update python bindings
svn path=/trunk/; revision=2419
Diffstat (limited to 'python/pyempathy')
-rw-r--r--python/pyempathy/pyempathy.defs91
-rw-r--r--python/pyempathy/pyempathy.override1
2 files changed, 92 insertions, 0 deletions
diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs
index efcc96483..594a51e97 100644
--- a/python/pyempathy/pyempathy.defs
+++ b/python/pyempathy/pyempathy.defs
@@ -7,6 +7,20 @@
(gtype-id "EMPATHY_TYPE_ACCOUNT_MANAGER")
)
+(define-object CallFactory
+ (in-module "Empathy")
+ (parent "GObject")
+ (c-name "EmpathyCallFactory")
+ (gtype-id "EMPATHY_TYPE_CALL_FACTORY")
+)
+
+(define-object CallHandler
+ (in-module "Empathy")
+ (parent "GObject")
+ (c-name "EmpathyCallHandler")
+ (gtype-id "EMPATHY_TYPE_CALL_HANDLER")
+)
+
(define-object Chatroom
(in-module "Empathy")
(parent "GObject")
@@ -474,6 +488,83 @@
+;; From empathy-call-factory.h
+
+(define-function call_factory_get_type
+ (c-name "empathy_call_factory_get_type")
+ (return-type "GType")
+)
+
+(define-function call_factory_initialise
+ (c-name "empathy_call_factory_initialise")
+ (return-type "EmpathyCallFactory*")
+)
+
+(define-function call_factory_get
+ (c-name "empathy_call_factory_get")
+ (return-type "EmpathyCallFactory*")
+)
+
+(define-method new_call
+ (of-object "EmpathyCallFactory")
+ (c-name "empathy_call_factory_new_call")
+ (return-type "none")
+ (parameters
+ '("EmpathyContact*" "contact")
+ )
+)
+
+(define-method claim_channel
+ (of-object "EmpathyCallFactory")
+ (c-name "empathy_call_factory_claim_channel")
+ (return-type "none")
+ (parameters
+ '("EmpathyDispatchOperation*" "operation")
+ )
+)
+
+
+
+;; From empathy-call-handler.h
+
+(define-function call_handler_get_type
+ (c-name "empathy_call_handler_get_type")
+ (return-type "GType")
+)
+
+(define-function call_handler_new_for_contact
+ (c-name "empathy_call_handler_new_for_contact")
+ (return-type "EmpathyCallHandler*")
+ (parameters
+ '("EmpathyContact*" "contact")
+ )
+)
+
+(define-function call_handler_new_for_channel
+ (c-name "empathy_call_handler_new_for_channel")
+ (return-type "EmpathyCallHandler*")
+ (parameters
+ '("EmpathyTpCall*" "call")
+ )
+)
+
+(define-method start_call
+ (of-object "EmpathyCallHandler")
+ (c-name "empathy_call_handler_start_call")
+ (return-type "none")
+)
+
+(define-method set_bus
+ (of-object "EmpathyCallHandler")
+ (c-name "empathy_call_handler_set_bus")
+ (return-type "none")
+ (parameters
+ '("GstBus*" "bus")
+ )
+)
+
+
+
;; From empathy-contact.h
(define-function contact_get_type
diff --git a/python/pyempathy/pyempathy.override b/python/pyempathy/pyempathy.override
index 5b40f6178..a31253ece 100644
--- a/python/pyempathy/pyempathy.override
+++ b/python/pyempathy/pyempathy.override
@@ -3,6 +3,7 @@ headers
#include <Python.h>
#include <pygobject.h>
#include "empathy-account-manager.h"
+#include "empathy-call-factory.h"
#include "empathy-chatroom.h"
#include "empathy-chatroom-manager.h"
#include "empathy-contact.h"