123456789101112131415161718192021222324252627282930 |
- #ifndef LIBLOG_UTIL_H
- #define LIBLOG_UTIL_H
- #include "log_define.h"
- #include "time.h"
- LOG_CPP_START
- #ifndef MAX_UUID_LEN
- #define MAX_UUID_LEN 64
- #endif
- void md5_to_string(const char * buffer, int bufLen, char * md5);
- //int signature_to_base64(const char * sig, int sigLen, const char * key, int keyLen, char * base64);
- void get_format_uuid(char* strbuffer, int ulen);
- int GetLocalIP(char* ip_str);
- void GetTimeStr(time_t time, char* szTime);
- void GetUnitedTimeStr(time_t time, char* szTime);
- void convertUnCharTotr(char* str, unsigned char* UnChar, int ucLen);
- void convertStrToUnChar(char* str, unsigned char* UnChar);
- int mkdir_foreach(char* file_path, int length);
- LOG_CPP_END
- #endif
|