// // Copyright (c) 2010-2018 Antmicro // Copyright (c) 2011-2015 Realtime Embedded // // This file is licensed under the MIT License. // Full license text is available in 'licenses/MIT.txt'. // using System.Collections.Generic; using Antmicro.Renode.Peripherals; namespace Antmicro.Renode.Core { public interface IPeripheralsGroupsManager { IEnumerable ActiveGroups { get; } bool TryGetByName(string name, out IPeripheralsGroup group); IPeripheralsGroup GetOrCreate(string name, IEnumerable peripherals); bool TryGetActiveGroupContaining(IPeripheral peripheral, out IPeripheralsGroup group); bool TryGetAnyGroupContaining(IPeripheral peripheral, out IPeripheralsGroup group); } }