mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
Having a separate RELEASE_ID just unnecessarily complicates drafting releases. Plus, now that we are using different build numbers for every new build anyway, a separate release ID is really not necessary.
28 lines
853 B
C++
28 lines
853 B
C++
// Copyright 2008-2021 The Mumble Developers. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license
|
|
// that can be found in the LICENSE file at the root of the
|
|
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
|
|
|
|
#ifndef MUMBLE_VERSION_H_
|
|
#define MUMBLE_VERSION_H_
|
|
|
|
#include <QtCore/QString>
|
|
|
|
#define MUMXTEXT(X) #X
|
|
#define MUMTEXT(X) MUMXTEXT(X)
|
|
|
|
#define MUMBLE_RELEASE MUMTEXT(MUMBLE_VERSION)
|
|
|
|
namespace Version {
|
|
|
|
unsigned int getRaw(const QString &version = QLatin1String(MUMTEXT(MUMBLE_VERSION)));
|
|
QString toString(unsigned int version);
|
|
bool get(int *major, int *minor, int *patch, const QString &version = QLatin1String(MUMTEXT(MUMBLE_VERSION)));
|
|
|
|
unsigned int toRaw(int major, int minor, int patch);
|
|
void fromRaw(unsigned int version, int *major, int *minor, int *patch);
|
|
|
|
}; // namespace Version
|
|
|
|
#endif
|