headers/bsd: Add sys/queue.h.
[haiku.git] / src / kits / debugger / model / SystemInfo.cpp
blob3a0b0c70fa1e4cfae1f6a9619a18eae5986b51ef
1 /*
2 * Copyright 2013, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
4 */
7 #include "SystemInfo.h"
10 SystemInfo::SystemInfo()
12 fTeam(-1)
14 memset(&fSystemInfo, 0, sizeof(system_info));
15 memset(&fSystemName, 0, sizeof(utsname));
19 SystemInfo::SystemInfo(const SystemInfo &other)
21 SetTo(other.fTeam, other.fSystemInfo, other.fSystemName);
25 SystemInfo::SystemInfo(team_id team, const system_info& info,
26 const utsname& name)
28 SetTo(team, info, name);
32 void
33 SystemInfo::SetTo(team_id team, const system_info& info, const utsname& name)
35 fTeam = team;
36 memcpy(&fSystemInfo, &info, sizeof(system_info));
37 memcpy(&fSystemName, &name, sizeof(utsname));