2.0 alpha
[platform/core/system/devman.git] / include / devman_error.h
1 /*
2  *  devman
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Jiyoung Yun <jy910.yun@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20 */
21
22
23 #ifndef __DEVMAN_ERROR_H__
24 #define __DEVMAN_ERROR_H__
25
26 #ifndef DEPRECATED
27 #define DEPRECATED __attribute__((deprecated))
28 #endif
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34 /**
35  * @file        devman_error.h
36  * @ingroup     DEVICE_MANAGER
37  * @brief       This file contains error state for devman
38  * @author      SLP2.0
39  * @date        2012-08-10
40  * @version     0.1
41  */
42
43 /**
44  * @addtogroup DEVICE_MANAGER
45  * @{
46  */
47
48 /**
49  * @brief Enumerations of error code for Devman
50  */
51 typedef enum
52 {
53     DEVMAN_ERROR_NONE              = 0,                         /**< Successful */
54     DEVMAN_ERROR_OPERATION_FAILED  = -1,                        /**< Operation failed */
55     DEVMAN_ERROR_NOT_SUPPORTED     = -2,                        /**< Not supported in this device */
56 } devman_error_e;
57
58 /**
59  * @} // end of internal APIs
60  */
61
62 #ifdef __cplusplus
63 }
64 #endif
65 #endif