char* name = NULL;
char* iconPath = NULL;
char* version = NULL;
- int totalSize = 0;
- int dataSize = 0;
int lastModified = 0;
char* type = NULL;
char* author = NULL;
pkgInfo->m_version = version;
}
- ret = pkgmgrinfo_pkginfo_get_total_size(handle, &totalSize);
- if (ret != PMINFO_R_OK) {
- LoggerE("Fail to get totalSize");
- } else {
- pkgInfo->m_totalSize = totalSize;
- }
-
- ret = pkgmgrinfo_pkginfo_get_data_size(handle, &dataSize);
- if (ret != PMINFO_R_OK) {
- LoggerE("Fail to get dataSize");
- } else {
- pkgInfo->m_dataSize = dataSize;
- }
-
ret = pkgmgrinfo_pkginfo_get_installed_time(handle, &lastModified);
if (ret != PMINFO_R_OK) {
LoggerE("Fail to get lastModified");
LoggerE("Cannot destroy package info");
}
+ // REMARK: data size and total size is set at first access time
+
// REMARK: do not destroy handle. because handle is comes from outside!!
return pkgInfo;
}