Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
50451ea9
Commit
50451ea9
authored
Nov 13, 2013
by
vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start add of binlog support
parent
568a0b8a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
main.c
main.c
+2
-0
No files found.
main.c
View file @
50451ea9
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
#define STATE_FILE "state"
#define STATE_FILE "state"
#define SECRET_CHAT_FILE "secret"
#define SECRET_CHAT_FILE "secret"
#define DOWNLOADS_DIRECTORY "downloads"
#define DOWNLOADS_DIRECTORY "downloads"
#define BINLOG_FILE "binlog"
#define CONFIG_DIRECTORY_MODE 0700
#define CONFIG_DIRECTORY_MODE 0700
...
@@ -266,6 +267,7 @@ void parse_config (void) {
...
@@ -266,6 +267,7 @@ void parse_config (void) {
parse_config_val
(
&
conf
,
&
state_file_name
,
"state_file"
,
STATE_FILE
,
config_directory
);
parse_config_val
(
&
conf
,
&
state_file_name
,
"state_file"
,
STATE_FILE
,
config_directory
);
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
);
parse_config_val
(
&
conf
,
&
binlog_file_name
,
"binlog"
,
BINLOG_FILE
,
config_directory
);
strcpy
(
buf
+
l
,
"binlog_enabled"
);
strcpy
(
buf
+
l
,
"binlog_enabled"
);
config_lookup_bool
(
&
conf
,
buf
,
&
binlog_enabled
);
config_lookup_bool
(
&
conf
,
buf
,
&
binlog_enabled
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment