Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gdut-drcom
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
gdut-drcom
Commits
4e699039
Commit
4e699039
authored
Nov 22, 2016
by
chenhaowen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: get version api
parent
8210ef96
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
src/config.c
src/config.c
+5
-0
src/config.h
src/config.h
+1
-0
No files found.
src/config.c
View file @
4e699039
...
...
@@ -39,6 +39,11 @@ void set_enable_crypt(int enable)
printf
(
"set enable_crypt = %d
\n
"
,
enable
);
}
void
get_version
(
char
*
version
)
{
memcpy
(
version
,
VERSION
,
strlen
(
VERSION
));
}
int
parse_config
(
char
*
conf_file_name
)
{
// char conf_file_name[256] = "/etc/gdut-drcom.conf";
...
...
src/config.h
View file @
4e699039
...
...
@@ -20,5 +20,6 @@ int parse_config(char * conf_file_name);
void
set_remote_ip
(
char
*
ip
,
int
len
);
void
set_keep_alive1_flag
(
char
*
flag
,
int
len
);
void
set_enable_crypt
(
int
enable
);
void
get_version
(
char
*
version
);
#endif //__CONFIG_H__
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