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 /**
17  * @addtogroup ic_sdk
18  * @{
19  *
20  * @brief Defines the development tool functions, constants, and error codes for image classification (IC).
21  *
22  * @since 2.2
23  * @version 1.0
24  */
25 
26 /**
27  * @file ic_retcode.h
28  *
29  * @brief Enumerates the error codes for calling of image classification.
30  *
31  * @since 2.2
32  * @version 1.0
33  */
34 
35 #ifndef IC_RETCODE_H
36 #define IC_RETCODE_H
37 
38 /**
39  * @brief Enumerates the error codes for image classification.
40  *
41  * @since 2.2
42  * @version 1.0
43  */
44 typedef enum {
45     IC_RETCODE_FAILURE = -1,                  /** Return code for an operation failure */
46     IC_RETCODE_SUCCESS = 0,                   /** Return code for an operation success */
47     IC_RETCODE_INIT_ERROR = 1001,             /** Return code for an initialization error */
48     IC_RETCODE_NULL_PARAM = 1002,             /** Return code for a null parameter error */
49     IC_RETCODE_SERIALIZATION_ERROR = 2001,    /** Return code for a serialization error */
50     IC_RETCODE_UNSERIALIZATION_ERROR = 2002,  /** Return code for a deserialization error */
51     IC_RETCODE_PLUGIN_EXECUTION_ERROR = 3001, /** Return code for a plugin execution error */
52     IC_RETCODE_PLUGIN_SESSION_ERROR = 3002,   /** Return code for a plugin session error */
53 } IcRetCode;
54 
55 #endif // IC_RETCODE_H
56 /** @} */