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:
parent
1155963c6c
commit
4a7a0f3e76
@ -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();
|
||||
|
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user