#define PRIV_SHARED_RES "priv_shared_res"
+#define PACKAGE_MANAGER_INTERNAL_EVENT_TYPE_CLEAR_CACHE 1000
+#define PACKAGE_MANAGER_INTERNAL_STATUS_TYPE_CLEAR_CACHE 0x800
+
typedef struct _request_event_info {
int req_id;
package_manager_event_type_e event_type;
*event_type = PACKAGE_MANAGER_EVENT_TYPE_RES_REMOVE;
else if (strcasecmp(key, PKGMGR_INSTALLER_RES_UNINSTALL_EVENT_STR) == 0)
*event_type = PACKAGE_MANAGER_EVENT_TYPE_RES_UNINSTALL;
+ else if (strcasecmp(key, PKGMGR_INSTALLER_CLEAR_CACHE_KEY_STR) == 0)
+ *event_type = PACKAGE_MANAGER_INTERNAL_EVENT_TYPE_CLEAR_CACHE;
else
return PACKAGE_MANAGER_ERROR_INVALID_PARAMETER;
type |= PKGMGR_CLIENT_STATUS_RES_REMOVE;
if (status_type & PACKAGE_MANAGER_STATUS_TYPE_RES_UNINSTALL)
type |= PKGMGR_CLIENT_STATUS_RES_UNINSTALL;
+ if (status_type & PACKAGE_MANAGER_INTERNAL_STATUS_TYPE_CLEAR_CACHE)
+ type |= PKGMGR_CLIENT_STATUS_CLEAR_CACHE;
/* LCOV_EXCL_STOP */
return type;
PACKAGE_MANAGER_STATUS_TYPE_RES_COPY |
PACKAGE_MANAGER_STATUS_TYPE_RES_CREATE_DIR |
PACKAGE_MANAGER_STATUS_TYPE_RES_REMOVE |
- PACKAGE_MANAGER_STATUS_TYPE_RES_UNINSTALL;
+ PACKAGE_MANAGER_STATUS_TYPE_RES_UNINSTALL |
+ PACKAGE_MANAGER_INTERNAL_STATUS_TYPE_CLEAR_CACHE;
if (manager == NULL)
return package_manager_error(PACKAGE_MANAGER_ERROR_INVALID_PARAMETER, __FUNCTION__, NULL);