File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -45,28 +45,28 @@ API_EXPORT char* API_CALL mk_util_get_exe_path();
4545 * @param relative_path 同目录下文件的路径相对,可以为null 
4646 * @return 文件路径,使用完后需要自己free 
4747 */ 
48- API_EXPORT  char *  API_CALL  mk_uitl_get_exe_dir (const  char  * relative_path );
48+ API_EXPORT  char *  API_CALL  mk_util_get_exe_dir (const  char  * relative_path );
4949
5050/** 
5151 * 获取unix标准的系统时间戳 
5252 * @return 当前系统时间戳 
5353 */ 
54- API_EXPORT  uint64_t  API_CALL  mk_uitl_get_current_millisecond ();
54+ API_EXPORT  uint64_t  API_CALL  mk_util_get_current_millisecond ();
5555
5656/** 
5757 * 获取时间字符串 
5858 * @param fmt 时间格式,譬如%Y-%m-%d %H:%M:%S 
5959 * @return 时间字符串,使用完后需要自己free 
6060 */ 
61- API_EXPORT  char *  API_CALL  mk_uitl_get_current_time_string (const  char  * fmt );
61+ API_EXPORT  char *  API_CALL  mk_util_get_current_time_string (const  char  * fmt );
6262
6363/** 
6464 * 打印二进制为字符串 
6565 * @param buf 二进制数据 
6666 * @param len 数据长度 
6767 * @return 可打印的调试信息,使用完后需要自己free 
6868 */ 
69- API_EXPORT  char *  API_CALL  mk_uitl_hex_dump (const  void  * buf , int  len );
69+ API_EXPORT  char *  API_CALL  mk_util_hex_dump (const  void  * buf , int  len );
7070///////////////////////////////////////////日志///////////////////////////////////////////// 
7171
7272/** 
Original file line number Diff line number Diff line change @@ -35,23 +35,23 @@ API_EXPORT char* API_CALL mk_util_get_exe_path(){
3535    return  strdup (exePath ().data ());
3636}
3737
38- API_EXPORT char * API_CALL mk_uitl_get_exe_dir (const  char  *relative_path){
38+ API_EXPORT char * API_CALL mk_util_get_exe_dir (const  char  *relative_path){
3939    if (relative_path){
4040        return  strdup ((exeDir () + relative_path).data ());
4141    }
4242    return  strdup (exeDir ().data ());
4343}
4444
45- API_EXPORT uint64_t  API_CALL mk_uitl_get_current_millisecond (){
45+ API_EXPORT uint64_t  API_CALL mk_util_get_current_millisecond (){
4646    return  getCurrentMillisecond ();
4747}
4848
49- API_EXPORT char * API_CALL mk_uitl_get_current_time_string (const  char  *fmt){
49+ API_EXPORT char * API_CALL mk_util_get_current_time_string (const  char  *fmt){
5050    assert (fmt);
5151    return  strdup (getTimeStr (fmt).data ());
5252}
5353
54- API_EXPORT char * API_CALL mk_uitl_hex_dump (const  void  *buf, int  len){
54+ API_EXPORT char * API_CALL mk_util_hex_dump (const  void  *buf, int  len){
5555    assert (buf && len > 0 );
5656    return  strdup (hexdump (buf,len).data ());
5757}
Original file line number Diff line number Diff line change @@ -396,8 +396,8 @@ static void s_on_exit(int sig){
396396    flag  =  0 ;
397397}
398398int  main (int  argc , char  * argv []) {
399-     char  * ini_path  =  mk_uitl_get_exe_dir ("c_api.ini" );
400-     char  * ssl_path  =  mk_uitl_get_exe_dir ("ssl.p12" );
399+     char  * ini_path  =  mk_util_get_exe_dir ("c_api.ini" );
400+     char  * ssl_path  =  mk_util_get_exe_dir ("ssl.p12" );
401401
402402    mk_config  config  =  {
403403            .ini  =  ini_path ,
Original file line number Diff line number Diff line change @@ -195,8 +195,8 @@ void test_client(){
195195}
196196
197197int  main (int  argc , char  * argv []) {
198-     char  * ini_path  =  mk_uitl_get_exe_dir ("c_api.ini" );
199-     char  * ssl_path  =  mk_uitl_get_exe_dir ("ssl.p12" );
198+     char  * ini_path  =  mk_util_get_exe_dir ("c_api.ini" );
199+     char  * ssl_path  =  mk_util_get_exe_dir ("ssl.p12" );
200200
201201    mk_config  config  =  {
202202            .ini  =  ini_path ,
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments