btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / debugger / model / SystemInfo.h
bloba6c6eb1b60dbe50367a1975b052fe678b7fe3b16
1 /*
2 * Copyright 2013, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef SYSTEM_INFO_H
6 #define SYSTEM_INFO_H
8 #include <sys/utsname.h>
10 #include <OS.h>
11 #include <String.h>
13 #include "Types.h"
16 class SystemInfo {
17 public:
18 SystemInfo();
19 SystemInfo(const SystemInfo& other);
20 SystemInfo(team_id team,
21 const system_info& info,
22 const utsname& name);
24 void SetTo(team_id team, const system_info& info,
25 const utsname& name);
27 team_id TeamID() const { return fTeam; }
29 const system_info& GetSystemInfo() const { return fSystemInfo; }
31 const utsname& GetSystemName() const { return fSystemName; }
33 private:
34 team_id fTeam;
35 system_info fSystemInfo;
36 utsname fSystemName;
40 #endif // SYSTEM_INFO_H