Mercurial > pidgin.yaz
diff src/ft.h @ 6268:084e1f6610a8
[gaim-migrate @ 6765]
Changed the name of one of the new IP functions, and added a couple more to
wrap around prefs and such.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 22 Jul 2003 08:12:08 +0000 |
parents | 3565ee7a5dd3 |
children | 0a902bd3e170 |
line wrap: on
line diff
--- a/src/ft.h Tue Jul 22 08:11:44 2003 +0000 +++ b/src/ft.h Tue Jul 22 08:12:08 2003 +0000 @@ -470,6 +470,20 @@ /*@{*/ /** + * Sets the IP address of the local system in preferences. + * + * @param ip The local IP address. + */ +void gaim_xfers_set_local_ip(const char *ip); + +/** + * Returns the IP address of the local system set in preferences. + * + * @return The local IP address set in preferences. + */ +const char *gaim_xfers_get_local_ip(void); + +/** * Returns the IP address of the local system. * * @note The returned IP address must be g_free()'d when no longer @@ -477,7 +491,27 @@ * * @return The local IP address. */ -char *gaim_xfers_get_local_ip(void); +char *gaim_xfers_get_local_system__ip(void); + +/** + * Returns the IP address that should be used for the specified account. + * + * First, the IP associated with @a account is tried, via a call to + * gaim_account_get_local_ip(). + * + * If that IP is not set, the IP set in preferences is tried. + * + * If that IP is not set, the system's local IP is tried, via a call to + * gaim_xfers_get_local_ip(). + * + * @note The returned IP address must be g_free()'d when no longer + * in use. + * + * @param account The account the IP is going to be used with. + * + * @return The local IP address to be used. + */ +char *gaim_xfers_get_ip_for_account(const GaimAccount *account); /** * Initializes the file transfer subsystem.