diff options
| author | root <[email protected]> | 2024-10-17 10:20:30 +0000 |
|---|---|---|
| committer | root <[email protected]> | 2024-10-17 10:20:30 +0000 |
| commit | d0d37d605abe3413ff8afca150e20e475880e78e (patch) | |
| tree | 296b4cf7b4fb3172a9d493bc8745fb7293b73463 /common/include/utils.h | |
| parent | b0de64f0deb1672f0b183f72b99d615f00a73b3b (diff) | |
TSG-22757: 1.适配新版maat,加载json格式的规则 2.适配规则ID变为UUID
Diffstat (limited to 'common/include/utils.h')
| -rw-r--r-- | common/include/utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/include/utils.h b/common/include/utils.h index 38ad5d3..3f880f9 100644 --- a/common/include/utils.h +++ b/common/include/utils.h @@ -1,5 +1,6 @@ #ifndef _UTILS_H #define _UTILS_H +#include <uuid/uuid.h> #ifdef __cpluscplus extern "C" @@ -112,6 +113,11 @@ int get_ip_by_device_name(const char *dev_name, char *ip_buff); int get_mac_by_device_name(const char *dev_name, char *mac_buff); int str_to_mac(const char *str, char *mac_buff); +/****************************************************************************** + * uuid + ******************************************************************************/ +const char *uuid_print_str(uuid_t uuid); + #ifdef __cpluscplus } #endif |
