diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/otr/stub_otr.c | 11 | ||||
-rw-r--r-- | tests/ui/stub_ui.c | 2 |
2 files changed, 11 insertions, 2 deletions
diff --git a/tests/otr/stub_otr.c b/tests/otr/stub_otr.c index eb676877..9815957f 100644 --- a/tests/otr/stub_otr.c +++ b/tests/otr/stub_otr.c @@ -42,7 +42,10 @@ char* otr_start_query(void) void otr_poll(void) {} void otr_on_connect(ProfAccount *account) {} void otr_on_message_recv(const char * const barejid, const char * const resource, const char * const message) {} -void otr_on_message_send(const char * const barejid, const char * const message) {} +prof_otrsendres_t otr_on_message_send(const char * const barejid, const char * const message) +{ + return PROF_OTRSUCCESS; +} void otr_keygen(ProfAccount *account) { @@ -106,3 +109,9 @@ prof_otrpolicy_t otr_get_policy(const char * const recipient) { return PROF_OTRPOLICY_MANUAL; } + +char* otr_senderror_str(prof_otrsendres_t res) +{ + return NULL; +} + diff --git a/tests/ui/stub_ui.c b/tests/ui/stub_ui.c index 54faa50a..70be97ef 100644 --- a/tests/ui/stub_ui.c +++ b/tests/ui/stub_ui.c @@ -105,7 +105,7 @@ unsigned long ui_get_idle_time(void) void ui_reset_idle_time(void) {} void ui_new_private_win(const char * const fulljid) {} -ProfWin* ui_new_chat_win(const char * const barejid) +ProfChatWin* ui_new_chat_win(const char * const barejid) { return NULL; } |