1 /* 2 * Copyright (c) 2022-2023 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 16 #ifndef HISYSEVENT_ADAPTER_H 17 #define HISYSEVENT_ADAPTER_H 18 19 #ifndef DEV_AUTH_HIVIEW_ENABLE 20 21 #define DEV_AUTH_REPORT_CALL_EVENT(a, b, c, d) 22 23 #else 24 25 #include <stdint.h> 26 27 #define CREATE_GROUP_EVENT "CreateGroup" 28 #define DELETE_GROUP_EVENT "DeleteGroup" 29 #define ADD_MEMBER_EVENT "AddMember" 30 #define DEL_MEMBER_EVENT "DelMember" 31 #define ADD_MULTI_MEMBER_EVENT "AddMultiMember" 32 #define DEL_MULTI_MEMBER_EVENT "DelMultiMember" 33 #define AUTH_DEV_EVENT "AuthDevice" 34 35 #define DEV_AUTH_REPORT_CALL_EVENT(a, b, c, d) DevAuthReportCallEvent(a, b, c, d) 36 37 #ifdef __cplusplus 38 extern "C" { 39 #endif 40 41 void DevAuthReportCallEvent(const char *funcName, int32_t osAccountId, int64_t reqId, const char *appId); 42 43 #ifdef __cplusplus 44 } 45 #endif 46 47 #endif 48 49 #endif 50