]> git.0d.be Git - empathy.git/blobdiff - python/pyempathy/pyempathy.override
Update python bindings
[empathy.git] / python / pyempathy / pyempathy.override
index 7425972ea6d7fd575c2cfddd3403a4b7bb9c3534..a31253ece6962eb81c2971d37a5f9964426e4777 100644 (file)
@@ -2,30 +2,37 @@
 headers
 #include <Python.h>
 #include <pygobject.h>
-#include "empathy-avatar.h"
-#include "empathy-chandler.h"
-#include "empathy-chatroom-manager.h"
+#include "empathy-account-manager.h"
+#include "empathy-call-factory.h"
 #include "empathy-chatroom.h"
+#include "empathy-chatroom-manager.h"
+#include "empathy-contact.h"
+#include "empathy-contact-factory.h"
 #include "empathy-contact-groups.h"
 #include "empathy-contact-list.h"
 #include "empathy-contact-manager.h"
-#include "empathy-contact.h"
+#include "empathy-contact-monitor.h"
 #include "empathy-debug.h"
-#include "empathy-filter.h"
+#include "empathy-dispatcher.h"
+#include "empathy-enum-types.h"
 #include "empathy-idle.h"
+#include "empathy-irc-network.h"
+#include "empathy-irc-network-manager.h"
+#include "empathy-irc-server.h"
 #include "empathy-log-manager.h"
 #include "empathy-message.h"
 #include "empathy-status-presets.h"
 #include "empathy-time.h"
+#include "empathy-tp-call.h"
 #include "empathy-tp-chat.h"
-#include "empathy-tp-chatroom.h"
 #include "empathy-tp-contact-factory.h"
 #include "empathy-tp-contact-list.h"
+#include "empathy-tp-file.h"
 #include "empathy-tp-group.h"
 #include "empathy-tp-roomlist.h"
+#include "empathy-tp-tube.h"
+#include "empathy-tube-handler.h"
 #include "empathy-utils.h"
-#include "empathy-contact-factory.h"
-#include "empathy-enum-types.h"
 
 void empathy_add_constants(PyObject *module, const gchar *strip_prefix);
 void empathy_register_classes(PyObject *d);
@@ -58,3 +65,25 @@ _wrap_empathy_contact_list_get_members(PyGObject *self, PyObject *args, PyObject
 
 }
 %%
+override empathy_dispatcher_chat_with_contact_id kwargs
+static PyObject *
+_wrap_empathy_dispatcher_chat_with_contact_id(PyObject *self, PyObject *args, PyObject *kwargs)
+{
+    static char *kwlist[] = { "account_id", "contact_id", NULL };
+    char *account_id, *contact_id;
+    McAccount *account;
+
+    if (!PyArg_ParseTupleAndKeywords(args, kwargs,"ss:dispatcher_chat_with_contact_id", kwlist, &account_id, &contact_id))
+        return NULL;
+
+    account = mc_account_lookup (account_id);
+    if (account) {
+        empathy_dispatcher_chat_with_contact_id(account, contact_id,
+          NULL, NULL);
+        g_object_unref (account);
+    }
+    
+    Py_INCREF(Py_None);
+    return Py_None;
+}
+%%