Several types to public to allow additional library usage.
This commit is contained in:
@@ -12,14 +12,13 @@ using System;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenHardwareMonitor.Hardware.CPU {
|
||||
|
||||
internal enum Vendor {
|
||||
public enum Vendor {
|
||||
Unknown,
|
||||
Intel,
|
||||
AMD,
|
||||
}
|
||||
|
||||
internal class CPUID {
|
||||
public class CPUID {
|
||||
|
||||
private readonly int thread;
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ using System.Text;
|
||||
using System.Threading;
|
||||
|
||||
namespace OpenHardwareMonitor.Hardware.CPU {
|
||||
internal class GenericCPU : Hardware {
|
||||
public class GenericCPU : Hardware {
|
||||
|
||||
protected readonly CPUID[][] cpuid;
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ using System.Text;
|
||||
using OpenHardwareMonitor.Collections;
|
||||
|
||||
namespace OpenHardwareMonitor.Hardware.HDD {
|
||||
internal abstract class AbstractHarddrive : Hardware {
|
||||
public abstract class AbstractHarddrive : Hardware {
|
||||
|
||||
private const int UPDATE_DIVIDER = 30; // update only every 30s
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ using System.Runtime.InteropServices;
|
||||
namespace OpenHardwareMonitor.Hardware.HDD {
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
internal struct DriveAttributeValue {
|
||||
public struct DriveAttributeValue {
|
||||
public byte Identifier;
|
||||
public short StatusFlags;
|
||||
public byte AttrValue;
|
||||
|
||||
@@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
|
||||
namespace OpenHardwareMonitor.Hardware.HDD {
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
internal struct DriveThresholdValue {
|
||||
public struct DriveThresholdValue {
|
||||
public byte Identifier;
|
||||
public byte Threshold;
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
|
||||
|
||||
@@ -13,8 +13,7 @@ using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace OpenHardwareMonitor.Hardware.HDD {
|
||||
|
||||
internal interface ISmart {
|
||||
public interface ISmart {
|
||||
|
||||
IntPtr OpenDrive(int driveNumber);
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ using System.Collections.Generic;
|
||||
using OpenHardwareMonitor.Collections;
|
||||
|
||||
namespace OpenHardwareMonitor.Hardware.HDD {
|
||||
internal class SmartAttribute {
|
||||
public class SmartAttribute {
|
||||
|
||||
private RawValueConversion rawValueConversion;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace OpenHardwareMonitor.Hardware.HDD {
|
||||
/// <summary>
|
||||
/// Localization class for SMART attribute names.
|
||||
/// </summary>
|
||||
internal static class SmartNames {
|
||||
public static class SmartNames {
|
||||
|
||||
public static string AirflowTemperature {
|
||||
get { return "Airflow Temperature"; }
|
||||
|
||||
@@ -12,7 +12,7 @@ using System;
|
||||
using OpenHardwareMonitor.Collections;
|
||||
|
||||
namespace OpenHardwareMonitor.Hardware {
|
||||
internal abstract class Hardware : IHardware {
|
||||
public abstract class Hardware : IHardware {
|
||||
|
||||
private readonly Identifier identifier;
|
||||
protected readonly string name;
|
||||
|
||||
@@ -12,8 +12,7 @@ using System;
|
||||
using System.Globalization;
|
||||
|
||||
namespace OpenHardwareMonitor.Hardware {
|
||||
|
||||
internal struct ParameterDescription {
|
||||
public struct ParameterDescription {
|
||||
private readonly string name;
|
||||
private readonly string description;
|
||||
private readonly float defaultValue;
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ using System.Text;
|
||||
|
||||
namespace OpenHardwareMonitor.Hardware {
|
||||
|
||||
internal class SMBIOS {
|
||||
public class SMBIOS {
|
||||
|
||||
private readonly byte[] raw;
|
||||
private readonly Structure[] table;
|
||||
|
||||
Reference in New Issue
Block a user