Core patching pidgin and cleaning up datastructures..
At the moment we are cleaning up the datastructures in our on plugin source. This is done in order to have more than one encoding for content, transport and descriptions. Before that our xmlnode could only contain one of these.
Right now we are also pacthing the pidgin core modules for extending it for XMPP resource handling. This is because we want to be able to get and read the resource for our buddies that logs in and out.
We have changed a couple of pidgin files:
blist.c -- initializing the Glist
blist.h -- implemented the data structure (Glist of resources)
buddy.c -- jabber_buddy_remove_resource and jabber_buddy_track_resource are respectivly used for when a buddy dissappears or appears (used in presence.c) in your buddy list. We have hacked it so we add or remove the given resource to the Glist in the buddy list structure.
I still dont know if we have to change in the discovery module (disc.c) for when doing a discovery.
PS: Note that for every resource a priority is bound. If we want to use it, we also would like to set it explicitly (this is what the jabber protocol does in pidgin).
see http://www.xmpp.org/rfcs/rfc3921.html#rules for more information.
Right now we are also pacthing the pidgin core modules for extending it for XMPP resource handling. This is because we want to be able to get and read the resource for our buddies that logs in and out.
We have changed a couple of pidgin files:
blist.c -- initializing the Glist
blist.h -- implemented the data structure (Glist of resources)
buddy.c -- jabber_buddy_remove_resource and jabber_buddy_track_resource are respectivly used for when a buddy dissappears or appears (used in presence.c) in your buddy list. We have hacked it so we add or remove the given resource to the Glist in the buddy list structure.
I still dont know if we have to change in the discovery module (disc.c) for when doing a discovery.
PS: Note that for every resource a priority is bound. If we want to use it, we also would like to set it explicitly (this is what the jabber protocol does in pidgin).
see http://www.xmpp.org/rfcs/rfc3921.html#rules for more information.
0 Comments:
Post a Comment
<< Home