X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=purple.pyx;h=26a972fa49733504e05b58b51381b2bb158ca9ef;hp=88c86adec6ee4e30f7284af2b3df714270cc9130;hb=d5b85c24f1ac2d3fb582e79c995396c4043e7763;hpb=fd928128ba52b05aa5c17f9481c5e70461984c51 diff --git a/purple.pyx b/purple.pyx index 88c86ad..26a972f 100644 --- a/purple.pyx +++ b/purple.pyx @@ -336,6 +336,19 @@ cdef class Purple: return account_list + def protocols_get_all(self): + cdef glib.GList *iter + cdef plugin.PurplePlugin *pp + + iter = plugin.c_purple_plugins_get_protocols() + protocol_list = [] + while iter: + pp = iter.data + if pp.info and pp.info.name: + protocol_list.append[Protocol(pp.info.id)] + iter = iter.next + return protocol_list + include "protocol.pyx" #include "plugin.pyx" include "proxy.pyx"