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-message.h"
18 #include "empathy-presence.h"
19 #include "empathy-time.h"
20 #include "empathy-tp-chat.h"
21 #include "empathy-tp-chatroom.h"
22 #include "empathy-tp-contact-list.h"
23 #include "empathy-tp-group.h"
24 #include "empathy-utils.h"
28 #define MC_TYPE_PRESENCE 1
29 #define EMPATHY_TYPE_SUBSCRIPTION 2
30 #define EMPATHY_TYPE_MESSAGE_TYPE 3
31 #define EMPATHY_TYPE_REG_EX_TYPE 4
34 void empathy_add_constants(PyObject *module, const gchar *strip_prefix);
35 void empathy_register_classes(PyObject *d);
43 import gobject.GObject as PyGObject_Type
45 override empathy_contact_list_get_members kwargs
47 _wrap_empathy_contact_list_get_members(PyGObject *self, PyObject *args, PyObject *kwargs)
50 PyObject *py_contacts = PyList_New(0);
53 contacts = empathy_contact_list_get_members(EMPATHY_CONTACT_LIST(self->obj));
55 for (l = contacts; l; l = l->next) {
56 EmpathyContact *contact;
58 PyList_Append(py_contacts, pygobject_new((GObject *) contact));
65 override empathy_contact_get_groups kwargs
67 _wrap_empathy_contact_get_groups(PyGObject *self, PyObject *args, PyObject *kwargs)
70 GList *groups = empathy_contact_get_groups(EMPATHY_CONTACT(self->obj));
71 PyObject *py_groups = PyList_New(0);
74 for(l = groups; l; l = l->next) {
77 PyList_Append(py_groups, PyString_FromString(group));