From d0d37d605abe3413ff8afca150e20e475880e78e Mon Sep 17 00:00:00 2001 From: root Date: Thu, 17 Oct 2024 10:20:30 +0000 Subject: TSG-22757: 1.适配新版maat,加载json格式的规则 2.适配规则ID变为UUID MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/utils.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'common/src/utils.cpp') diff --git a/common/src/utils.cpp b/common/src/utils.cpp index ecd856f..bbf0dca 100644 --- a/common/src/utils.cpp +++ b/common/src/utils.cpp @@ -292,3 +292,10 @@ int str_to_mac(const char *str, char *mac_buff) return -1; } } + +const char *uuid_print_str(uuid_t uuid) +{ + static thread_local char uuid_str[UUID_STR_LEN] = {0}; + uuid_unparse(uuid, uuid_str); + return uuid_str; +} \ No newline at end of file -- cgit v1.2.3