53d29096522b737d092bc3c03918ccf294bd45ca
[apps/home/minicontrol.git] / include / minicontrol-error.h
1 /*
2  * Copyright (c)  2013-2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef _MINICTRL_ERROR_H_
18 #define _MINICTRL_ERROR_H_
19
20 /**
21  * @file minicontrol-error.h
22  * @brief Minicontrol library error type.
23  */
24
25 /**
26  * @addtogroup MINICONTROL_MONITOR_MODULE
27  * @{
28  */
29
30 /**
31  * @brief Enumeration for describing error code of minicontrol library.
32  */
33 typedef enum _minicontrol_error {
34         MINICONTROL_ERROR_NONE = 0,                                     /**< MiniControl error none */
35         MINICONTROL_ERROR_INVALID_PARAMETER = -1,       /**< Invalid parameter */
36         MINICONTROL_ERROR_OUT_OF_MEMORY = -2,           /**< Out of memory */
37         MINICONTROL_ERROR_DBUS = -3,                            /**< Dbus error */
38         MINICONTROL_ERROR_BUNDLE = -4,
39         MINICONTROL_ERROR_NO_DATA = -5,
40         MINICONTROL_ERROR_UNKNOWN = -100,                       /**< Unknown error */
41 }minicontrol_error_e;
42
43 /**
44  * @}
45  */
46
47 #endif /* _MINICTRL_ERROR_H_ */
48
49