diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-03-23 12:33:42 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-04-06 10:50:20 +0200 |
commit | 4a7a0f3e76314bac90fd965ff3f8932c936fd02b (patch) | |
tree | 320af23f46df1ae7da40c1b1f91598f2d02f8acd /src | |
parent | 1155963c6c654ec79379921955b8be167c35c97f (diff) | |
download | profani-tty-4a7a0f3e76314bac90fd965ff3f8932c936fd02b.tar.gz |
db: move includes
Diffstat (limited to 'src')
-rw-r--r-- | src/database.c | 5 | ||||
-rw-r--r-- | src/database.h | 8 | ||||
-rw-r--r-- | src/event/common.c | 2 |
3 files changed, 8 insertions, 7 deletions
diff --git a/src/database.c b/src/database.c index de1d36fb..853879f6 100644 --- a/src/database.c +++ b/src/database.c @@ -38,13 +38,10 @@ #include <sys/stat.h> #include <sqlite3.h> #include <stdio.h> -#include <glib.h> #include <errno.h> #include "log.h" #include "config/files.h" -#include "config/account.h" -#include "xmpp/xmpp.h" static sqlite3 *g_chatlog_database; @@ -80,7 +77,7 @@ _get_db_filename(ProfAccount *account) return result; } -bool +gboolean log_database_init(ProfAccount *account) { int ret = sqlite3_initialize(); diff --git a/src/database.h b/src/database.h index 82fa6aaa..9281e6e6 100644 --- a/src/database.h +++ b/src/database.h @@ -36,9 +36,13 @@ #ifndef DATABASE_H #define DATABASE_H -bool log_database_init(ProfAccount *account); -void log_database_close(void); +#include <glib.h> +#include "config/account.h" +#include "xmpp/xmpp.h" + +gboolean log_database_init(ProfAccount *account); void log_database_add(ProfMessage *message, gboolean is_muc); +void log_database_close(void); #endif // DATABASE_H diff --git a/src/event/common.c b/src/event/common.c index 4dc62b07..2d829e5c 100644 --- a/src/event/common.c +++ b/src/event/common.c @@ -33,13 +33,13 @@ * */ -#include "database.h" #include "config/tlscerts.h" #include "ui/ui.h" #include "xmpp/chat_session.h" #include "xmpp/roster_list.h" #include "xmpp/muc.h" #include "xmpp/xmpp.h" +#include "database.h" #ifdef HAVE_LIBGPGME #include "pgp/gpg.h" |