2018-03-11 22:00:54 +00:00
|
|
|
#include <QString>
|
2023-08-02 17:35:35 +01:00
|
|
|
#include "sys.h"
|
2018-03-11 22:00:54 +00:00
|
|
|
|
|
|
|
namespace Sys {
|
2023-08-02 17:35:35 +01:00
|
|
|
struct LsbInfo {
|
2018-03-11 22:00:54 +00:00
|
|
|
QString distributor;
|
|
|
|
QString version;
|
|
|
|
QString description;
|
|
|
|
QString codename;
|
|
|
|
};
|
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
bool main_lsb_info(LsbInfo& out);
|
|
|
|
bool fallback_lsb_info(Sys::LsbInfo& out);
|
|
|
|
void lsb_postprocess(Sys::LsbInfo& lsb, Sys::DistributionInfo& out);
|
2018-03-11 22:00:54 +00:00
|
|
|
Sys::DistributionInfo read_lsb_release();
|
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
QString _extract_distribution(const QString& x);
|
|
|
|
QString _extract_version(const QString& x);
|
2018-03-11 22:00:54 +00:00
|
|
|
Sys::DistributionInfo read_legacy_release();
|
|
|
|
|
|
|
|
Sys::DistributionInfo read_os_release();
|
2023-08-02 17:35:35 +01:00
|
|
|
} // namespace Sys
|