* @brief RUA record info structure
*/
struct rua_rec {
- int id; /**< primary key */
+ int id; /**< primary key */
char *pkg_name; /**< package name */
char *app_path; /**< application path */
char *arg; /**< application launching argument */
time_t launch_time; /**< application launching time */
+ char *instance_id; /**< Instance ID */
+ char *instance_name; /**< Instance Name */
+ char *icon; /**< Icon path */
+ char *uri; /**< URI */
};
/**
API int rua_is_latest_app_for_uid(const char *pkg_name, uid_t uid);
/**
+ * @brief Delete rua history with instance id
+ * @param[in] app_id The application ID
+ * @param[in] instance_id The instance ID
+ * @return 0 on success, otherwise a negative error value
+ */
+API int rua_delete_history_with_instance_id(const char *app_id,
+ const char *instance_id);
+
+/**
* @brief Initialize rua
* @return 0 on success, otherwise a nagative error value
* @retval 0 on successful