telepathy: implement sipe_backend_network_ip_address
commitb979bcad1656fade3b9140b1ef02f1048b6d4682
authorStefan Becker <chemobejk@gmail.com>
Tue, 28 Aug 2012 17:24:27 +0000 (28 20:24 +0300)
committerStefan Becker <chemobejk@gmail.com>
Thu, 30 Aug 2012 19:04:31 +0000 (30 22:04 +0300)
tree6ba0325fc962089e4fcc8bcd471e27170aff5496
parente41570bd2f5313be8e7968fcafb99b546d4fb502
telepathy: implement sipe_backend_network_ip_address

Changed this backend API to be more libpurple independent by requiring
sipe_core_public as parameter. Updated core/miranda/purple code
accordingly.

In telepathy we retrieve the local IP address from the server transport
socket, if we already have a connection and cache this string for all
later calls. If the retrieval should fail for any reason, we fall back
to 127.0.0.1.
13 files changed:
src/api/sipe-backend.h
src/core/sip-transport.c
src/core/sipe-ft.c
src/core/sipe-im.c
src/core/sipe-incoming.c
src/core/sipe-utils.c
src/core/sipe-xml-tests.c
src/miranda/miranda-network.c
src/purple/purple-network.c
src/telepathy/telepathy-connection.c
src/telepathy/telepathy-private.h
src/telepathy/telepathy-stubs.c
src/telepathy/telepathy-transport.c