summaryrefslogtreecommitdiff
path: root/platform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform.cpp')
-rw-r--r--platform.cpp12
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();