* @param[in] pkg_type package type
* @param[in] descriptor_path full path that descriptor is located
* @param[in] pkg_path full path that package file is located
- * @param[in] optional_file optional file which is used for installation
+ * @param[in] optional_data optional data which is used for installation
* @param[in] mode installation mode - PM_DEFAULT, PM_QUIET
* @param[in] event_cb user callback
* @param[in] data user data
*/
int pkgmgr_client_install(pkgmgr_client *pc, const char *pkg_type,
const char *descriptor_path, const char *pkg_path,
- const char *optional_file, pkgmgr_mode mode,
+ const char *optional_data, pkgmgr_mode mode,
pkgmgr_handler event_cb, void *data);
int pkgmgr_client_usr_install(pkgmgr_client *pc, const char *pkg_type,
const char *descriptor_path, const char *pkg_path,
- const char *optional_file, pkgmgr_mode mode,
+ const char *optional_data, pkgmgr_mode mode,
pkgmgr_handler event_cb, void *data, uid_t uid);
/**
* @brief This API reinstalls package.
* @param[in] pc pkgmgr_client
* @param[in] pkg_type package type
* @param[in] pkg_path full path that package file is located
- * @param[in] optional_file optional file which is used for installation
+ * @param[in] optional_data optional data which is used for installation
* @param[in] mode installation mode - PM_DEFAULT, PM_QUIET
* @param[in] event_cb user callback
* @param[in] data user data
* @retval PKGMGR_R_ECOMM communication error
*/
int pkgmgr_client_reinstall(pkgmgr_client *pc, const char *pkg_type, const char *pkgid,
- const char *optional_file, pkgmgr_mode mode,
+ const char *optional_data, pkgmgr_mode mode,
pkgmgr_handler event_cb, void *data);
int pkgmgr_client_usr_reinstall(pkgmgr_client * pc, const char *pkg_type, const char *pkgid,
- const char *optional_file, pkgmgr_mode mode,
+ const char *optional_data, pkgmgr_mode mode,
pkgmgr_handler event_cb, void *data, uid_t uid);
/**
* @brief This API uninstalls package.
API int pkgmgr_client_usr_install(pkgmgr_client *pc, const char *pkg_type,
const char *descriptor_path, const char *pkg_path,
- const char *optional_file, pkgmgr_mode mode,
+ const char *optional_data, pkgmgr_mode mode,
pkgmgr_handler event_cb, void *data, uid_t uid)
{
GVariant *result;
API int pkgmgr_client_install(pkgmgr_client *pc, const char *pkg_type,
const char *descriptor_path, const char *pkg_path,
- const char *optional_file, pkgmgr_mode mode,
+ const char *optional_data, pkgmgr_mode mode,
pkgmgr_handler event_cb, void *data)
{
return pkgmgr_client_usr_install(pc, pkg_type, descriptor_path,
- pkg_path, optional_file, mode, event_cb,data,
+ pkg_path, optional_data, mode, event_cb,data,
GLOBAL_USER);
}
API int pkgmgr_client_reinstall(pkgmgr_client *pc, const char *pkg_type,
- const char *pkgid, const char *optional_file, pkgmgr_mode mode,
+ const char *pkgid, const char *optional_data, pkgmgr_mode mode,
pkgmgr_handler event_cb, void *data)
{
- return pkgmgr_client_usr_reinstall(pc, pkg_type, pkgid, optional_file,
+ return pkgmgr_client_usr_reinstall(pc, pkg_type, pkgid, optional_data,
mode, event_cb, data,GLOBAL_USER);
}
API int pkgmgr_client_usr_reinstall(pkgmgr_client * pc, const char *pkg_type,
- const char *pkgid, const char *optional_file, pkgmgr_mode mode,
+ const char *pkgid, const char *optional_data, pkgmgr_mode mode,
pkgmgr_handler event_cb, void *data, uid_t uid)
{
GVariant *result;
switch (service_type) {
case PM_REQUEST_CSC:
tryvm_if(custom_info == NULL, ret = PKGMGR_R_EINVAL, "custom_info is NULL\n");
- tryvm_if(strlen(custom_info) >= PKG_STRING_LEN_MAX, ret = PKGMGR_R_EINVAL, "optional_file over PKG_STRING_LEN_MAX");
+ tryvm_if(strlen(custom_info) >= PKG_STRING_LEN_MAX, ret = PKGMGR_R_EINVAL, "custom_info over PKG_STRING_LEN_MAX");
tryvm_if(data == NULL, ret = PKGMGR_R_EINVAL, "data is NULL\n");
ret = __csc_process(custom_info, (char *)data);