2018-03-12 03:30:54 +05:30
|
|
|
#include "sys.h"
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
namespace Sys {
|
|
|
|
struct LsbInfo
|
|
|
|
{
|
2018-07-15 18:21:05 +05:30
|
|
|
QString distributor;
|
|
|
|
QString version;
|
|
|
|
QString description;
|
|
|
|
QString codename;
|
2018-03-12 03:30:54 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
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();
|
|
|
|
}
|