diff options
author | Michael Vetter <jubalh@iodoru.org> | 2022-06-28 21:14:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 21:14:27 +0200 |
commit | 5fabca1e3746634eed2be3244313af173c1b6a7d (patch) | |
tree | 5f47bdfe294d54e0b23b897a541cbcfb3c77b37a /src/log.h | |
parent | e8ae8257095d012e848b71e50269300644c24a12 (diff) | |
parent | 974f21efdc1e97902633df0b0eae5f0e855e27fa (diff) | |
download | profani-tty-5fabca1e3746634eed2be3244313af173c1b6a7d.tar.gz |
Merge pull request #1727 from profanity-im/log-chatlog-split
Split chatlog and log functions in separate files
Diffstat (limited to 'src/log.h')
-rw-r--r-- | src/log.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/log.h b/src/log.h index 596227d2..2a955c90 100644 --- a/src/log.h +++ b/src/log.h @@ -38,8 +38,6 @@ #include <glib.h> -#include "xmpp/message.h" - // log levels typedef enum { PROF_LEVEL_DEBUG, @@ -48,11 +46,6 @@ typedef enum { PROF_LEVEL_ERROR } log_level_t; -typedef enum { - PROF_IN_LOG, - PROF_OUT_LOG -} chat_log_direction_t; - void log_init(log_level_t filter, char* log_file); log_level_t log_get_filter(void); void log_close(void); @@ -69,25 +62,4 @@ void log_stderr_init(log_level_t level); void log_stderr_close(void); void log_stderr_handler(void); -void chat_log_init(void); - -void chat_log_msg_out(const char* const barejid, const char* const msg, const char* resource); -void chat_log_otr_msg_out(const char* const barejid, const char* const msg, const char* resource); -void chat_log_pgp_msg_out(const char* const barejid, const char* const msg, const char* resource); -void chat_log_omemo_msg_out(const char* const barejid, const char* const msg, const char* resource); - -void chat_log_msg_in(ProfMessage* message); -void chat_log_otr_msg_in(ProfMessage* message); -void chat_log_pgp_msg_in(ProfMessage* message); -void chat_log_omemo_msg_in(ProfMessage* message); - -void chat_log_close(void); - -void groupchat_log_init(void); - -void groupchat_log_msg_out(const gchar* const room, const gchar* const msg); -void groupchat_log_msg_in(const gchar* const room, const gchar* const nick, const gchar* const msg); -void groupchat_log_omemo_msg_out(const gchar* const room, const gchar* const msg); -void groupchat_log_omemo_msg_in(const gchar* const room, const gchar* const nick, const gchar* const msg); - #endif |