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 PLUGIN_ERRORS_H 17 #define PLUGIN_ERRORS_H 18 19 #include "errors.h" 20 #include "modules.h" 21 22 namespace OHOS { 23 namespace MultimediaPlugin { 24 constexpr uint32_t BASE_PLUGIN_ERR_OFFSET = ErrCodeOffset(SUBSYS_MULTIMEDIA, MODULE_PLUGIN); 25 26 constexpr uint32_t SUCCESS = 0; // Operation succeed 27 constexpr uint32_t ERR_GENERAL = BASE_PLUGIN_ERR_OFFSET; // General error 28 constexpr uint32_t ERR_INTERNAL = BASE_PLUGIN_ERR_OFFSET + 1; 29 constexpr uint32_t ERR_INVALID_PARAMETER = BASE_PLUGIN_ERR_OFFSET + 2; 30 constexpr uint32_t ERR_UNSUPPORTED = BASE_PLUGIN_ERR_OFFSET + 3; 31 constexpr uint32_t ERR_MATCHING_PLUGIN = BASE_PLUGIN_ERR_OFFSET + 4; 32 constexpr uint32_t ERR_INSTANCE_LIMIT = BASE_PLUGIN_ERR_OFFSET + 5; 33 constexpr uint32_t ERR_COMP_EQUAL = BASE_PLUGIN_ERR_OFFSET + 6; 34 constexpr uint32_t ERR_COMP_ERROR = BASE_PLUGIN_ERR_OFFSET + 7; 35 constexpr uint32_t ERR_COMP_LOWER = BASE_PLUGIN_ERR_OFFSET + 8; 36 constexpr uint32_t ERR_COMP_HIGHER = BASE_PLUGIN_ERR_OFFSET + 9; 37 constexpr uint32_t ERR_NO_TARGET = BASE_PLUGIN_ERR_OFFSET + 10; 38 constexpr uint32_t ERR_DATA_TYPE = BASE_PLUGIN_ERR_OFFSET + 11; 39 } // namespace MultimediaPlugin 40 } // namespace OHOS 41 42 #endif // PLUGIN_ERRORS_H 43