#include "pkgmgrinfo_basic.h"
#include "pkgmgrinfo_internal.h"
-#include "pkgmgrinfo_internal.hh"
namespace {
return PMINFO_R_ERROR;
}
- std::vector<std::pair<sqlite3*, uid_t>> conn_list = GetConnection();
+ const auto& conn_list = GetConnection();
std::vector<std::shared_ptr<application_x>> list;
int ret = PMINFO_R_OK;
- for (auto& conn : conn_list) {
- ret = pkgmgr_server::internal::appinfo_internal_filter_get_list(conn.first,
- filter_, conn.second, uid_, GetLocale().c_str(), list);
+ for (const auto& [db, uid] : conn_list) {
+ ret = internal::GetAppInfo(db, filter_, uid, uid_, GetLocale(), list);
if (ret == PMINFO_R_ERROR) {
- LOG(DEBUG) << "Failed to appinfo_internal_filter_get_list: " << ret;
+ LOG(DEBUG) << "Failed to GetAppInfo: " << ret;
break;
}
}