2019-12-08 12:34:43 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Runtime.InteropServices;
|
2019-12-06 23:12:34 +01:00
|
|
|
|
|
|
|
|
|
namespace Unosquare.RaspberryIO.Native {
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// OS uname structure.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
|
|
|
|
public struct SystemName {
|
2019-12-04 18:57:18 +01:00
|
|
|
|
/// <summary>
|
2019-12-06 23:12:34 +01:00
|
|
|
|
/// System name.
|
2019-12-04 18:57:18 +01:00
|
|
|
|
/// </summary>
|
2019-12-06 23:12:34 +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-12-04 18:57:18 +01:00
|
|
|
|
}
|