Fixed some RPMlint errors - group name, duplicate files, etc.
[profile/ivi/ico-uxf-homescreen.git] / include / ico_apf_error.h
1 /*
2  * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
3  *
4  * This program is licensed under the terms and conditions of the
5  * Apache License, version 2.0.  The full text of the Apache License is at
6  * http://www.apache.org/licenses/LICENSE-2.0
7  *
8  */
9 /**
10  * @brief   header file of Apprication Framework (declaration of API error code)
11  *
12  * @date    Feb-28-2013
13  */
14
15 #ifndef __ICO_APF_ERROR_H__
16 #define __ICO_APF_ERROR_H__
17
18 #include <tizen.h>
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 /**
25  * @brief Enumerations of common error code for Application Framework.
26  */
27 typedef enum
28 {
29     ICO_APF_E_NONE          = TIZEN_ERROR_NONE,  /**< Successful */
30     ICO_APF_E_INVALID_PARAM = TIZEN_ERROR_INVALID_PARAMETER,
31     ICO_APF_E_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY,
32     ICO_APF_E_IO_ERROR      = TIZEN_ERROR_IO_ERROR,
33     ICO_APF_E_UNKNOWN       = TIZEN_ERROR_UNKNOWN
34 } ico_app_fw_error_e;
35
36 /**
37  * @brief Enumerations of error code for Application Communication.
38  */
39 typedef enum
40 {
41     ICO_APF_COM_E_CREATE_CTX    = -200, /**< Create context failed */
42     ICO_APF_COM_E_CLT_CONNECT   = -201, /**< Client connect failed */
43     ICO_APF_COM_E_CLOSED        = -202, /**< Connection closed */
44     ICO_APF_COM_E_WRITE         = -203, /**< libwebsocket_write error */
45     ICO_APF_COM_E_RESERVED      = -204, /**< Reserve data failed */
46     ICO_APF_COM_E_NO_EXIST      = -205, /**< Uri does not exist */
47     ICO_APF_COM_E_UNKNOWN       = -300, /**< Other error */
48 } ico_app_fw_com_error_e;
49
50 /**
51  *@brief Enumerations of error code for Application Manager.
52  */
53 typedef enum
54 {
55     ICO_APP_CTL_E_NONE          = TIZEN_ERROR_NONE,  /**< Successful */
56     ICO_APP_CTL_E_INVALID_PARAM = TIZEN_ERROR_INVALID_PARAMETER,
57     ICO_APP_CTL_E_OUT_OF_MEM    = TIZEN_ERROR_OUT_OF_MEMORY,
58     ICO_APP_CTL_E_IO_ERR        = TIZEN_ERROR_IO_ERROR,
59 } ico_app_ctl_error_e;
60
61 /**
62  * @brief Enumerations of error code for Resource Manager.
63  */
64 typedef enum _resmgr_error {
65     ICO_APF_RESOURCE_E_NONE            =  0, /* Successful */
66     ICO_APF_RESOURCE_E_UNKOWN          = -1, /* unkown error */
67     ICO_APF_RESOURCE_E_INVAL           = -2, /* invalid parameter */
68     ICO_APF_RESOURCE_E_NOT_IMPLEMENTED = -3, /* not implemented */
69     ICO_APF_RESOURCE_E_NOT_INITIALIZED = -4, /* not initialized resmger module */
70     ICO_APF_RESOURCE_E_INIT_COM_FAILD  = -5, /* intialize communication error */
71     ICO_APF_RESOURCE_E_COMMUNICATION   = -6, /* communication error */
72     ICO_APF_RESOURCE_E_MSG_PARSER      = -7, /* message parser faild */
73     ICO_APF_RESOURCE_E_SERVER_CLOSED   = -8, /* server colosed */
74     ICO_APF_RESOURCE_E_SEND_DATA       = -9, /* send data faile */
75 } ico_apf_resmgr_error_e;
76
77 #ifdef __cplusplus
78 }
79 #endif
80 #endif /* __ICO_APF_ERROR_H__ */