diff options
| author | Josh Ferrell <josh@vector35.com> | 2026-04-30 10:24:12 -0400 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2026-05-05 14:46:15 -0400 |
| commit | 4963e1da2c001b0eac147482884b9630f9963654 (patch) | |
| tree | 01b53c3030a893f3509f309a87bfab6d2564e84b /collaboration.cpp | |
| parent | af50b06082044fcbbf730deda985d0133ca98b88 (diff) | |
Change enterprise server version from string to VersionInfo struct
Diffstat (limited to 'collaboration.cpp')
| -rw-r--r-- | collaboration.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
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() +VersionInfo Remote::GetServerBuildVersion() { - char* buildVersion = BNRemoteGetServerBuildVersion(m_object); - std::string result = buildVersion; - BNFreeString(buildVersion); + 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; } |
