From 4963e1da2c001b0eac147482884b9630f9963654 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Thu, 30 Apr 2026 10:24:12 -0400 Subject: Change enterprise server version from string to VersionInfo struct --- collaboration.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'collaboration.cpp') diff --git a/collaboration.cpp b/collaboration.cpp index 15000cda..19a7168b 100644 --- a/collaboration.cpp +++ b/collaboration.cpp @@ -632,11 +632,15 @@ int Remote::GetServerVersion() } -std::string Remote::GetServerBuildVersion() -{ - char* buildVersion = BNRemoteGetServerBuildVersion(m_object); - std::string result = buildVersion; - BNFreeString(buildVersion); +VersionInfo Remote::GetServerBuildVersion() +{ + BNVersionInfo bnVersion = BNRemoteGetServerBuildVersion(m_object); + VersionInfo result; + result.major = bnVersion.major; + result.minor = bnVersion.minor; + result.build = bnVersion.build; + result.channel = bnVersion.channel; + BNFreeString(bnVersion.channel); return result; } -- cgit v1.3.1