Add caching of App/Pkg data & use faster way to retrieve this data
[platform/core/security/askuser.git] / src / common / policy / PrivilegeInfo.h
index fa651bc..515a3a6 100644 (file)
 #include <string>
 #include <vector>
 
+#include <policy/AppInfo.h>
 #include <types/PolicyTypes.h>
 
 namespace AskUser {
 
 namespace PrivilegeInfo {
-    std::vector<Privilege> getPrivilegeMapping(const std::string &appId,
+    std::vector<Privilege> getPrivilegeMapping(AppInfo &appInfo,
+                                               const std::string &appId,
                                                const Privilege &privilege);
     std::vector<Privacy> getPrivilegesPrivacies(const std::vector<std::string> &corePrivileges);
     bool isPrivacy(const Privilege &privilege);