From e992ed06dd3b6484db1a2d5a38c8df14acbc29b8 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Fri, 20 Jan 2017 23:53:44 -0500 Subject: add C++ API for GetProduct, GetProductType, and GetLicenseCount --- binaryninjaapi.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'binaryninjaapi.cpp') diff --git a/binaryninjaapi.cpp b/binaryninjaapi.cpp index e1dab528..483d7393 100644 --- a/binaryninjaapi.cpp +++ b/binaryninjaapi.cpp @@ -122,6 +122,26 @@ string BinaryNinja::GetVersionString() return result; } +string BinaryNinja::GetProduct() +{ + char* str = BNGetProduct(); + string result = str; + BNFreeString(str); + return result; +} + +string BinaryNinja::GetProductType() +{ + char* str = BNGetProductType(); + string result = str; + BNFreeString(str); + return result; +} + +int BinaryNinja::GetLicenseCount() +{ + return BNGetLicenseCount(); +} uint32_t BinaryNinja::GetBuildId() { -- cgit v1.3.1