db: Have one database per account

This commit is contained in:
Michael Vetter
2020-03-23 12:18:25 +01:00
parent 672f3e22e8
commit 11663625cc
7 changed files with 47 additions and 25 deletions

View File

@@ -139,22 +139,6 @@ files_get_log_file(char *log_file)
return result;
}
char*
files_get_chatlog_database_path(void)
{
gchar *xdg_data = _files_get_xdg_data_home();
GString *logfile = g_string_new(xdg_data);
g_string_append(logfile, "/profanity/chatlog.db");
char *result = strdup(logfile->str);
free(xdg_data);
g_string_free(logfile, TRUE);
return result;
}
char*
files_get_config_path(char *config_base)
{

View File

@@ -55,12 +55,12 @@
#define DIR_PGP "pgp"
#define DIR_OMEMO "omemo"
#define DIR_PLUGINS "plugins"
#define DIR_DATABASE "database"
void files_create_directories(void);
char* files_get_config_path(char *config_base);
char* files_get_data_path(char *data_base);
char* files_get_chatlog_database_path(void);
char* files_get_log_file(char *log_file);
char* files_get_inputrc_file(void);