aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-04-11 21:11:14 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-04-11 21:11:14 +0800
commit7b3e290a5768931335d0151049c08121a28a6628 (patch)
treee6a86b6c176dfa127484b75aecbf63cd1a6ae7e9 /python
parent66041bfe50a08371bf3764f856bd7307bf89c095 (diff)
downloadgsoc2013-empathy-7b3e290a5768931335d0151049c08121a28a6628.tar
gsoc2013-empathy-7b3e290a5768931335d0151049c08121a28a6628.tar.gz
gsoc2013-empathy-7b3e290a5768931335d0151049c08121a28a6628.tar.bz2
gsoc2013-empathy-7b3e290a5768931335d0151049c08121a28a6628.tar.lz
gsoc2013-empathy-7b3e290a5768931335d0151049c08121a28a6628.tar.xz
gsoc2013-empathy-7b3e290a5768931335d0151049c08121a28a6628.tar.zst
gsoc2013-empathy-7b3e290a5768931335d0151049c08121a28a6628.zip
Update python binding
svn path=/trunk/; revision=911
Diffstat (limited to 'python')
-rw-r--r--python/pyempathy/pyempathy.defs115
1 files changed, 52 insertions, 63 deletions
diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs
index 1b6d2c589..55ca3d6df 100644
--- a/python/pyempathy/pyempathy.defs
+++ b/python/pyempathy/pyempathy.defs
@@ -477,25 +477,6 @@
(return-type "MissionControl*")
)
-(define-function empathy_inspect_handle
- (c-name "empathy_inspect_handle")
- (return-type "gchar*")
- (parameters
- '("McAccount*" "account")
- '("guint" "handle")
- '("guint" "handle_type")
- )
-)
-
-(define-function empathy_inspect_channel
- (c-name "empathy_inspect_channel")
- (return-type "gchar*")
- (parameters
- '("McAccount*" "account")
- '("TpChan*" "tp_chan")
- )
-)
-
(define-function empathy_call_with_contact
(c-name "empathy_call_with_contact")
(return-type "none")
@@ -563,6 +544,34 @@
)
)
+(define-function empathy_run_until_ready
+ (c-name "empathy_run_until_ready")
+ (return-type "none")
+ (parameters
+ '("gpointer" "object")
+ )
+)
+
+(define-function empathy_run_until_ready_full
+ (c-name "empathy_run_until_ready_full")
+ (return-type "none")
+ (parameters
+ '("gpointer" "object")
+ '("const-gchar*" "signal")
+ '("EmpathyRunUntilReadyFunc" "func")
+ '("gpointer" "user_data")
+ '("GMainLoop**" "loop")
+ )
+)
+
+(define-function empathy_channel_get_account
+ (c-name "empathy_channel_get_account")
+ (return-type "McAccount*")
+ (parameters
+ '("TpChannel*" "channel")
+ )
+)
+
;; From empathy-message.h
@@ -1269,7 +1278,7 @@
(return-type "GList*")
(parameters
'("McAccount*" "account")
- '("GArray*" "handles")
+ '("const-GArray*" "handles")
)
)
@@ -1387,8 +1396,7 @@
(is-constructor-of "EmpathyTpGroup")
(return-type "EmpathyTpGroup*")
(parameters
- '("McAccount*" "account")
- '("TpChan*" "tp_chan")
+ '("TpChannel*" "channel")
)
)
@@ -1468,24 +1476,27 @@
(return-type "EmpathyContact*")
)
-(define-method get_object_path
+(define-method is_member
(of-object "EmpathyTpGroup")
- (c-name "empathy_tp_group_get_object_path")
- (return-type "const-gchar*")
+ (c-name "empathy_tp_group_is_member")
+ (return-type "gboolean")
+ (parameters
+ '("EmpathyContact*" "contact")
+ )
)
-(define-method get_channel
+(define-method is_ready
(of-object "EmpathyTpGroup")
- (c-name "empathy_tp_group_get_channel")
- (return-type "TpChan*")
+ (c-name "empathy_tp_group_is_ready")
+ (return-type "gboolean")
)
-(define-method is_member
+(define-method get_invitation
(of-object "EmpathyTpGroup")
- (c-name "empathy_tp_group_is_member")
- (return-type "gboolean")
+ (c-name "empathy_tp_group_get_invitation")
+ (return-type "EmpathyPendingInfo*")
(parameters
- '("EmpathyContact*" "contact")
+ '("EmpathyContact**" "remote_contact")
)
)
@@ -1544,32 +1555,11 @@
(is-constructor-of "EmpathyTpChat")
(return-type "EmpathyTpChat*")
(parameters
- '("McAccount*" "account")
- '("TpChan*" "tp_chan")
+ '("TpChannel*" "channel")
'("gboolean" "acknowledge")
)
)
-(define-function empathy_tp_chat_new_with_contact
- (c-name "empathy_tp_chat_new_with_contact")
- (return-type "EmpathyTpChat*")
- (parameters
- '("EmpathyContact*" "contact")
- )
-)
-
-(define-method get_account
- (of-object "EmpathyTpChat")
- (c-name "empathy_tp_chat_get_account")
- (return-type "McAccount*")
-)
-
-(define-method get_channel
- (of-object "EmpathyTpChat")
- (c-name "empathy_tp_chat_get_channel")
- (return-type "TpChan*")
-)
-
(define-method get_id
(of-object "EmpathyTpChat")
(c-name "empathy_tp_chat_get_id")
@@ -1582,6 +1572,12 @@
(return-type "EmpathyContact*")
)
+(define-method get_account
+ (of-object "EmpathyTpChat")
+ (c-name "empathy_tp_chat_get_account")
+ (return-type "McAccount*")
+)
+
(define-method is_ready
(of-object "EmpathyTpChat")
(c-name "empathy_tp_chat_is_ready")
@@ -1666,8 +1662,7 @@
(is-constructor-of "EmpathyTpCall")
(return-type "EmpathyTpCall*")
(parameters
- '("TpConn*" "connection")
- '("TpChan*" "channel")
+ '("TpChannel*" "channel")
)
)
@@ -1677,12 +1672,6 @@
(return-type "none")
)
-(define-method close_channel
- (of-object "EmpathyTpCall")
- (c-name "empathy_tp_call_close_channel")
- (return-type "none")
-)
-
(define-method request_video_stream_direction
(of-object "EmpathyTpCall")
(c-name "empathy_tp_call_request_video_stream_direction")
@@ -1792,7 +1781,7 @@
(c-name "empathy_filter_process")
(return-type "none")
(parameters
- '("TpChan*" "tp_chan")
+ '("TpChannel*" "channel")
'("gboolean" "process")
)
)