Wednesday, June 13, 2007

Resources (again again) and code refactoring

Resources
After trying all possible solutions
(we could think of) to find the peer resource with HEX-append (see previous post) we decided to make a libpurple core patch in order to access the resources directly form the jabber protocol plugin which already tracks them.
When this done we found a much simpler way to hack an account's local resource out of the jabber protocol plugin. This means that we no more need to look at bind stanzas, which anyway had some flaws which we had not addressed yet.

GStreamer
We are currently looking at the gst libraries again. We have done some makefile work for compiling. When it is working - we need to integrate this into the plugin.

Code refactoring - Major voicenode changes.
- Introduction of GList *voicenodes to get rid of global variables
- Implemented dynamic account add/removal to maintain voicenodes
- Figured out user_data callback from GUI.
- Renamed a lot of functions for more clear "namespacing".
- Added utils.h - logfile.h no more nessecary.
- Cleaned up the voicenode data structure -> some functions will now take different parameters (fewer)
- A lot of old obsolete code is placed in obsolete.c
Functionality:
* You can now call another account on the same client.
* Now it is possible to be called from different accounts.
* It seems to work fine. No freeing is done yet.

A lot of progress this week :o)

0 Comments:

Post a Comment

<< Home