5 #include "empathy-avatar.h"
6 #include "empathy-chandler.h"
7 #include "empathy-chatroom-manager.h"
8 #include "empathy-chatroom.h"
9 #include "empathy-conf.h"
10 #include "empathy-contact-list.h"
11 #include "empathy-contact-manager.h"
12 #include "empathy-contact.h"
13 #include "empathy-debug.h"
14 #include "empathy-filter.h"
15 #include "empathy-idle.h"
16 #include "empathy-log-manager.h"
17 #include "empathy-marshal.h"
18 #include "empathy-message.h"
19 #include "empathy-presence.h"
20 #include "empathy-time.h"
21 #include "empathy-tp-chat.h"
22 #include "empathy-tp-chatroom.h"
23 #include "empathy-tp-contact-list.h"
24 #include "empathy-tp-group.h"
25 #include "empathy-utils.h"
29 #define MC_TYPE_PRESENCE 1
30 #define EMPATHY_TYPE_SUBSCRIPTION 2
31 #define EMPATHY_TYPE_MESSAGE_TYPE 3
32 #define EMPATHY_TYPE_REG_EX_TYPE 4
35 void empathy_add_constants(PyObject *module, const gchar *strip_prefix);
36 void empathy_register_classes(PyObject *d);
44 import gobject.GObject as PyGObject_Type
46 override empathy_contact_list_get_members kwargs
48 _wrap_empathy_contact_list_get_members(PyGObject *self, PyObject *args, PyObject *kwargs)
51 PyObject *py_contacts = PyList_New(0);
54 contacts = empathy_contact_list_get_members(EMPATHY_CONTACT_LIST(self->obj));
56 for (l = contacts; l; l = l->next) {
57 EmpathyContact *contact;
59 PyList_Append(py_contacts, pygobject_new((GObject *) contact));
66 override empathy_contact_get_groups kwargs
68 _wrap_empathy_contact_get_groups(PyGObject *self, PyObject *args, PyObject *kwargs)
71 GList *groups = empathy_contact_get_groups(EMPATHY_CONTACT(self->obj));
72 PyObject *py_groups = PyList_New(0);
75 for(l = groups; l; l = l->next) {
78 PyList_Append(py_groups, PyString_FromString(group));