diff options
Diffstat (limited to 'src/config/account.c')
-rw-r--r-- | src/config/account.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/config/account.c b/src/config/account.c index 705a5edf..1d42ba39 100644 --- a/src/config/account.c +++ b/src/config/account.c @@ -241,3 +241,20 @@ account_free(ProfAccount *account) g_list_free_full(account->otr_always, g_free); free(account); } + +void account_set_server(ProfAccount *account, const char *server) +{ + free(account->server); + account->server = strdup(server); +} + +void account_set_port(ProfAccount *account, int port) +{ + account->port = port; +} + +void account_set_tls_policy(ProfAccount *account, const char *tls_policy) +{ + free(account->tls_policy); + account->tls_policy = strdup(tls_policy); +} |