From 8220fb2c54843caa5b89929f6b181c3f4978c51f Mon Sep 17 00:00:00 2001 From: vysheng Date: Wed, 13 Nov 2013 01:52:30 +0400 Subject: [PATCH] Another binlog commit --- main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.c b/main.c index 5109469..e1cd504 100644 --- a/main.c +++ b/main.c @@ -74,6 +74,7 @@ char *state_file_name; char *secret_chat_file_name; char *downloads_directory; char *config_directory; +char *binlog_file_name; int binlog_enabled; void set_default_username (const char *s) { @@ -149,6 +150,10 @@ char *get_downloads_directory (void) { return downloads_directory; } +char *get_binlog_file_name (void) { + return binlog_file_name; +} + char *make_full_path (char *s) { if (*s != '/') { char *t = s; @@ -286,6 +291,7 @@ void parse_config (void) { assert (asprintf (&state_file_name, "%s/%s/%s", get_home_directory (), CONFIG_DIRECTORY, STATE_FILE) >= 0); assert (asprintf (&secret_chat_file_name, "%s/%s/%s", get_home_directory (), CONFIG_DIRECTORY, SECRET_CHAT_FILE) >= 0); assert (asprintf (&downloads_directory, "%s/%s/%s", get_home_directory (), CONFIG_DIRECTORY, DOWNLOADS_DIRECTORY) >= 0); + assert (asprintf (&binlog_file_name, "%s/%s/%s", get_home_directory (), CONFIG_DIRECTORY, BINLOG_FILE) >= 0); } #endif