summaryrefslogtreecommitdiffstats
path: root/libraries/systeminfo/include/distroutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/systeminfo/include/distroutils.h')
-rw-r--r--libraries/systeminfo/include/distroutils.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/libraries/systeminfo/include/distroutils.h b/libraries/systeminfo/include/distroutils.h
new file mode 100644
index 00000000..5ff8d591
--- /dev/null
+++ b/libraries/systeminfo/include/distroutils.h
@@ -0,0 +1,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();
+}