XfireKit is a project mainly written in C++ and C, it's free.
The most advanced open-source xfire library known to man
XfireKit Readme