summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/SharedCacheView.h
diff options
context:
space:
mode:
authorAlexander Taylor <alex@vector35.com>2026-05-20 17:49:08 -0400
committerAlexander Taylor <alex@vector35.com>2026-05-27 13:34:09 -0400
commit27f966a3b7a3c618a7d7d2549a4f3021f4d8d46e (patch)
tree80b0b587d39f5f2646e87ebbbf7ffd2fef5e97e5 /view/sharedcache/core/SharedCacheView.h
parent8b15f7c80d57d3f249281ab6a320795ee7a04483 (diff)
Pull lambdas out into separate functions.
Addresses feedback from PR #8188.
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);