From 44d16e91411da44a945b0ac44c0253c1dac5e5f3 Mon Sep 17 00:00:00 2001 From: Paul Fariello Date: Mon, 17 Jun 2019 06:23:40 +0200 Subject: Add prof_message_t to wrap all message attributes Probably missing copy of body to plain in carbon and privmessage. Only covers the incoming message path because goal is OMEMO decryption of untrusted message. Cover some of the log functions but not all. --- src/log.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/log.h') diff --git a/src/log.h b/src/log.h index 1f45545c..e6bea8dc 100644 --- a/src/log.h +++ b/src/log.h @@ -37,6 +37,8 @@ #include +#include "xmpp/message.h" + // log levels typedef enum { PROF_LEVEL_DEBUG, @@ -73,10 +75,10 @@ void chat_log_otr_msg_out(const char *const barejid, const char *const msg); void chat_log_pgp_msg_out(const char *const barejid, const char *const msg); void chat_log_omemo_msg_out(const char *const barejid, const char *const msg); -void chat_log_msg_in(const char *const barejid, const char *const msg, GDateTime *timestamp); -void chat_log_otr_msg_in(const char *const barejid, const char *const msg, gboolean was_decrypted, GDateTime *timestamp); -void chat_log_pgp_msg_in(const char *const barejid, const char *const msg, GDateTime *timestamp); -void chat_log_omemo_msg_in(const char *const barejid, const char *const msg, GDateTime *timestamp); +void chat_log_msg_in(prof_message_t *message); +void chat_log_otr_msg_in(prof_message_t *message); +void chat_log_pgp_msg_in(prof_message_t *message); +void chat_log_omemo_msg_in(prof_message_t *message); void chat_log_close(void); GSList* chat_log_get_previous(const gchar *const login, const gchar *const recipient); -- cgit 1.4.1-2-gfad0