FD Passing message-port.
[platform/core/appfw/message-port.git] / include / message_port_error.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18
19 #ifndef __APPFW_MESSAGE_PORT_ERROR_H__
20 #define __APPFW_MESSAGE_PORT_ERROR_H__
21
22 #include <errno.h>
23
24 /**
25  * @brief Enumerations of error code for Application.
26  */
27 typedef enum
28 {
29         MESSAGEPORT_ERROR_NONE = 0,                                     /**< Successful */
30         MESSAGEPORT_ERROR_IO_ERROR = -EIO,                      /**< Internal I/O error */
31         MESSAGEPORT_ERROR_OUT_OF_MEMORY = -ENOMEM,              /**< Out of memory */
32         MESSAGEPORT_ERROR_INVALID_PARAMETER = -EINVAL,  /**< Invalid parameter */
33         MESSAGEPORT_ERROR_MESSAGEPORT_NOT_FOUND = -ENOKEY,      /**< The message port of the remote application is not found */
34         MESSAGEPORT_ERROR_CERTIFICATE_NOT_MATCH = -EACCES,      /**< The remote application is not signed with the same certificate */
35         MESSAGEPORT_ERROR_MAX_EXCEEDED = -EMSGSIZE,                     /**< The size of message has exceeded the maximum limit */
36         MESSAGEPORT_ERROR_RESOURCE_UNAVAILABLE = -EBUSY,        /**< Resource temporarily unavailable */
37 } messageport_error_e;
38
39 #endif /* __APPFW_MESSAGE_PORT_ERROR_H__ */