Release version 0.5.9
[platform/core/appfw/librua.git] / include / rua_types.h
1 /*
2  * Copyright (c) 2019 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 __RUA_TYPES_H__
18 #define __RUA_TYPES_H__
19
20 #include <tizen.h>
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 /**
27  * @brief Enumeration for RUA error.
28  * @since_tizen 5.5
29  */
30 typedef enum {
31         RUA_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
32         RUA_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
33         RUA_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
34         RUA_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
35         RUA_ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR, /**< IO error */
36         RUA_ERROR_NO_SUCH_APP = TIZEN_ERROR_NO_SUCH_FILE, /**< No such application */
37 } rua_error_e;
38
39 #ifdef __cplusplus
40 }
41 #endif
42
43 #endif /*__RUA_TYPES_H__*/