extern "C" {
#endif
#include "pkgmgr_parser.h"
-
/**
+ * @fn int pkgmgr_parser_insert_manifest_info_in_usr_db(manifest_x *mfx, uid_t uid)
* @fn int pkgmgr_parser_insert_manifest_info_in_db(manifest_x *mfx)
* @brief This API inserts the parsed manifest info in db
*
* @par Sync (or) Async : Synchronous API
*
* @param[in] mfx pointer to manifest info
+ * @param[in] uid the addressee user id of the instruction
* @return 0 if success, error code(<0) if fail
* @pre None
* @post None
* @endcode
*/
int pkgmgr_parser_insert_manifest_info_in_db(manifest_x *mfx);
+int pkgmgr_parser_insert_manifest_info_in_usr_db(manifest_x *mfx, uid_t uid);
/**
* @fn int pkgmgr_parser_update_manifest_info_in_db(manifest_x *mfx)
+ * @fn int pkgmgr_parser_update_manifest_info_in_db(manifest_x *mfx)
* @brief This API updates the manifest info in db
*
* @par This API is for package-manager installer backends
* @par Sync (or) Async : Synchronous API
*
* @param[in] mfx pointer to manifest info
+ * @param[in] uid the addressee user id of the instruction
* @return 0 if success, error code(<0) if fail
* @pre None
* @post None
* @endcode
*/
int pkgmgr_parser_update_manifest_info_in_db(manifest_x *mfx);
+int pkgmgr_parser_update_manifest_info_in_usr_db(manifest_x *mfx, uid_t uid);
/**
+ * @fn int pkgmgr_parser_update_tep_info_in_db(const char * pkgid, const char * tep_path)
+ * @fn int pkgmgr_parser_update_tep_info_in_usr_db(const char * pkgid, const char * tep_path,uid_t uid)
+ * @brief This API updates the tep info in db
+ *
+ * @par This API is for package-manager installer backends
+ * @par Sync (or) Async : Synchronous API
+ *
+ * @param[in] pkgid pointer to pkgid
+ * @param[in] tep_path path of tep file
+ * @return 0 if success, error code(<0) if fail
+ * @pre None
+ * @post None
+ * @code
+static int update_tep_data(const char *pkgid, *tep_path)
+{
+ int ret = 0;
+ ret = pkgmgr_parser_update_tep_info_in_db(pkgid, tep_path);
+ if (ret < 0)
+ return -1;
+ return 0;
+}
+ * @endcode
+ */
+int pkgmgr_parser_update_tep_info_in_db(const char *pkgid, const char *tep_path);
+int pkgmgr_parser_update_tep_info_in_usr_db(const char *pkgid, const char *tep_path, uid_t uid);
+
+/**
+ * @fn int pkgmgr_parser_delete_manifest_info_from_usr_db(manifest_x *mfx, uid_t uid)
* @fn int pkgmgr_parser_delete_manifest_info_from_db(manifest_x *mfx)
* @brief This API deletes the parsed manifest info from db
*
* @par Sync (or) Async : Synchronous API
*
* @param[in] mfx pointer to manifest info
+ * @param[in] uid the addressee user id of the instruction
* @return 0 if success, error code(<0) if fail
* @pre None
* @post None
* @endcode
*/
int pkgmgr_parser_delete_manifest_info_from_db(manifest_x *mfx);
+int pkgmgr_parser_delete_manifest_info_from_usr_db(manifest_x *mfx, uid_t uid);
int pkgmgr_parser_update_preload_info_in_db();
-int pkgmgr_parser_check_and_create_db();
-int pkgmgr_parser_initialize_db();
+int pkgmgr_parser_update_preload_info_in_usr_db(uid_t uid);
+
+int pkgmgr_parser_create_and_initialize_db(uid_t uid);
+
+
/** @} */
#ifdef __cplusplus
}