2 * Copyright 2013, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
7 #include "SystemInfo.h"
10 SystemInfo::SystemInfo()
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
,
28 SetTo(team
, info
, name
);
33 SystemInfo::SetTo(team_id team
, const system_info
& info
, const utsname
& name
)
36 memcpy(&fSystemInfo
, &info
, sizeof(system_info
));
37 memcpy(&fSystemName
, &name
, sizeof(utsname
));