Support multiple instance launch
[platform/core/appfw/librua.git] / include / rua.h
index d9c7235..3bf79d1 100755 (executable)
@@ -66,11 +66,15 @@ extern "C" {
  * @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 */
 };
 
 /**
@@ -157,6 +161,15 @@ API int rua_is_latest_app(const char *pkg_name);
 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