Merge branch 'tizen_3.0' into tizen
[platform/core/appfw/librua.git] / include / rua_stat.h
index a20ffd7..03fb90b 100755 (executable)
@@ -1,7 +1,5 @@
 /*
- *  RUA STAT
- *
- * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2000 - 2016 Samsung Electronics Co., Ltd. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,7 +12,6 @@
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- *
  */
 
 /**
 #ifndef __RUA_STAT_H__
 #define __RUA_STAT_H__
 
+#include <unistd.h>
+#include <sys/types.h>
 #include <sqlite3.h>
-#include <time.h>
+#include <bundle.h>
 
 #ifndef API
 #define API __attribute__ ((visibility("default")))
@@ -40,13 +39,13 @@ extern "C" {
 #endif
 
 /**
- * @brief      Add application launch status.
- * @param[in]  caller, rua_stat_tag
+ * @brief      Update rua status
+ * @param[in]  caller, tag, uid
  * @return     0 on success, otherwise a nagative error value
  * @retval     0 on successful
  * @retval     -1 on failed
  */
-API int rua_stat_update(char *caller, char *rua_stat_tag);
+API int rua_stat_update_for_uid(char *caller, char *tag, uid_t uid);
 
 /**
  * @brief      Get rua status tag list
@@ -57,8 +56,10 @@ API int rua_stat_update(char *caller, char *rua_stat_tag);
  */
 API int rua_stat_get_stat_tags(char *caller,
                int (*rua_stat_tag_iter_fn)(const char *rua_stat_tag, void *data), void *data);
-
+API int rua_stat_get_stat_tags_for_uid(char *caller,
+               int (*rua_stat_tag_iter_fn)(const char *rua_stat_tag, void *data),
+               void *data, uid_t uid);
 #ifdef __cplusplus
 }
 #endif
-#endif                         /*__RUA_STAT_H__*/
+#endif /*__RUA_STAT_H__*/