11401458bSopenharmony_ci/* 21401458bSopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd. 31401458bSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 41401458bSopenharmony_ci * you may not use this file except in compliance with the License. 51401458bSopenharmony_ci * You may obtain a copy of the License at 61401458bSopenharmony_ci * 71401458bSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 81401458bSopenharmony_ci * 91401458bSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 101401458bSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 111401458bSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 121401458bSopenharmony_ci * See the License for the specific language governing permissions and 131401458bSopenharmony_ci * limitations under the License. 141401458bSopenharmony_ci */ 151401458bSopenharmony_ci 161401458bSopenharmony_ci#ifndef OHOS_HIVIEWDFX_HISYSEVENT_RET_H 171401458bSopenharmony_ci#define OHOS_HIVIEWDFX_HISYSEVENT_RET_H 181401458bSopenharmony_ci 191401458bSopenharmony_cinamespace OHOS { 201401458bSopenharmony_cinamespace HiviewDFX { 211401458bSopenharmony_cistatic constexpr int32_t IPC_CALL_SUCCEED = 0; 221401458bSopenharmony_ci 231401458bSopenharmony_cistatic constexpr int32_t ERR_LISTENER_NOT_EXIST = -10; 241401458bSopenharmony_cistatic constexpr int32_t ERR_SYS_EVENT_SERVICE_NOT_FOUND = -11; 251401458bSopenharmony_ci 261401458bSopenharmony_cistatic constexpr int32_t ERR_PARCEL_DATA_IS_NULL = -12; 271401458bSopenharmony_cistatic constexpr int32_t ERR_REMOTE_SERVICE_IS_NULL = -13; 281401458bSopenharmony_cistatic constexpr int32_t ERR_CAN_NOT_WRITE_DESCRIPTOR = -14; 291401458bSopenharmony_cistatic constexpr int32_t ERR_CAN_NOT_WRITE_PARCEL = -15; 301401458bSopenharmony_cistatic constexpr int32_t ERR_CAN_NOT_WRITE_REMOTE_OBJECT = -16; 311401458bSopenharmony_cistatic constexpr int32_t ERR_CAN_NOT_SEND_REQ = -17; 321401458bSopenharmony_cistatic constexpr int32_t ERR_CAN_NOT_READ_PARCEL = -18; 331401458bSopenharmony_cistatic constexpr int32_t ERR_NO_PERMISSION = -19; 341401458bSopenharmony_cistatic constexpr int32_t ERR_LISTENER_STATUS_INVALID = -20; 351401458bSopenharmony_cistatic constexpr int32_t ERR_LISTENERS_EMPTY = -21; 361401458bSopenharmony_cistatic constexpr int32_t ERR_ADD_DEATH_RECIPIENT = -22; 371401458bSopenharmony_cistatic constexpr int32_t ERR_QUERY_RULE_INVALID = -23; 381401458bSopenharmony_cistatic constexpr int32_t ERR_DEBUG_MODE_SET_REPEAT = -24; 391401458bSopenharmony_ci 401401458bSopenharmony_cistatic constexpr int32_t ERR_TOO_MANY_WATCH_RULES = -25; 411401458bSopenharmony_cistatic constexpr int32_t ERR_TOO_MANY_WATCHERS = -26; 421401458bSopenharmony_cistatic constexpr int32_t ERR_TOO_MANY_QUERY_RULES = -27; 431401458bSopenharmony_cistatic constexpr int32_t ERR_TOO_MANY_CONCURRENT_QUERIES = -28; 441401458bSopenharmony_cistatic constexpr int32_t ERR_QUERY_OVER_TIME = -29; 451401458bSopenharmony_cistatic constexpr int32_t ERR_QUERY_OVER_LIMIT = -30; 461401458bSopenharmony_cistatic constexpr int32_t ERR_QUERY_TOO_FREQUENTLY = -31; 471401458bSopenharmony_ci 481401458bSopenharmony_cistatic constexpr int32_t ERR_TOO_MANY_EVENTS = -32; 491401458bSopenharmony_cistatic constexpr int32_t ERR_EXPORT_FREQUENCY_OVER_LIMIT = -33; 501401458bSopenharmony_cistatic constexpr int32_t ERR_REMOVE_SUBSCRIBE = -34; 511401458bSopenharmony_ci 521401458bSopenharmony_ci/* for c interface */ 531401458bSopenharmony_cistatic constexpr int32_t ERR_QUERY_ARG_NULL = -35; 541401458bSopenharmony_cistatic constexpr int32_t ERR_QUERY_CALLBACK_NULL = -36; 551401458bSopenharmony_ci} // namespace HiviewDFX 561401458bSopenharmony_ci} // namespace OHOS 571401458bSopenharmony_ci 581401458bSopenharmony_ci#endif // OHOS_HIVIEWDFX_HISYSEVENT_RET_H 59