Commit 4e699039 authored by chenhaowen's avatar chenhaowen

add: get version api

parent 8210ef96
......@@ -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";
......
......@@ -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__
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