1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

db: move includes

This commit is contained in:
Michael Vetter 2020-03-23 12:33:42 +01:00
parent 1155963c6c
commit 4a7a0f3e76
3 changed files with 8 additions and 7 deletions

View File

@ -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();

View File

@ -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

View File

@ -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"