Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Version.h « src - github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e7fca1afc2f52bf61d8cb7f2b1b5dd14ad50c11b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// 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)

#ifndef MUMBLE_RELEASE_ID
#	define MUMBLE_RELEASE "Compiled by User"
#else
#	define MUMBLE_RELEASE MUMTEXT(MUMBLE_RELEASE_ID)
#endif

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