summaryrefslogtreecommitdiffstats
path: root/libraries/systeminfo/include/distroutils.h
blob: 2e85f433643e558b992f504bedac6cd0a81b3aa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "sys.h"
#include <QString>

namespace Sys {
struct LsbInfo
{
    QString distributor;
    QString version;
    QString description;
    QString codename;
};

bool main_lsb_info(LsbInfo & out);
bool fallback_lsb_info(Sys::LsbInfo & out);
void lsb_postprocess(Sys::LsbInfo & lsb, Sys::DistributionInfo & out);
Sys::DistributionInfo read_lsb_release();

QString _extract_distribution(const QString & x);
QString _extract_version(const QString & x);
Sys::DistributionInfo read_legacy_release();

Sys::DistributionInfo read_os_release();
}