about summary refs log tree commit diff stats
path: root/src/otr/otrlibv4.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-10-27 21:23:56 +0000
committerJames Booth <boothj5@gmail.com>2015-10-27 21:23:56 +0000
commit40dcd597270c375ff2d0abc36554f6436f406a03 (patch)
tree49f3a6e07da36c0b1a8e5f7e99c40085b58d374d /src/otr/otrlibv4.c
parent0fd616167ee86562077327695f5f32974e9f5578 (diff)
downloadprofani-tty-40dcd597270c375ff2d0abc36554f6436f406a03.tar.gz
Renamed chatwin OTR functions
Diffstat (limited to 'src/otr/otrlibv4.c')
-rw-r--r--src/otr/otrlibv4.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/otr/otrlibv4.c b/src/otr/otrlibv4.c
index a82a98a8..cdfef5dd 100644
--- a/src/otr/otrlibv4.c
+++ b/src/otr/otrlibv4.c
@@ -183,24 +183,24 @@ cb_handle_smp_event(void *opdata, OtrlSMPEvent smp_event,
     {
         case OTRL_SMPEVENT_ASK_FOR_SECRET:
             if (chatwin) {
-                ui_smp_recipient_initiated(chatwin);
+                chatwin_otr_smp_init(chatwin);
             }
             g_hash_table_insert(smp_initiators, strdup(context->username), strdup(context->username));
             break;
 
         case OTRL_SMPEVENT_ASK_FOR_ANSWER:
             if (chatwin) {
-                ui_smp_recipient_initiated_q(chatwin, question);
+                chatwin_otr_smp_init_q(chatwin, question);
             }
             break;
 
         case OTRL_SMPEVENT_SUCCESS:
             if (chatwin) {
                 if (context->smstate->received_question == 0) {
-                    ui_smp_successful(chatwin);
-                    ui_trust(chatwin);
+                    chatwin_otr_smp_success(chatwin);
+                    chatwin_otr_trust(chatwin);
                 } else {
-                    ui_smp_answer_success(chatwin);
+                    chatwin_otr_smp_answer_success(chatwin);
                 }
             }
             break;
@@ -209,13 +209,13 @@ cb_handle_smp_event(void *opdata, OtrlSMPEvent smp_event,
             if (chatwin) {
                 if (context->smstate->received_question == 0) {
                     if (nextMsg == OTRL_SMP_EXPECT3) {
-                        ui_smp_unsuccessful_sender(chatwin);
+                        chatwin_otr_smp_sender_failed(chatwin);
                     } else if (nextMsg == OTRL_SMP_EXPECT4) {
-                        ui_smp_unsuccessful_receiver(chatwin);
+                        chatwin_otr_smp_receiver_failed(chatwin);
                     }
-                    ui_untrust(chatwin);
+                    chatwin_otr_untrust(chatwin);
                 } else {
-                    ui_smp_answer_failure(chatwin);
+                    chatwin_otr_smp_answer_failure(chatwin);
                 }
             }
             break;
@@ -230,8 +230,8 @@ cb_handle_smp_event(void *opdata, OtrlSMPEvent smp_event,
 
         case OTRL_SMPEVENT_ABORT:
             if (chatwin) {
-                ui_smp_aborted(chatwin);
-                ui_untrust(chatwin);
+                chatwin_otr_smp_aborted(chatwin);
+                chatwin_otr_untrust(chatwin);
             }
             break;