From 3cac01703f75bf0ee31fb4720e204931dbca9e29 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 15 Feb 2008 15:00:45 +0000 Subject: Merge call branch from Elliot Fairweather with cleanups from Xavier Claessens. svn path=/trunk/; revision=632 --- python/pyempathy/pyempathy.defs | 76 ++++++++++++----------------------------- 1 file changed, 22 insertions(+), 54 deletions(-) (limited to 'python/pyempathy/pyempathy.defs') diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs index 116248f70..8d8f7c7ea 100644 --- a/python/pyempathy/pyempathy.defs +++ b/python/pyempathy/pyempathy.defs @@ -158,9 +158,10 @@ (c-name "EmpathyTpCallStatus") (gtype-id "EMPATHY_TYPE_TP_CALL_STATUS") (values - '("preparing" "EMPATHY_TP_CALL_STATUS_PREPARING") - '("ringing" "EMPATHY_TP_CALL_STATUS_RINGING") - '("running" "EMPATHY_TP_CALL_STATUS_RUNNING") + '("readying" "EMPATHY_TP_CALL_STATUS_READYING") + '("pending" "EMPATHY_TP_CALL_STATUS_PENDING") + '("accepted" "EMPATHY_TP_CALL_STATUS_ACCEPTED") + '("closed" "EMPATHY_TP_CALL_STATUS_CLOSED") ) ) @@ -1333,87 +1334,54 @@ (is-constructor-of "EmpathyTpCall") (return-type "EmpathyTpCall*") (parameters - '("McAccount*" "account") - '("TpChan*" "tp_chan") + '("TpConn*" "connection") + '("TpChan*" "channel") ) ) -(define-method is_incoming - (of-object "EmpathyTpCall") - (c-name "empathy_tp_call_is_incoming") - (return-type "gboolean") -) - -(define-method get_status +(define-method accept_incoming_call (of-object "EmpathyTpCall") - (c-name "empathy_tp_call_get_status") - (return-type "EmpathyTpCallStatus") -) - -(define-method get_contact - (of-object "EmpathyTpCall") - (c-name "empathy_tp_call_get_contact") - (return-type "EmpathyContact*") -) - -(define-method accept - (of-object "EmpathyTpCall") - (c-name "empathy_tp_call_accept") - (return-type "none") -) - -(define-method invite - (of-object "EmpathyTpCall") - (c-name "empathy_tp_call_invite") + (c-name "empathy_tp_call_accept_incoming_call") (return-type "none") - (parameters - '("EmpathyContact*" "contact") - ) ) -(define-method request_streams +(define-method close_channel (of-object "EmpathyTpCall") - (c-name "empathy_tp_call_request_streams") + (c-name "empathy_tp_call_close_channel") (return-type "none") - (parameters - '("gboolean" "audio") - '("gboolean" "video") - ) ) -(define-method send_video +(define-method request_video_stream_direction (of-object "EmpathyTpCall") - (c-name "empathy_tp_call_send_video") + (c-name "empathy_tp_call_request_video_stream_direction") (return-type "none") (parameters - '("gboolean" "send") + '("gboolean" "is_sending") ) ) -(define-method add_preview_window - (of-object "EmpathyTpCall") - (c-name "empathy_tp_call_add_preview_window") +(define-function empathy_tp_call_add_preview_video + (c-name "empathy_tp_call_add_preview_video") (return-type "none") (parameters - '("guint" "socket_id") + '("guint" "preview_video_socket_id") ) ) -(define-method remove_preview_window - (of-object "EmpathyTpCall") - (c-name "empathy_tp_call_remove_preview_window") +(define-function empathy_tp_call_remove_preview_video + (c-name "empathy_tp_call_remove_preview_video") (return-type "none") (parameters - '("guint" "socket_id") + '("guint" "preview_video_socket_id") ) ) -(define-method set_output_window +(define-method add_output_video (of-object "EmpathyTpCall") - (c-name "empathy_tp_call_set_output_window") + (c-name "empathy_tp_call_add_output_video") (return-type "none") (parameters - '("guint" "socket_id") + '("guint" "output_video_socket_id") ) ) -- cgit v1.2.3