diff options
author | James Booth <boothj5@gmail.com> | 2015-04-29 22:59:44 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-04-29 22:59:44 +0100 |
commit | 665c34414d7534016fb8136cffbadd35793dec7b (patch) | |
tree | 0fc82d254101cfa66a0a53edf061db7f3d958762 /tests/otr/stub_otr.c | |
parent | 0df8b8beff8aeeae072beee8fc3ed69f9d132fb2 (diff) | |
download | profani-tty-665c34414d7534016fb8136cffbadd35793dec7b.tar.gz |
Return result on OTR message sending
Diffstat (limited to 'tests/otr/stub_otr.c')
-rw-r--r-- | tests/otr/stub_otr.c | 11 |
1 files changed, 10 insertions, 1 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; +} + |