#define OPENSHOT_VERSION_MAJOR_MINOR STRINGIZE(OPENSHOT_VERSION_MAJOR) "." STRINGIZE(OPENSHOT_VERSION_MINOR); /// A string of the "Major.Minor" version
#define OPENSHOT_VERSION_ALL STRINGIZE(OPENSHOT_VERSION_MAJOR) "." STRINGIZE(OPENSHOT_VERSION_MINOR) "." STRINGIZE(OPENSHOT_VERSION_BUILD); /// A string of the entire version "Major.Minor.Build"
#include<sstream>
usingnamespacestd;
/// This struct holds version number information. Use the GetVersion() method to access the current version of libopenshot.
structOpenShotVersion
{
intmajor;/// Major version number
intminor;/// Minor version number
intbuild;/// Build number
intso;/// Shared Object Number (incremented when API or ABI changes)
/// Get a string version of the version (i.e. "Major.Minor.Build")
stringToString(){
stringstreamversion_string;
version_string<<major<<"."<<minor<<"."<<build;
returnversion_string.str();
}
};
/// Get the current version number of libopenshot (major, minor, and build number)