Commit 8220fb2c authored by vysheng's avatar vysheng

Another binlog commit

parent baa1b481
...@@ -74,6 +74,7 @@ char *state_file_name; ...@@ -74,6 +74,7 @@ char *state_file_name;
char *secret_chat_file_name; char *secret_chat_file_name;
char *downloads_directory; char *downloads_directory;
char *config_directory; char *config_directory;
char *binlog_file_name;
int binlog_enabled; int binlog_enabled;
void set_default_username (const char *s) { void set_default_username (const char *s) {
...@@ -149,6 +150,10 @@ char *get_downloads_directory (void) { ...@@ -149,6 +150,10 @@ char *get_downloads_directory (void) {
return downloads_directory; return downloads_directory;
} }
char *get_binlog_file_name (void) {
return binlog_file_name;
}
char *make_full_path (char *s) { char *make_full_path (char *s) {
if (*s != '/') { if (*s != '/') {
char *t = s; char *t = s;
...@@ -286,6 +291,7 @@ void parse_config (void) { ...@@ -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 (&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 (&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 (&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 #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment