core cleanup: move sipe_get_useragent() to sip-transport
commitafcc1c701da52cf8da257095c0ee89a270807697
authorStefan Becker <stefan.becker@nokia.com>
Fri, 23 Apr 2010 20:05:31 +0000 (23 23:05 +0300)
committerStefan Becker <stefan.becker@nokia.com>
Fri, 23 Apr 2010 20:05:31 +0000 (23 23:05 +0300)
tree8cbafbb65842c52e58e25cb60025d325cd0ba847
parent2aa6cb468e1d3b3ef7c8f91dd06dd04d4705c70a
core cleanup: move sipe_get_useragent() to sip-transport

Moved purple_core_get_version() to backend.

Replaced static variable default_ua with a variable in sipe_core_private. This
fixes the bug that the same useragent value was used for all accounts although
they might be configured by the user with different useragent settings.

This also means one less global variable, ie. one step closer to remove the
requirement for threaded backends to maintain a global lock instead of an
connection local lock.
src/api/sipe-backend.h
src/core/sip-transport.c
src/core/sipe-core-private.h
src/core/sipe.c
src/core/sipe.h
src/purple/purple-plugin.c