1 // 2 // Copyright (c) 2010-2018 Antmicro 3 // 4 // This file is licensed under the MIT License. 5 // Full license text is available in 'licenses/MIT.txt'. 6 // 7 using System; 8 using AntShell.Terminal; 9 using Antmicro.Renode.Utilities; 10 11 namespace Antmicro.Renode.UI 12 { 13 public interface IConsoleBackendAnalyzerProvider : IAutoLoadType 14 { TryOpen(string consoleName, out IIOSource io, bool isMonitorWindow = false)15 bool TryOpen(string consoleName, out IIOSource io, bool isMonitorWindow = false); Close()16 void Close(); 17 event Action OnClose; 18 } 19 20 public class ConsoleBackendAnalyzerProviderAttribute : Attribute 21 { ConsoleBackendAnalyzerProviderAttribute(string name)22 public ConsoleBackendAnalyzerProviderAttribute(string name) 23 { 24 Name = name; 25 } 26 27 public string Name { get; private set; } 28 29 } 30 } 31