diff options
author | John Hernandez <129467592+H3rnand3zzz@users.noreply.github.com> | 2023-04-13 17:16:24 +0200 |
---|---|---|
committer | John Hernandez <129467592+H3rnand3zzz@users.noreply.github.com> | 2023-04-18 14:28:20 +0200 |
commit | 07cc19ce10dcf1cbbdca4797540d4f2bea74b724 (patch) | |
tree | c82ade1b904636717a352b809652523b56bdacb6 /src/config/account.h | |
parent | 9bce23e075e4ec4ad7c888688226c7136d5f9257 (diff) | |
download | profani-tty-07cc19ce10dcf1cbbdca4797540d4f2bea74b724.tar.gz |
Add sessions_alarm
Introduce new feature: sessions_alarm. Added new account setting: max_connections. On exceeding this number, user will get an alert. If number is less than 1, no alert will happen. Tests altered to fit new feature.
Diffstat (limited to 'src/config/account.h')
-rw-r--r-- | src/config/account.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config/account.h b/src/config/account.h index f82a3e11..e8bda927 100644 --- a/src/config/account.h +++ b/src/config/account.h @@ -72,6 +72,7 @@ typedef struct prof_account_t gchar* tls_policy; gchar* auth_policy; gchar* client; + int max_sessions; } ProfAccount; ProfAccount* account_new(gchar* name, gchar* jid, gchar* password, gchar* eval_password, gboolean enabled, @@ -82,7 +83,7 @@ ProfAccount* account_new(gchar* name, gchar* jid, gchar* password, gchar* eval_p gchar* omemo_policy, GList* omemo_enabled, GList* omemo_disabled, GList* ox_enabled, GList* pgp_enabled, gchar* pgp_keyid, gchar* startscript, gchar* theme, gchar* tls_policy, gchar* auth_policy, - gchar* client); + gchar* client, int max_sessions); char* account_create_connect_jid(ProfAccount* account); gboolean account_eval_password(ProfAccount* account); void account_free(ProfAccount* account); |