/*
- * 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.
* 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")))
#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
*/
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__*/