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 OHOS_HIVIEWDFX_SYS_EVENT_SERVICE_IPC_INTERFACE_CODE_H 17 #define OHOS_HIVIEWDFX_SYS_EVENT_SERVICE_IPC_INTERFACE_CODE_H 18 19 /* SAID: 1203 */ 20 namespace OHOS { 21 namespace HiviewDFX { 22 enum class SysEventServiceInterfaceCode { 23 ADD_SYS_EVENT_LISTENER = 0, 24 REMOVE_SYS_EVENT_LISTENER, 25 QUERY_SYS_EVENT, 26 SET_DEBUG_MODE, 27 ADD_SYS_EVENT_SUBSCRIBER, 28 REMOVE_SYS_EVENT_SUBSCRIBER, 29 EXPORT_SYS_EVENT 30 }; 31 32 enum class SysEventCallbackInterfaceCode { 33 HANDLE = 0, 34 }; 35 36 enum class QuerySysEventCallbackInterfaceCode { 37 ON_QUERY = 0, 38 ON_COMPLETE, 39 }; 40 } // namespace HiviewDFX 41 } // namespace OHOS 42 43 #endif // OHOS_HIVIEWDFX_SYS_EVENT_SERVICE_IPC_INTERFACE_CODE_H 44