using System;
namespace ICD.Common.Utils
{
public static partial class IcdEnvironment
{
///
/// Enumeration to define the various runtime environments a SIMPL# module can run in.
///
public enum eRuntimeEnvironment
{
SimplSharp,
SimplSharpPro,
Standard
}
///
/// Enum for the Program Event Types
///
public enum eProgramStatusEventType
{
Stopping,
Paused,
Resumed,
}
///
/// Enum for the Ethernet Event Types
///
public enum eEthernetEventType
{
LinkDown,
LinkUp,
}
///
/// Enums for the Ethernet Adapter Type
///
[Flags]
public enum eEthernetAdapterType
{
EthernetUnknownAdapter = 0,
EthernetLanAdapter = 1,
EthernetCsAdapter = 2,
EthernetWifiAdapter = 4,
EthernetLan2Adapter = 8,
}
public delegate void ProgramStatusCallback(eProgramStatusEventType type);
public delegate void EthernetEventCallback(eEthernetAdapterType adapter, eEthernetEventType type);
public static event ProgramStatusCallback OnProgramStatusEvent;
public static event EthernetEventCallback OnEthernetEvent;
}
}