diff options
| author | Brian Potchik <brian@vector35.com> | 2019-09-11 11:38:45 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2019-09-11 11:38:45 -0400 |
| commit | 5d01e8e553280f1f9e7676ea32af183f6e23efd7 (patch) | |
| tree | 3b271faab8b8cc76600c84caf7553877fcd7958e /binaryview.cpp | |
| parent | 162ad8604bdbcb1fb36c899e92f5606cd6f231eb (diff) | |
Add ability to open a database with options.
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp index 0f693d2d..dc2212a6 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -2994,6 +2994,20 @@ uint64_t BinaryView::GetUIntMetadata(const string& key) } +vector<string> BinaryView::GetLoadSettingsTypeNames() +{ + size_t count = 0; + char** outgoingNames = BNBinaryViewGetLoadSettingsTypeNames(m_object, &count); + vector<string> result; + result.reserve(count); + for (size_t i = 0; i < count; i++) + result.push_back(outgoingNames[i]); + + BNFreeStringList(outgoingNames, count); + return result; +} + + Ref<Settings> BinaryView::GetLoadSettings(const string& typeName) { BNSettings* settings = BNBinaryViewGetLoadSettings(m_object, typeName.c_str()); |
