Add caching of App/Pkg data & use faster way to retrieve this data
[platform/core/security/askuser.git] / src / common / policy / Policy.h
index 132d067..5be4334 100644 (file)
@@ -25,6 +25,7 @@
 #include <string>
 #include <vector>
 
+#include <policy/PkgInfo.h>
 #include <types/PolicyTypes.h>
 
 struct policy_entry;
@@ -34,8 +35,8 @@ namespace AskUser {
 
 class PolicyEntryCopy;
 
-std::string getOwnAppId();
-void identifyApp(const std::string &client, std::string &appId, std::string &pkgLabel);
+std::string getOwnAppId(PkgInfo &pkgInfo);
+void identifyApp(PkgInfo &pkgInfo, const std::string &client, std::string &appId, std::string &pkgLabel);
 
 std::set<Privilege> getManifestPrivs(const std::string &appId);