diff options
author | James Booth <boothj5@gmail.com> | 2015-10-27 23:20:03 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-10-27 23:20:03 +0000 |
commit | e7148bf82d8a0e0c68cb794dbce7b2f70d3d0e55 (patch) | |
tree | dc58e2764905e588f2cec5c2f23686845ffb761c | |
parent | af1124f28ffc95a09d88d1fad25c31554106acd7 (diff) | |
download | profani-tty-e7148bf82d8a0e0c68cb794dbce7b2f70d3d0e55.tar.gz |
Renamed ui_outgoing_chat_msg -> chatwin_outgoing_msg
-rw-r--r-- | src/event/client_events.c | 12 | ||||
-rw-r--r-- | src/otr/otr.c | 4 | ||||
-rw-r--r-- | src/ui/chatwin.c | 2 | ||||
-rw-r--r-- | src/ui/ui.h | 2 | ||||
-rw-r--r-- | tests/unittests/ui/stub_ui.c | 2 |
5 files changed, 11 insertions, 11 deletions
diff --git a/src/event/client_events.c b/src/event/client_events.c index ec9516a2..0579b07d 100644 --- a/src/event/client_events.c +++ b/src/event/client_events.c @@ -94,14 +94,14 @@ cl_ev_send_msg(ProfChatWin *chatwin, const char *const msg) if (chatwin->pgp_send) { char *id = message_send_chat_pgp(chatwin->barejid, msg); chat_log_pgp_msg_out(chatwin->barejid, msg); - ui_outgoing_chat_msg(chatwin, msg, id, PROF_MSG_PGP); + chatwin_outgoing_msg(chatwin, msg, id, PROF_MSG_PGP); free(id); } else { gboolean handled = otr_on_message_send(chatwin, msg); if (!handled) { char *id = message_send_chat(chatwin->barejid, msg); chat_log_msg_out(chatwin->barejid, msg); - ui_outgoing_chat_msg(chatwin, msg, id, PROF_MSG_PLAIN); + chatwin_outgoing_msg(chatwin, msg, id, PROF_MSG_PLAIN); free(id); } } @@ -116,7 +116,7 @@ cl_ev_send_msg(ProfChatWin *chatwin, const char *const msg) if (!handled) { char *id = message_send_chat(chatwin->barejid, msg); chat_log_msg_out(chatwin->barejid, msg); - ui_outgoing_chat_msg(chatwin, msg, id, PROF_MSG_PLAIN); + chatwin_outgoing_msg(chatwin, msg, id, PROF_MSG_PLAIN); free(id); } return; @@ -129,12 +129,12 @@ cl_ev_send_msg(ProfChatWin *chatwin, const char *const msg) if (chatwin->pgp_send) { char *id = message_send_chat_pgp(chatwin->barejid, msg); chat_log_pgp_msg_out(chatwin->barejid, msg); - ui_outgoing_chat_msg(chatwin, msg, id, PROF_MSG_PGP); + chatwin_outgoing_msg(chatwin, msg, id, PROF_MSG_PGP); free(id); } else { char *id = message_send_chat(chatwin->barejid, msg); chat_log_msg_out(chatwin->barejid, msg); - ui_outgoing_chat_msg(chatwin, msg, id, PROF_MSG_PLAIN); + chatwin_outgoing_msg(chatwin, msg, id, PROF_MSG_PLAIN); free(id); } return; @@ -146,7 +146,7 @@ cl_ev_send_msg(ProfChatWin *chatwin, const char *const msg) #ifndef HAVE_LIBGPGME char *id = message_send_chat(chatwin->barejid, msg); chat_log_msg_out(chatwin->barejid, msg); - ui_outgoing_chat_msg(chatwin, msg, id, PROF_MSG_PLAIN); + chatwin_outgoing_msg(chatwin, msg, id, PROF_MSG_PLAIN); free(id); return; #endif diff --git a/src/otr/otr.c b/src/otr/otr.c index facfb4f7..68ea3e11 100644 --- a/src/otr/otr.c +++ b/src/otr/otr.c @@ -331,7 +331,7 @@ otr_on_message_send(ProfChatWin *chatwin, const char *const message) if (encrypted) { id = message_send_chat_otr(chatwin->barejid, encrypted); chat_log_otr_msg_out(chatwin->barejid, message); - ui_outgoing_chat_msg(chatwin, message, id, PROF_MSG_OTR); + chatwin_outgoing_msg(chatwin, message, id, PROF_MSG_OTR); otr_free_message(encrypted); free(id); return TRUE; @@ -351,7 +351,7 @@ otr_on_message_send(ProfChatWin *chatwin, const char *const message) if (policy == PROF_OTRPOLICY_OPPORTUNISTIC) { char *otr_tagged_msg = otr_tag_message(message); id = message_send_chat_otr(chatwin->barejid, otr_tagged_msg); - ui_outgoing_chat_msg(chatwin, message, id, PROF_MSG_PLAIN); + chatwin_outgoing_msg(chatwin, message, id, PROF_MSG_PLAIN); chat_log_msg_out(chatwin->barejid, message); free(otr_tagged_msg); free(id); diff --git a/src/ui/chatwin.c b/src/ui/chatwin.c index 1202be9c..35d502c0 100644 --- a/src/ui/chatwin.c +++ b/src/ui/chatwin.c @@ -271,7 +271,7 @@ chatwin_incoming_msg(ProfChatWin *chatwin, const char *const resource, const cha } void -ui_outgoing_chat_msg(ProfChatWin *chatwin, const char *const message, char *id, prof_enc_t enc_mode) +chatwin_outgoing_msg(ProfChatWin *chatwin, const char *const message, char *id, prof_enc_t enc_mode) { char enc_char = '-'; if (enc_mode == PROF_MSG_OTR) { diff --git a/src/ui/ui.h b/src/ui/ui.h index fb56b6e1..2375c5dc 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -106,7 +106,7 @@ void chatwin_receipt_received(ProfChatWin *chatwin, const char *const id); void ui_disconnected(void); void chatwin_recipient_gone(ProfChatWin *chatwin); -void ui_outgoing_chat_msg(ProfChatWin *chatwin, const char *const message, char *id, prof_enc_t enc_mode); +void chatwin_outgoing_msg(ProfChatWin *chatwin, const char *const message, char *id, prof_enc_t enc_mode); void ui_outgoing_chat_msg_carbon(const char *const barejid, const char *const message); void ui_outgoing_private_msg(ProfPrivateWin *privwin, const char *const message); diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c index 0a13f8ec..f2f5369b 100644 --- a/tests/unittests/ui/stub_ui.c +++ b/tests/unittests/ui/stub_ui.c @@ -181,7 +181,7 @@ void ui_incoming_private_msg(const char * const fulljid, const char * const mess void ui_disconnected(void) {} void chatwin_recipient_gone(ProfChatWin *chatwin) {} -void ui_outgoing_chat_msg(ProfChatWin *chatwin, const char * const message, char *id, prof_enc_t enc_mode) {} +void chatwin_outgoing_msg(ProfChatWin *chatwin, const char * const message, char *id, prof_enc_t enc_mode) {} void ui_outgoing_chat_msg_carbon(const char * const barejid, const char * const message) {} void ui_outgoing_private_msg(ProfPrivateWin *privwin, const char * const message) {} |