1 /* 2 * Copyright (c) 2021 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_DEVICE_MANAGER_ERRNO_H 17 #define OHOS_DEVICE_MANAGER_ERRNO_H 18 19 namespace OHOS { 20 namespace DistributedHardware { 21 enum { 22 DEVICEMANAGER_FAILED = (-10000), 23 DEVICEMANAGER_SERVICE_NOT_READY, 24 DEVICEMANAGER_DEVICE_ALREADY_TRUSTED, 25 DEVICEMANAGER_GET_TRUSTED_DEVICE_FAILED, 26 DEVICEMANAGER_ALREADY_INIT, 27 DEVICEMANAGER_INIT_FAILED, 28 DEVICEMANAGER_MALLOC_ERROR, 29 DEVICEMANAGER_LOCK_ERROR, 30 DEVICEMANAGER_INVALID_PARAM, 31 DEVICEMANAGER_INVALID_VALUE, 32 DEVICEMANAGER_COPY_FAILED, 33 DEVICEMANAGER_NULLPTR, 34 DEVICEMANAGER_DISCOVERY_FAILED, 35 DEVICEMANAGER_FLATTEN_OBJECT, 36 DEVICEMANAGER_WRITE_FAILED, 37 DEVICEMANAGER_IPC_FAILED, 38 DEVICEMANAGER_IPC_TRANSACTION_FAILED, 39 DEVICEMANAGER_IPC_NOT_REGISTER_FUNC, 40 HICHAIN_GROUP_CREATE_FAILED, 41 HICHAIN_MEMBER_ADD_FAILED, 42 HICHAIN_CREATE_CHANNEL_FAILED, 43 MSG_DECODE_PARA_FAILED, 44 ENCRYPT_UTILS_INVALID_PARAM, 45 ENCRYPT_UTILS_GCM_SETKEY_FAILED, 46 ENCRYPT_UTILS_GCM_CRYPT_FAILED, 47 ENCRYPT_UTILS_GCM_AUTH_DECRYPT_FAILED, 48 ENCRYPT_UTILS_AES_GCM_ENCRYPT_FAILED, 49 ENCRYPT_UTILS_AES_GCM_DECRYPT_FAILED, 50 ERR_GEN_RANDOM_PINTOKEN_FAILED, 51 PIN_CODE_CHECK_FAILED, 52 PIN_TOKEN_CHECK_FAILED, 53 DEVICEMANAGER_CREATE_SESSION_SERVER_FAILED, 54 DEVICEMANAGER_OPEN_SESSION_FAILED, 55 AUTH_PARA_INVALID, 56 ENCODE_DATA_ERROR, 57 DEVICEMANAGER_OK = 0 58 }; 59 } // namespace DistributedHardware 60 } // namespace OHOS 61 #endif // OHOS_DEVICE_MANAGER_ERRNO_H 62