diff options
| author | Glenn Smith <glenn@vector35.com> | 2023-02-20 21:58:55 -0500 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2023-11-06 16:10:47 -0500 |
| commit | 4108964609171327618627477163339656037111 (patch) | |
| tree | 79f4c6da6394b973cee05cc42b6edd7e2e20909d /platform.cpp | |
| parent | b270d7ebe1e2a406e1f7f14807987d24b0c4a846 (diff) | |
Type Containers
Diffstat (limited to 'platform.cpp')
| -rw-r--r-- | platform.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/platform.cpp b/platform.cpp index e7f3aef5..de7b50c8 100644 --- a/platform.cpp +++ b/platform.cpp @@ -284,7 +284,7 @@ map<QualifiedName, Ref<Type>> Platform::GetTypes() result[name] = new Type(BNNewTypeReference(types[i].type)); } - BNFreeTypeList(types, count); + BNFreeTypeAndNameList(types, count); return result; } @@ -301,7 +301,7 @@ map<QualifiedName, Ref<Type>> Platform::GetVariables() result[name] = new Type(BNNewTypeReference(types[i].type)); } - BNFreeTypeList(types, count); + BNFreeTypeAndNameList(types, count); return result; } @@ -318,7 +318,7 @@ map<QualifiedName, Ref<Type>> Platform::GetFunctions() result[name] = new Type(BNNewTypeReference(types[i].type)); } - BNFreeTypeList(types, count); + BNFreeTypeAndNameList(types, count); return result; } @@ -374,6 +374,12 @@ vector<Ref<TypeLibrary>> Platform::GetTypeLibrariesByName(const std::string& nam } +TypeContainer Platform::GetTypeContainer() +{ + return TypeContainer(BNGetPlatformTypeContainer(m_object)); +} + + Ref<Type> Platform::GetTypeByName(const QualifiedName& name) { BNQualifiedName nameObj = name.GetAPIObject(); |
