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 OHOS_HIVIEWDFX_HISYSEVENT_RET_H
17#define OHOS_HIVIEWDFX_HISYSEVENT_RET_H
18
19namespace OHOS {
20namespace HiviewDFX {
21static constexpr int32_t IPC_CALL_SUCCEED = 0;
22
23static constexpr int32_t ERR_LISTENER_NOT_EXIST = -10;
24static constexpr int32_t ERR_SYS_EVENT_SERVICE_NOT_FOUND = -11;
25
26static constexpr int32_t ERR_PARCEL_DATA_IS_NULL = -12;
27static constexpr int32_t ERR_REMOTE_SERVICE_IS_NULL = -13;
28static constexpr int32_t ERR_CAN_NOT_WRITE_DESCRIPTOR = -14;
29static constexpr int32_t ERR_CAN_NOT_WRITE_PARCEL = -15;
30static constexpr int32_t ERR_CAN_NOT_WRITE_REMOTE_OBJECT = -16;
31static constexpr int32_t ERR_CAN_NOT_SEND_REQ = -17;
32static constexpr int32_t ERR_CAN_NOT_READ_PARCEL = -18;
33static constexpr int32_t ERR_NO_PERMISSION = -19;
34static constexpr int32_t ERR_LISTENER_STATUS_INVALID = -20;
35static constexpr int32_t ERR_LISTENERS_EMPTY = -21;
36static constexpr int32_t ERR_ADD_DEATH_RECIPIENT = -22;
37static constexpr int32_t ERR_QUERY_RULE_INVALID = -23;
38static constexpr int32_t ERR_DEBUG_MODE_SET_REPEAT = -24;
39
40static constexpr int32_t ERR_TOO_MANY_WATCH_RULES = -25;
41static constexpr int32_t ERR_TOO_MANY_WATCHERS = -26;
42static constexpr int32_t ERR_TOO_MANY_QUERY_RULES = -27;
43static constexpr int32_t ERR_TOO_MANY_CONCURRENT_QUERIES = -28;
44static constexpr int32_t ERR_QUERY_OVER_TIME = -29;
45static constexpr int32_t ERR_QUERY_OVER_LIMIT = -30;
46static constexpr int32_t ERR_QUERY_TOO_FREQUENTLY = -31;
47
48static constexpr int32_t ERR_TOO_MANY_EVENTS = -32;
49static constexpr int32_t ERR_EXPORT_FREQUENCY_OVER_LIMIT = -33;
50static constexpr int32_t ERR_REMOVE_SUBSCRIBE = -34;
51
52/* for c interface */
53static constexpr int32_t ERR_QUERY_ARG_NULL = -35;
54static constexpr int32_t ERR_QUERY_CALLBACK_NULL = -36;
55} // namespace HiviewDFX
56} // namespace OHOS
57
58#endif // OHOS_HIVIEWDFX_HISYSEVENT_RET_H
59