2019-12-03 18:43:54 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
|
|
namespace Unosquare.RaspberryIO.Native {
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// OS uname structure
|
|
|
|
|
/// </summary>
|
|
|
|
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
|
|
|
|
internal struct SystemName {
|
2019-02-17 14:08:57 +01:00
|
|
|
|
/// <summary>
|
2019-12-03 18:43:54 +01:00
|
|
|
|
/// System name
|
2019-02-17 14:08:57 +01:00
|
|
|
|
/// </summary>
|
2019-12-03 18:43:54 +01:00
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 65)]
|
|
|
|
|
public String SysName;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Node name
|
|
|
|
|
/// </summary>
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 65)]
|
|
|
|
|
public String NodeName;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Release level
|
|
|
|
|
/// </summary>
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 65)]
|
|
|
|
|
public String Release;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Version level
|
|
|
|
|
/// </summary>
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 65)]
|
|
|
|
|
public String Version;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Hardware level
|
|
|
|
|
/// </summary>
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 65)]
|
|
|
|
|
public String Machine;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Domain name
|
|
|
|
|
/// </summary>
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 65)]
|
|
|
|
|
public String DomainName;
|
|
|
|
|
}
|
2019-02-17 14:08:57 +01:00
|
|
|
|
}
|