1 /* 2 * Copyright (c) 2024 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_INTERFACES_NATIVE_INNERKITS_HISYSEVENT_EASY_DEF_H 17 #define HISYSEVENT_INTERFACES_NATIVE_INNERKITS_HISYSEVENT_EASY_DEF_H 18 19 #define EVENT_BUFF_LEN (1120) 20 21 #define SUCCESS (0) 22 #define ERR_DOMAIN_INVALID (-1) 23 #define ERR_NAME_INVALID (-2) 24 #define ERR_TYPE_INVALID (-3) 25 #define ERR_PARAM_VALUE_INVALID (-4) 26 #define ERR_EVENT_BUF_INVALID (-5) 27 #define ERR_ENCODE_STR_FAILED (-6) 28 #define ERR_ENCODE_VALUE_TYPE_FAILED (-7) 29 #define ERR_MEM_OPT_FAILED (-8) 30 #define ERR_INIT_SOCKET_FAILED (-9) 31 #define ERR_SET_SOCKET_OPT_FAILED (-10) 32 #define ERR_SOCKET_ADDR_INVALID (-11) 33 34 #define ERR_SOCKET_SEND_ERROR_BASE (-1000) 35 36 #define MAX_DOMAIN_LENGTH (16) 37 #define MAX_EVENT_NAME_LENGTH (32) 38 39 #endif // HISYSEVENT_INTERFACES_NATIVE_INNERKITS_HISYSEVENT_EASY_DEF_H