Mercurial > pidgin
diff src/account.h @ 6239:8d10cdfe1bb1
[gaim-migrate @ 6733]
Added some API stuff for setting an account's public IP, which will be used
for file transfer and stuff. I won't be doing much with this until after my
vacation.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 20 Jul 2003 03:05:58 +0000 |
parents | 49ae70ffcea5 |
children | 9fd154ca6a94 |
line wrap: on
line diff
--- a/src/account.h Sat Jul 19 20:57:58 2003 +0000 +++ b/src/account.h Sun Jul 20 03:05:58 2003 +0000 @@ -39,27 +39,28 @@ struct _GaimAccount { - char *username; /**< The username. */ - char *alias; /**< The current alias. */ - char *password; /**< The account password. */ - char *user_info; /**< User information. */ + char *username; /**< The username. */ + char *alias; /**< The current alias. */ + char *password; /**< The account password. */ + char *user_info; /**< User information. */ - char *buddy_icon; /**< The buddy icon. */ + char *buddy_icon; /**< The buddy icon. */ - gboolean remember_pass; /**< Remember the password. */ + gboolean remember_pass; /**< Remember the password. */ - char *protocol_id; /**< The ID of the protocol. */ + char *protocol_id; /**< The ID of the protocol. */ - GaimConnection *gc; /**< The connection handle. */ + GaimConnection *gc; /**< The connection handle. */ - GHashTable *settings; /**< Protocol-specific settings. */ - GHashTable *ui_settings; /**< UI-specific settings. */ + GHashTable *settings; /**< Protocol-specific settings. */ + GHashTable *ui_settings; /**< UI-specific settings. */ - GaimProxyInfo *proxy_info; /**< Proxy information. */ + char *ip; /**< The IP address for transfers. */ + GaimProxyInfo *proxy_info; /**< Proxy information. */ - GSList *permit; /**< Permit list. */ - GSList *deny; /**< Deny list. */ - int perm_deny; /**< The permit/deny setting. */ + GSList *permit; /**< Permit list. */ + GSList *deny; /**< Deny list. */ + int perm_deny; /**< The permit/deny setting. */ }; #ifdef __cplusplus @@ -197,6 +198,15 @@ gboolean value); /** + * Sets the public IP address the account will use for such things + * as file transfer. + * + * @param account The account. + * @param ip The IP address. + */ +void gaim_account_set_public_ip(GaimAccount *account, const char *ip); + +/** * Sets the account's proxy information. * * @param account The account. @@ -385,6 +395,15 @@ const char *ui); /** + * Returns the account's public IP address. + * + * @param account The account. + * + * @return The IP address. + */ +const char *gaim_account_get_public_ip(const GaimAccount *account); + +/** * Returns the account's proxy information. * * @param account The account.