Commit 3c604384 authored by vysheng's avatar vysheng

started to add binlog

parent faaf589e
...@@ -72,6 +72,7 @@ char *state_file_name; ...@@ -72,6 +72,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;
int binlog_enabled;
void set_default_username (const char *s) { void set_default_username (const char *s) {
if (default_username) { if (default_username) {
...@@ -269,6 +270,9 @@ void parse_config (void) { ...@@ -269,6 +270,9 @@ void parse_config (void) {
parse_config_val (&conf, &secret_chat_file_name, "secret", SECRET_CHAT_FILE, config_directory); parse_config_val (&conf, &secret_chat_file_name, "secret", SECRET_CHAT_FILE, config_directory);
parse_config_val (&conf, &downloads_directory, "downloads", DOWNLOADS_DIRECTORY, config_directory); parse_config_val (&conf, &downloads_directory, "downloads", DOWNLOADS_DIRECTORY, config_directory);
strcpy (buf + l, "binlog_enabled");
config_lookup_bool (&conf, buf, &binlog_enabled);
if (!mkdir (config_directory, CONFIG_DIRECTORY_MODE)) { if (!mkdir (config_directory, CONFIG_DIRECTORY_MODE)) {
printf ("[%s] created\n", config_directory); printf ("[%s] created\n", config_directory);
} }
......
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