1 /* 2 * Copyright (C) 2025-2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 #ifndef DIA_INTERFACE_C_H 16 #define DIA_INTERFACE_C_H 17 #include "dia_config_c.h" 18 19 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 __attribute__((visibility("default"))) int DIA_CreateAnonymize(void *config, void** anonymize); // 创建隐私助理对象 24 // 释放隐私助理对象 25 __attribute__((visibility("default"))) int DIA_IdentifyAnonymize(void *anonymize, const DIA_String *input, 26 DIA_String **output); 27 __attribute__((visibility("default"))) void DIA_ReleaseAnonymize(void** anonymize); // 对敏感信息进行识别和脱敏 28 __attribute__((visibility("default"))) void DIA_ReleaseOutputData(DIA_String** output); // 释放识别和脱敏后的数据 29 30 #ifdef __cplusplus 31 } 32 #endif 33 #endif /* DIA_INTERFACE_C_H */