1 /* 2 * Copyright (c) 2022 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 #include <stdint.h> 20 21 #define EVENT_APPID_LEN 128 22 23 24 enum InvokeEventId { 25 EVENT_ID_CREATE_GROUP = 0, 26 EVENT_ID_DELETE_GROUP = 1, 27 EVENT_ID_ADD_MEMBER = 2, 28 EVENT_ID_DELETE_MEMBER = 3, 29 EVENT_ID_GET_REGISTER_INFO = 4, 30 EVENT_ID_ADD_MULTI_MEMBERS = 5, 31 EVENT_ID_DELETE_MULTI_MEMBERS = 6, 32 EVENT_ID_AUTH_DEVICE = 7, 33 }; 34 35 typedef struct InvokeEvent { 36 int32_t eventId; 37 char appId[EVENT_APPID_LEN]; 38 int32_t type; 39 int32_t batchNumber; 40 int32_t result; 41 int32_t osAccountId; 42 } InvokeEvent; 43 44 #ifdef __cplusplus 45 extern "C" { 46 #endif 47 48 void ReportCoreFuncInvokeEvent(const InvokeEvent *event); 49 50 #ifdef __cplusplus 51 } 52 #endif 53 54 #endif // SERVICE_DSLM_BIGDATA_H 55