]> git.0d.be Git - empathy.git/blobdiff - python/pyempathy/pyempathy.defs
Merge call branch from Elliot Fairweather with cleanups from Xavier Claessens.
[empathy.git] / python / pyempathy / pyempathy.defs
index 7f7381fa7a3c4bc69529793c0fb2bcde537bfaa2..8d8f7c7eada8612f90d563c306090f0f650c30d4 100644 (file)
   (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")
   )
 )
 
   (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
-  (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
+(define-method accept_incoming_call
   (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")
   )
 )
 
   )
 )
 
-(define-function empathy_call_contact
-  (c-name "empathy_call_contact")
+(define-function empathy_call_with_contact
+  (c-name "empathy_call_with_contact")
   (return-type "none")
   (parameters
     '("EmpathyContact*" "contact")
   )
 )
 
+(define-function empathy_call_with_contact_id
+  (c-name "empathy_call_with_contact_id")
+  (return-type "none")
+  (parameters
+    '("McAccount*" "account")
+    '("const-gchar*" "contact_id")
+  )
+)
+
 (define-function empathy_chat_with_contact
   (c-name "empathy_chat_with_contact")
   (return-type "none")
 )
 
 
-
-;; From tp-stream-engine-gen.h
-
-(define-function dbus_g_proxy_begin_call
-  (c-name "dbus_g_proxy_begin_call")
-  (return-type "return")
-  (parameters
-  )
-)
-
-(define-function dbus_g_proxy_begin_call
-  (c-name "dbus_g_proxy_begin_call")
-  (return-type "return")
-  (parameters
-  )
-)
-
-(define-function dbus_g_proxy_begin_call
-  (c-name "dbus_g_proxy_begin_call")
-  (return-type "return")
-  (parameters
-  )
-)
-
-(define-function dbus_g_proxy_begin_call
-  (c-name "dbus_g_proxy_begin_call")
-  (return-type "return")
-  (parameters
-  )
-)
-
-(define-function dbus_g_proxy_begin_call
-  (c-name "dbus_g_proxy_begin_call")
-  (return-type "return")
-  (parameters
-  )
-)
-
-(define-function dbus_g_proxy_begin_call
-  (c-name "dbus_g_proxy_begin_call")
-  (return-type "return")
-  (parameters
-  )
-)
-
-(define-function dbus_g_proxy_begin_call
-  (c-name "dbus_g_proxy_begin_call")
-  (return-type "return")
-  (parameters
-  )
-)
-
-(define-function dbus_g_proxy_begin_call
-  (c-name "dbus_g_proxy_begin_call")
-  (return-type "return")
-  (parameters
-  )
-)
-
-