summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/SharedCacheView.h
diff options
context:
space:
mode:
Diffstat (limited to 'view/sharedcache/core/SharedCacheView.h')
-rw-r--r--view/sharedcache/core/SharedCacheView.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/view/sharedcache/core/SharedCacheView.h b/view/sharedcache/core/SharedCacheView.h
index e55df367..7ad2ba9a 100644
--- a/view/sharedcache/core/SharedCacheView.h
+++ b/view/sharedcache/core/SharedCacheView.h
@@ -21,6 +21,13 @@ class SharedCacheView : public BinaryNinja::BinaryView
// NOTE: Currently this is just used to alert the user to supposed missing files.
std::set<std::string> m_secondaryFileNames;
+ std::string StorePrimaryProjectFile(BinaryNinja::ProjectFile* projectFile);
+ void StorePrimaryFilePath(const std::string& path, BinaryNinja::Project* project, const std::string& databaseDir);
+ std::optional<std::string> ResolveProjectFilePath(BinaryNinja::Project* project, const std::string& projectPath);
+ std::optional<std::string> ResolveUniqueProjectFileName(BinaryNinja::Project* project);
+ std::optional<std::string> ResolveMetadataPrimaryFilePath(BinaryNinja::Project* project, const std::string& databaseDir);
+ std::optional<std::string> PromptForPrimaryFile();
+
public:
SharedCacheView(const std::string& typeName, BinaryView* data, bool parseOnly = false);