2 * Open Service Platform
3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #ifndef __APPFW_MESSAGE_PORT_ERROR_H__
20 #define __APPFW_MESSAGE_PORT_ERROR_H__
25 * @brief Enumerations of error code for Application.
28 MESSAGEPORT_ERROR_NONE = 0, /**< Successful */
29 MESSAGEPORT_ERROR_IO_ERROR = -EIO, /**< Internal I/O error */
30 MESSAGEPORT_ERROR_OUT_OF_MEMORY = -ENOMEM, /**< Out of memory */
31 MESSAGEPORT_ERROR_INVALID_PARAMETER = -EINVAL, /**< Invalid parameter */
32 MESSAGEPORT_ERROR_MESSAGEPORT_NOT_FOUND = -ENOKEY, /**< The message port of the remote application is not found */
33 MESSAGEPORT_ERROR_CERTIFICATE_NOT_MATCH = -EACCES, /**< The remote application is not signed with the same certificate */
34 MESSAGEPORT_ERROR_MAX_EXCEEDED = -EMSGSIZE, /**< The size of message has exceeded the maximum limit */
35 MESSAGEPORT_ERROR_RESOURCE_UNAVAILABLE = -EBUSY, /**< Resource temporarily unavailable */
36 } messageport_error_e;
38 #endif /* __APPFW_MESSAGE_PORT_ERROR_H__ */