diff options
author | James Booth <boothj5@gmail.com> | 2015-10-31 23:22:23 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-10-31 23:22:23 +0000 |
commit | 24896a3bfbdd21e71e7ff5476a33bb87ebf114dd (patch) | |
tree | 5c6fa6b4089bf5640c9695095c5f4e5092872236 | |
parent | dda753da3bbad6ecebadf605b0e34fe5674953eb (diff) | |
download | profani-tty-24896a3bfbdd21e71e7ff5476a33bb87ebf114dd.tar.gz |
Added HAVE_LIBOTR checks
-rw-r--r-- | src/ui/chatwin.c | 2 | ||||
-rw-r--r-- | src/ui/ui.h | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/chatwin.c b/src/ui/chatwin.c index 0e78fc24..047352c5 100644 --- a/src/ui/chatwin.c +++ b/src/ui/chatwin.c @@ -79,6 +79,7 @@ chatwin_receipt_received(ProfChatWin *chatwin, const char *const id) win_mark_received(win, id); } +#ifdef HAVE_LIBOTR void chatwin_otr_secured(ProfChatWin *chatwin, gboolean trusted) { @@ -201,6 +202,7 @@ chatwin_otr_untrust(ProfChatWin *chatwin) title_bar_switch(); } } +#endif void chatwin_recipient_gone(ProfChatWin *chatwin) diff --git a/src/ui/ui.h b/src/ui/ui.h index 088a5953..cf3bff01 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -38,7 +38,9 @@ #include "command/commands.h" #include "ui/win_types.h" #include "muc.h" +#ifdef HAVE_LIBOTR #include "otr/otr.h" +#endif #define NO_ME 1 #define NO_DATE 2 @@ -65,11 +67,15 @@ void ui_sigwinch_handler(int sig); ProfChatWin* chatwin_new(const char *const barejid); void chatwin_incoming_msg(ProfChatWin *chatwin, const char *const resource, const char *const message, GDateTime *timestamp, gboolean win_created, prof_enc_t enc_mode); + +#ifdef HAVE_LIBOTR void chatwin_otr_secured(ProfChatWin *chatwin, gboolean trusted); void chatwin_otr_unsecured(ProfChatWin *chatwin); void chatwin_otr_trust(ProfChatWin *chatwin); void chatwin_otr_untrust(ProfChatWin *chatwin); void chatwin_otr_smp_event(ProfChatWin *chatwin, prof_otr_smp_event_t event, void *data); +#endif + void chatwin_receipt_received(ProfChatWin *chatwin, const char *const id); void chatwin_recipient_gone(ProfChatWin *chatwin); void chatwin_outgoing_msg(ProfChatWin *chatwin, const char *const message, char *id, prof_enc_t enc_mode); |