diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-07-07 09:43:28 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-07-07 09:43:28 +0200 |
commit | 9b55f2dec0ea27a9ce4856e303425e12f866cea2 (patch) | |
tree | 87b723739c420cb7bb4ca7db20dc1d7fc2b3de05 /tests/unittests/omemo | |
parent | 66f9a6b7219391b2c8bee5967f5ef7e223fd5d23 (diff) | |
download | profani-tty-9b55f2dec0ea27a9ce4856e303425e12f866cea2.tar.gz |
Apply coding style
Regards https://github.com/profanity-im/profanity/issues/1396
Diffstat (limited to 'tests/unittests/omemo')
-rw-r--r-- | tests/unittests/omemo/stub_omemo.c | 85 |
1 files changed, 62 insertions, 23 deletions
diff --git a/tests/unittests/omemo/stub_omemo.c b/tests/unittests/omemo/stub_omemo.c index fe5d27c5..448d5a0d 100644 --- a/tests/unittests/omemo/stub_omemo.c +++ b/tests/unittests/omemo/stub_omemo.c @@ -3,39 +3,51 @@ #include "config/account.h" #include "ui/ui.h" -void omemo_init(void) {} -void omemo_close(void) {} +void +omemo_init(void) +{ +} +void +omemo_close(void) +{ +} char* -omemo_fingerprint_autocomplete(const char *const search_str, gboolean previous) +omemo_fingerprint_autocomplete(const char* const search_str, gboolean previous) { return NULL; } -void omemo_fingerprint_autocomplete_reset(void) {} +void +omemo_fingerprint_autocomplete_reset(void) +{ +} -char * -omemo_format_fingerprint(const char *const fingerprint) +char* +omemo_format_fingerprint(const char* const fingerprint) { return NULL; } -void omemo_generate_crypto_materials(ProfAccount *account) {} +void +omemo_generate_crypto_materials(ProfAccount* account) +{ +} gboolean -omemo_automatic_start(const char *const jid) +omemo_automatic_start(const char* const jid) { return TRUE; } gboolean -omemo_is_trusted_identity(const char *const jid, const char *const fingerprint) +omemo_is_trusted_identity(const char* const jid, const char* const fingerprint) { return TRUE; } -GList * -omemo_known_device_identities(const char *const jid) +GList* +omemo_known_device_identities(const char* const jid) { return NULL; } @@ -46,25 +58,52 @@ omemo_loaded(void) return TRUE; } -void omemo_on_connect(ProfAccount *account) {} -void omemo_on_disconnect(void) {} +void +omemo_on_connect(ProfAccount* account) +{ +} +void +omemo_on_disconnect(void) +{ +} -char * -omemo_on_message_send(ProfWin *win, const char *const message, gboolean request_receipt, gboolean muc) +char* +omemo_on_message_send(ProfWin* win, const char* const message, gboolean request_receipt, gboolean muc) { return NULL; } -char * +char* omemo_own_fingerprint(gboolean formatted) { return NULL; } -void omemo_start_muc_sessions(const char *const roomjid) {} -void omemo_start_session(const char *const barejid) {} -void omemo_trust(const char *const jid, const char *const fingerprint_formatted) {} -void omemo_untrust(const char *const jid, const char *const fingerprint_formatted) {} -void omemo_devicelist_publish(GList *device_list) {} -void omemo_publish_crypto_materials(void) {} -void omemo_start_sessions(void) {} +void +omemo_start_muc_sessions(const char* const roomjid) +{ +} +void +omemo_start_session(const char* const barejid) +{ +} +void +omemo_trust(const char* const jid, const char* const fingerprint_formatted) +{ +} +void +omemo_untrust(const char* const jid, const char* const fingerprint_formatted) +{ +} +void +omemo_devicelist_publish(GList* device_list) +{ +} +void +omemo_publish_crypto_materials(void) +{ +} +void +omemo_start_sessions(void) +{ +} |