2 * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 * @brief RUA INTERNAL API declaration header file.
20 * @author hyunho kang (hhstark.kang@samsung.com)
22 * @history 0.1: RUA INTERNAL API Declarations, structure declaration
25 #ifndef __RUA_INTERNAL_H__
26 #define __RUA_INTERNAL_H__
36 #define API __attribute__ ((visibility("default")))
48 #define RUA_DB_NAME ".rua.db"
49 #define RUA_HISTORY "rua_history"
50 #define QUERY_MAXLEN 4096
51 #define MAX_UID_STR_BUFSZ 20
54 * @brief Delete history from DB
55 * @return 0 on success, otherwise a nagative error value
56 * @retval 0 on successful
57 * @retval -1 on failed
59 API int rua_db_delete_history(bundle *b);
62 * @brief Add application to recently used application list
63 * @param[in] rec record to add history
64 * @return 0 on success, otherwise a nagative error value
65 * @retval 0 on successful
66 * @retval -1 on failed
68 API int rua_db_add_history(struct rua_rec *rec);
73 #endif /*__RUA_INTERNAL_H__*/