From 9b55f2dec0ea27a9ce4856e303425e12f866cea2 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 7 Jul 2020 09:43:28 +0200 Subject: Apply coding style Regards https://github.com/profanity-im/profanity/issues/1396 --- src/config/account.h | 81 ++++++++++++++++++++++++++-------------------------- 1 file changed, 41 insertions(+), 40 deletions(-) (limited to 'src/config/account.h') diff --git a/src/config/account.h b/src/config/account.h index deb0e31a..dfc7bc12 100644 --- a/src/config/account.h +++ b/src/config/account.h @@ -38,54 +38,55 @@ #include "common.h" -typedef struct prof_account_t { - gchar *name; - gchar *jid; - gchar *password; - gchar *eval_password; - gchar *resource; - gchar *server; +typedef struct prof_account_t +{ + gchar* name; + gchar* jid; + gchar* password; + gchar* eval_password; + gchar* resource; + gchar* server; int port; - gchar *last_presence; - gchar *login_presence; + gchar* last_presence; + gchar* login_presence; gint priority_online; gint priority_chat; gint priority_away; gint priority_xa; gint priority_dnd; - gchar *muc_service; - gchar *muc_nick; + gchar* muc_service; + gchar* muc_nick; gboolean enabled; - gchar *otr_policy; - GList *otr_manual; - GList *otr_opportunistic; - GList *otr_always; - gchar *omemo_policy; - GList *omemo_enabled; - GList *omemo_disabled; - gchar *pgp_keyid; - gchar *startscript; - gchar *theme; - gchar *tls_policy; - gchar *auth_policy; + gchar* otr_policy; + GList* otr_manual; + GList* otr_opportunistic; + GList* otr_always; + gchar* omemo_policy; + GList* omemo_enabled; + GList* omemo_disabled; + gchar* pgp_keyid; + gchar* startscript; + gchar* theme; + gchar* tls_policy; + gchar* auth_policy; } ProfAccount; -ProfAccount* account_new(const gchar *const name, const gchar *const jid, - const gchar *const passord, const gchar *eval_password, gboolean enabled, const gchar *const server, - int port, const gchar *const resource, const gchar *const last_presence, - const gchar *const login_presence, int priority_online, int priority_chat, - int priority_away, int priority_xa, int priority_dnd, - const gchar *const muc_service, const gchar *const muc_nick, - const gchar *const otr_policy, GList *otr_manual, GList *otr_opportunistic, - GList *otr_always, const gchar *const omemo_policy, GList *omemo_enabled, - GList *omemo_disabled, const gchar *const pgp_keyid, const char *const startscript, - const char *const theme, gchar *tls_policy, gchar *auth_policy); -char* account_create_connect_jid(ProfAccount *account); -gboolean account_eval_password(ProfAccount *account); -void account_free(ProfAccount *account); -void account_set_server(ProfAccount *account, const char *server); -void account_set_port(ProfAccount *account, int port); -void account_set_tls_policy(ProfAccount *account, const char *tls_policy); -void account_set_auth_policy(ProfAccount *account, const char *auth_policy); +ProfAccount* account_new(const gchar* const name, const gchar* const jid, + const gchar* const passord, const gchar* eval_password, gboolean enabled, const gchar* const server, + int port, const gchar* const resource, const gchar* const last_presence, + const gchar* const login_presence, int priority_online, int priority_chat, + int priority_away, int priority_xa, int priority_dnd, + const gchar* const muc_service, const gchar* const muc_nick, + const gchar* const otr_policy, GList* otr_manual, GList* otr_opportunistic, + GList* otr_always, const gchar* const omemo_policy, GList* omemo_enabled, + GList* omemo_disabled, const gchar* const pgp_keyid, const char* const startscript, + const char* const theme, gchar* tls_policy, gchar* auth_policy); +char* account_create_connect_jid(ProfAccount* account); +gboolean account_eval_password(ProfAccount* account); +void account_free(ProfAccount* account); +void account_set_server(ProfAccount* account, const char* server); +void account_set_port(ProfAccount* account, int port); +void account_set_tls_policy(ProfAccount* account, const char* tls_policy); +void account_set_auth_policy(ProfAccount* account, const char* auth_policy); #endif -- cgit 1.4.1-2-gfad0