1 //
2 // Copyright (c) 2010-2018 Antmicro
3 // Copyright (c) 2011-2015 Realtime Embedded
4 //
5 // This file is licensed under the MIT License.
6 // Full license text is available in 'licenses/MIT.txt'.
7 //
8 using System.Collections.Generic;
9 using Antmicro.Renode.Peripherals;
10 
11 namespace Antmicro.Renode.Core
12 {
13     public interface IPeripheralsGroupsManager
14     {
15         IEnumerable<IPeripheralsGroup> ActiveGroups { get; }
TryGetByName(string name, out IPeripheralsGroup group)16         bool TryGetByName(string name, out IPeripheralsGroup group);
GetOrCreate(string name, IEnumerable<IPeripheral> peripherals)17         IPeripheralsGroup GetOrCreate(string name, IEnumerable<IPeripheral> peripherals);
TryGetActiveGroupContaining(IPeripheral peripheral, out IPeripheralsGroup group)18         bool TryGetActiveGroupContaining(IPeripheral peripheral, out IPeripheralsGroup group);
TryGetAnyGroupContaining(IPeripheral peripheral, out IPeripheralsGroup group)19         bool TryGetAnyGroupContaining(IPeripheral peripheral, out IPeripheralsGroup group);
20     }
21 }
22 
23