From ab9c9a8657c7b84fbb447099056d87799f65666b Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Mon, 5 Dec 2016 17:53:11 +0900 Subject: Add internal APIs for system daemon Change-Id: Ica3435c455bf09b173471a8b8386373d7ee7fbe2 Signed-off-by: Hwankyu Jhun --- include/rua_internal.h | 4 ++++ include/rua_stat_internal.h | 1 + 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/rua_internal.h b/include/rua_internal.h index 6158faf..619c962 100644 --- a/include/rua_internal.h +++ b/include/rua_internal.h @@ -25,6 +25,8 @@ #ifndef __RUA_INTERNAL_H__ #define __RUA_INTERNAL_H__ +#include +#include #include #include #include @@ -57,6 +59,7 @@ extern "C" { * @retval -1 on failed */ API int rua_db_delete_history(bundle *b); +API int rua_usr_db_delete_history(bundle *b, uid_t uid); /** * @brief Add application to recently used application list @@ -66,6 +69,7 @@ API int rua_db_delete_history(bundle *b); * @retval -1 on failed */ API int rua_db_add_history(struct rua_rec *rec); +API int rua_usr_db_add_history(struct rua_rec *rec, uid_t uid); #ifdef __cplusplus } diff --git a/include/rua_stat_internal.h b/include/rua_stat_internal.h index 838ce1a..082a3ca 100644 --- a/include/rua_stat_internal.h +++ b/include/rua_stat_internal.h @@ -57,6 +57,7 @@ int _rua_stat_init(sqlite3 **db, char *db_name, int flags, uid_t uid); * @retval -1 on failed */ API int rua_stat_db_update(char *caller, char *rua_stat_tag); +API int rua_stat_usr_db_update(char *caller, char *rua_stat_tab, uid_t uid); #ifdef __cplusplus } -- cgit v1.2.3