diff options
| author | Glenn Smith <glenn@vector35.com> | 2022-05-20 20:42:12 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2022-05-25 14:22:45 -0400 |
| commit | 0569365d79aaeb74aa134f52db13aa54f9619c56 (patch) | |
| tree | aaf8f0d9913c08336b761e1130418368bd930ee4 /binaryninjaapi.h | |
| parent | f5715d76bb50fbaaaad450aecf9c192e8450e0d9 (diff) | |
Add BinaryView::ParseTypesFromSource for clang+typelibs
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index d0725e5c..a65bff45 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -1737,6 +1737,7 @@ namespace BinaryNinja { struct PossibleValueSet; class Metadata; class Structure; + struct TypeParserResult; class QueryMetadataException : public std::exception { @@ -2114,6 +2115,8 @@ namespace BinaryNinja { bool ParseTypeString(const std::string& text, std::map<QualifiedName, Ref<Type>>& types, std::map<QualifiedName, Ref<Type>>& variables, std::map<QualifiedName, Ref<Type>>& functions, std::string& errors, const std::set<QualifiedName>& typesAllowRedefinition = {}); + bool ParseTypesFromSource(const std::string& text, const std::vector<std::string>& options, const std::vector<std::string>& includeDirs, TypeParserResult& result, + std::string& errors, const std::set<QualifiedName>& typesAllowRedefinition = {}); std::map<QualifiedName, Ref<Type>> GetTypes(); std::vector<QualifiedName> GetTypeNames(const std::string& matching = ""); |
