about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-03-23 12:18:25 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-04-06 10:50:20 +0200
commit11663625cc04cbe779e77509118872cacbd1b3e1 (patch)
tree29bb3f2d12adfd44063568ea88b0484fd2ffbe28 /src/config
parent672f3e22e87e899a38efe1a498057fe87e24be6e (diff)
downloadprofani-tty-11663625cc04cbe779e77509118872cacbd1b3e1.tar.gz
db: Have one database per account
Diffstat (limited to 'src/config')
-rw-r--r--src/config/files.c16
-rw-r--r--src/config/files.h2
2 files changed, 1 insertions, 17 deletions
diff --git a/src/config/files.c b/src/config/files.c
index e77bfa30..bdaf6a93 100644
--- a/src/config/files.c
+++ b/src/config/files.c
@@ -140,22 +140,6 @@ files_get_log_file(char *log_file)
 }
 
 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)
 {
     gchar *xdg_config = _files_get_xdg_config_home();
diff --git a/src/config/files.h b/src/config/files.h
index 124c3ac8..1e16802a 100644
--- a/src/config/files.h
+++ b/src/config/files.h
@@ -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);