Block different type installation with same pkgid
[platform/core/appfw/app-installers.git] / src / common / pkgmgr_interface.cc
index 184dfaf..a754585 100644 (file)
@@ -152,6 +152,10 @@ void PkgMgrInterface::AddAppQueryInterface(
   query_interface_map_.emplace(idx, interface);
 }
 
+std::shared_ptr<AppQueryInterface> PkgMgrInterface::GetAppQueryInterface() {
+  return query_interface_;
+}
+
 RequestType PkgMgrInterface::GetRequestType(int idx) const {
   // These type could be determined even if there are no query_interface_.
   switch (pkgmgr_installer_get_request_type(pi_)) {