1 /* 2 * Copyright (c) 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 SECURITY_GUARD_DATA_COLLECT_MANAGER_SERVICE_IPC_INTERFACE_CODE_H 17 #define SECURITY_GUARD_DATA_COLLECT_MANAGER_SERVICE_IPC_INTERFACE_CODE_H 18 19 #include <cstdint> 20 21 /* SAID: 3524 */ 22 namespace OHOS::Security::SecurityGuard { 23 enum class DataCollectManagerInterfaceCode { 24 CMD_DATA_COLLECT = 1, 25 CMD_DATA_REQUEST = 2, 26 CMD_DATA_SUBSCRIBE = 3, 27 CMD_DATA_UNSUBSCRIBE = 4, 28 CMD_SECURITY_EVENT_QUERY = 5, 29 CMD_SECURITY_COLLECTOR_START = 6, 30 CMD_SECURITY_COLLECTOR_STOP = 7, 31 CMD_SECURITY_CONFIG_UPDATE = 8, 32 }; 33 34 enum class DataCollectManagerCallbackInterfaceCode { 35 CMD_SET_REQUEST_DATA = 1, 36 CMD_DATA_SUBSCRIBE_CALLBACK = 2, 37 }; 38 39 enum class SecurityEventQueryCallbackInterfaceCode { 40 CMD_ON_QUERY = 1, 41 CMD_ON_COMPLETE = 2, 42 CMD_ON_ERROR = 3, 43 }; 44 } // namespace OHOS::Security::SecurityGuard 45 46 #endif // SECURITY_GUARD_DATA_COLLECT_MANAGER_SERVICE_IPC_INTERFACE_CODE_H