Added HAVE_LIBOTR checks
This commit is contained in:
@@ -79,6 +79,7 @@ chatwin_receipt_received(ProfChatWin *chatwin, const char *const id)
|
|||||||
win_mark_received(win, id);
|
win_mark_received(win, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBOTR
|
||||||
void
|
void
|
||||||
chatwin_otr_secured(ProfChatWin *chatwin, gboolean trusted)
|
chatwin_otr_secured(ProfChatWin *chatwin, gboolean trusted)
|
||||||
{
|
{
|
||||||
@@ -201,6 +202,7 @@ chatwin_otr_untrust(ProfChatWin *chatwin)
|
|||||||
title_bar_switch();
|
title_bar_switch();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
chatwin_recipient_gone(ProfChatWin *chatwin)
|
chatwin_recipient_gone(ProfChatWin *chatwin)
|
||||||
|
|||||||
@@ -38,7 +38,9 @@
|
|||||||
#include "command/commands.h"
|
#include "command/commands.h"
|
||||||
#include "ui/win_types.h"
|
#include "ui/win_types.h"
|
||||||
#include "muc.h"
|
#include "muc.h"
|
||||||
|
#ifdef HAVE_LIBOTR
|
||||||
#include "otr/otr.h"
|
#include "otr/otr.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define NO_ME 1
|
#define NO_ME 1
|
||||||
#define NO_DATE 2
|
#define NO_DATE 2
|
||||||
@@ -65,11 +67,15 @@ void ui_sigwinch_handler(int sig);
|
|||||||
|
|
||||||
ProfChatWin* chatwin_new(const char *const barejid);
|
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);
|
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_secured(ProfChatWin *chatwin, gboolean trusted);
|
||||||
void chatwin_otr_unsecured(ProfChatWin *chatwin);
|
void chatwin_otr_unsecured(ProfChatWin *chatwin);
|
||||||
void chatwin_otr_trust(ProfChatWin *chatwin);
|
void chatwin_otr_trust(ProfChatWin *chatwin);
|
||||||
void chatwin_otr_untrust(ProfChatWin *chatwin);
|
void chatwin_otr_untrust(ProfChatWin *chatwin);
|
||||||
void chatwin_otr_smp_event(ProfChatWin *chatwin, prof_otr_smp_event_t event, void *data);
|
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_receipt_received(ProfChatWin *chatwin, const char *const id);
|
||||||
void chatwin_recipient_gone(ProfChatWin *chatwin);
|
void chatwin_recipient_gone(ProfChatWin *chatwin);
|
||||||
void chatwin_outgoing_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);
|
||||||
|
|||||||
Reference in New Issue
Block a user