]> git.0d.be Git - empathy.git/commitdiff
Update the python bindings
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Fri, 9 Jan 2009 16:16:11 +0000 (16:16 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 9 Jan 2009 16:16:11 +0000 (16:16 +0000)
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
svn path=/trunk/; revision=2202

python/pyempathy/pyempathy.defs
python/pyempathy/pyempathy.override

index 5cf8702db5e109734a5460730ab0e07333cc1375..fba78f3f0c41ef151518c6fe9dd2205f2835340e 100644 (file)
   )
 )
 
+(define-enum TubeType
+  (in-module "Empathy")
+  (c-name "EmpathyTubeType")
+  (gtype-id "EMPATHY_TYPE_TUBE_TYPE")
+  (values
+    '("stream-tube" "EMPATHY_TYPE_STREAM_TUBE")
+    '("dbus-tube" "EMPATHY_TYPE_DBUS_TUBE")
+  )
+)
+
 
 ;; From empathy-account-manager.h
 
   )
 )
 
+(define-method get_tp_chat
+  (of-object "EmpathyChatroom")
+  (c-name "empathy_chatroom_get_tp_chat")
+  (return-type "EmpathyTpChat*")
+)
+
 
 
 ;; From empathy-chatroom-manager.h
   (return-type "GType")
 )
 
-(define-function chatroom_manager_new
-  (c-name "empathy_chatroom_manager_new")
-  (is-constructor-of "EmpathyChatroomManager")
+(define-function chatroom_manager_dup_singleton
+  (c-name "empathy_chatroom_manager_dup_singleton")
   (return-type "EmpathyChatroomManager*")
   (parameters
     '("const-gchar*" "file")
   )
 )
 
+(define-method observe
+  (of-object "EmpathyChatroomManager")
+  (c-name "empathy_chatroom_manager_observe")
+  (return-type "none")
+  (parameters
+    '("EmpathyDispatcher*" "dispatcher")
+  )
+)
+
 
 
 ;; From empathy-contact.h
   )
 )
 
+(define-method call_when_ready
+  (of-object "EmpathyContact")
+  (c-name "empathy_contact_call_when_ready")
+  (return-type "none")
+  (parameters
+    '("EmpathyContactReady" "ready")
+    '("EmpathyContactReadyCb*" "callback")
+    '("gpointer" "user_data")
+    '("GDestroyNotify" "destroy")
+    '("GObject*" "weak_object")
+  )
+)
+
 (define-method run_until_ready
   (of-object "EmpathyContact")
   (c-name "empathy_contact_run_until_ready")
   (return-type "GType")
 )
 
-(define-function 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 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")
-  )
-)
-
 (define-function dispatcher_call_with_contact
   (c-name "empathy_dispatcher_call_with_contact")
   (return-type "none")
   (parameters
     '("EmpathyContact*" "contact")
-  )
-)
-
-(define-function dispatcher_call_with_contact_id
-  (c-name "empathy_dispatcher_call_with_contact_id")
-  (return-type "none")
-  (parameters
-    '("McAccount*" "account")
-    '("const-gchar*" "contact_id")
+    '("EmpathyDispatcherRequestCb*" "callback")
+    '("gpointer" "user_data")
   )
 )
 
   (parameters
     '("McAccount*" "account")
     '("const-gchar*" "contact_id")
+    '("EmpathyDispatcherRequestCb*" "callback")
+    '("gpointer" "user_data")
   )
 )
 
   (return-type "none")
   (parameters
     '("EmpathyContact*" "contact")
+    '("EmpathyDispatcherRequestCb*" "callback")
+    '("gpointer" "user_data")
   )
 )
 
-(define-function dispatcher_send_file
-  (c-name "empathy_dispatcher_send_file")
+(define-function dispatcher_send_file_to_contact
+  (c-name "empathy_dispatcher_send_file_to_contact")
   (return-type "none")
   (parameters
     '("EmpathyContact*" "contact")
-    '("GFile*" "gfile")
+    '("const-gchar*" "filename")
+    '("guint64" "size")
+    '("guint64" "date")
+    '("const-gchar*" "content_type")
+    '("EmpathyDispatcherRequestCb*" "callback")
+    '("gpointer" "user_data")
   )
 )
 
+(define-function dispatcher_join_muc
+  (c-name "empathy_dispatcher_join_muc")
+  (return-type "none")
+  (parameters
+    '("McAccount*" "account")
+    '("const-gchar*" "roomname")
+    '("EmpathyDispatcherRequestCb*" "callback")
+    '("gpointer" "user_data")
+  )
+)
+
+(define-function dispatcher_dup_singleton
+  (c-name "empathy_dispatcher_dup_singleton")
+  (return-type "EmpathyDispatcher*")
+)
+
+(define-function dispatcher_tube_get_type
+  (c-name "empathy_dispatcher_tube_get_type")
+  (return-type "GType")
+)
+
 
 
 ;; From empathy-idle.h
   )
 )
 
+(define-method get_id
+  (of-object "EmpathyMessage")
+  (c-name "empathy_message_get_id")
+  (return-type "guint")
+)
+
+(define-method set_id
+  (of-object "EmpathyMessage")
+  (c-name "empathy_message_set_id")
+  (return-type "none")
+  (parameters
+    '("guint" "id")
+  )
+)
+
 
 
 ;; From empathy-status-presets.h
   )
 )
 
+(define-method close
+  (of-object "EmpathyTpCall")
+  (c-name "empathy_tp_call_close")
+  (return-type "none")
+)
+
+(define-method to
+  (of-object "EmpathyTpCall")
+  (c-name "empathy_tp_call_to")
+  (return-type "none")
+  (parameters
+    '("EmpathyContact*" "contact")
+  )
+)
+
 (define-method accept_incoming_call
   (of-object "EmpathyTpCall")
   (c-name "empathy_tp_call_accept_incoming_call")
   )
 )
 
+(define-method close
+  (of-object "EmpathyTpChat")
+  (c-name "empathy_tp_chat_close")
+  (return-type "none")
+)
+
 (define-method get_id
   (of-object "EmpathyTpChat")
   (c-name "empathy_tp_chat_get_id")
   (return-type "guint")
 )
 
-(define-method set_acknowledge
-  (of-object "EmpathyTpChat")
-  (c-name "empathy_tp_chat_set_acknowledge")
-  (return-type "none")
-  (parameters
-    '("gboolean" "acknowledge")
-  )
-)
-
-(define-method emit_pendings
-  (of-object "EmpathyTpChat")
-  (c-name "empathy_tp_chat_emit_pendings")
-  (return-type "none")
-)
-
 (define-method send
   (of-object "EmpathyTpChat")
   (c-name "empathy_tp_chat_send")
   )
 )
 
+(define-method get_pending_messages
+  (of-object "EmpathyTpChat")
+  (c-name "empathy_tp_chat_get_pending_messages")
+  (return-type "const-GList*")
+)
+
+(define-method acknowledge_message
+  (of-object "EmpathyTpChat")
+  (c-name "empathy_tp_chat_acknowledge_message")
+  (return-type "none")
+  (parameters
+    '("EmpathyMessage*" "message")
+  )
+)
+
+(define-method acknowledge_messages
+  (of-object "EmpathyTpChat")
+  (c-name "empathy_tp_chat_acknowledge_messages")
+  (return-type "none")
+  (parameters
+    '("const-GList*" "messages")
+  )
+)
+
 
 
 ;; From empathy-tp-contact-factory.h
   (return-type "none")
 )
 
+(define-method close
+  (of-object "EmpathyTpFile")
+  (c-name "empathy_tp_file_close")
+  (return-type "none")
+)
+
 (define-method offer
   (of-object "EmpathyTpFile")
   (c-name "empathy_tp_file_offer")
   (return-type "EmpathyTpTube*")
   (parameters
     '("TpChannel*" "channel")
-    '("guint" "tube_id")
   )
 )
 
   (return-type "none")
   (parameters
     '("TpSocketAddressType" "type")
-  )
-)
-
-(define-method get_socket
-  (of-object "EmpathyTpTube")
-  (c-name "empathy_tp_tube_get_socket")
-  (return-type "none")
-  (parameters
-    '("gchar**" "hostname")
-    '("guint*" "port")
+    '("EmpatyTpTubeAcceptStreamTubeCb*" "callback")
+    '("gpointer" "user_data")
   )
 )
 
   (is-constructor-of "EmpathyTubeHandler")
   (return-type "EmpathyTubeHandler*")
   (parameters
-    '("TpTubeType" "type")
+    '("EmpathyTubeType" "type")
     '("const-gchar*" "service")
   )
 )
   (c-name "empathy_tube_handler_build_bus_name")
   (return-type "gchar*")
   (parameters
-    '("TpTubeType" "type")
+    '("EmpathyTubeType" "type")
     '("const-gchar*" "service")
   )
 )
   (c-name "empathy_tube_handler_build_object_path")
   (return-type "gchar*")
   (parameters
-    '("TpTubeType" "type")
+    '("EmpathyTubeType" "type")
     '("const-gchar*" "service")
   )
 )
   )
 )
 
-(define-function connection_request_channel
-  (c-name "empathy_connection_request_channel")
+(define-function start_call_with_contact
+  (c-name "empathy_start_call_with_contact")
   (return-type "none")
   (parameters
-    '("TpConnection*" "proxy")
-    '("gint" "timeout_ms")
-    '("const-gchar*" "channel_type")
-    '("guint" "handle_type")
-    '("const-gchar*" "name")
-    '("gboolean" "suppress_handler")
-    '("empathy_connection_callback_for_request_channel" "callback")
-    '("gpointer" "user_data")
-    '("GDestroyNotify" "destroy")
-    '("GObject*" "weak_object")
+    '("EmpathyContact*" "contact")
   )
 )
 
index c90e69b7d27d1e57829eab668eea827c3da67a9a..5b40f61781b08f3480d789fc6183f2e74fceab9a 100644 (file)
@@ -77,7 +77,8 @@ _wrap_empathy_dispatcher_chat_with_contact_id(PyObject *self, PyObject *args, Py
 
     account = mc_account_lookup (account_id);
     if (account) {
-        empathy_dispatcher_chat_with_contact_id(account, contact_id);
+        empathy_dispatcher_chat_with_contact_id(account, contact_id,
+          NULL, NULL);
         g_object_unref (account);
     }