2018-07-20 22:53:46 +01:00
|
|
|
|
// /***************************************************************************
|
2020-02-27 12:31:21 +00:00
|
|
|
|
// Aaru Data Preservation Suite
|
2018-07-20 22:53:46 +01:00
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
//
|
|
|
|
|
|
// Filename : IPluginsRegister.cs
|
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
|
//
|
|
|
|
|
|
// Component : Interfaces.
|
|
|
|
|
|
//
|
|
|
|
|
|
// --[ Description ] ----------------------------------------------------------
|
|
|
|
|
|
//
|
|
|
|
|
|
// Interface that declares class and methods to call to register plugins.
|
|
|
|
|
|
//
|
|
|
|
|
|
// --[ License ] --------------------------------------------------------------
|
|
|
|
|
|
//
|
|
|
|
|
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
|
|
// copy of this software and associated documentation files (the
|
|
|
|
|
|
// "Software"), to deal in the Software without restriction, including
|
|
|
|
|
|
// without limitation the rights to use, copy, modify, merge, publish,
|
|
|
|
|
|
// distribute, sublicense, and/or sell copies of the Software, and to
|
|
|
|
|
|
// permit persons to whom the Software is furnished to do so, subject to
|
|
|
|
|
|
// the following conditions:
|
|
|
|
|
|
//
|
|
|
|
|
|
// The above copyright notice and this permission notice shall be included
|
|
|
|
|
|
// in all copies or substantial portions of the Software.
|
|
|
|
|
|
//
|
|
|
|
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
|
|
|
|
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
|
|
|
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
|
|
|
|
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
|
|
|
|
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
|
|
|
|
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
|
|
|
|
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2022-12-03 16:07:06 +00:00
|
|
|
|
// Copyright © 2011-2023 Natalia Portillo
|
2018-07-20 22:53:46 +01:00
|
|
|
|
// ****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
2023-10-05 01:05:11 +01:00
|
|
|
|
using System.Diagnostics.CodeAnalysis;
|
2023-10-05 13:04:56 +01:00
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
2018-07-20 22:53:46 +01:00
|
|
|
|
|
2022-11-15 15:58:40 +00:00
|
|
|
|
namespace Aaru.CommonTypes.Interfaces;
|
|
|
|
|
|
|
2021-11-13 18:02:20 +00:00
|
|
|
|
/// <summary>Defines a register of all known plugins</summary>
|
2023-10-05 01:05:11 +01:00
|
|
|
|
[SuppressMessage("ReSharper", "UnusedMember.Global")]
|
2021-11-13 18:02:20 +00:00
|
|
|
|
public interface IPluginRegister
|
2018-07-20 22:53:46 +01:00
|
|
|
|
{
|
2023-10-05 13:04:56 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Registers all checksum plugins in the provided service collection
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="services">Service collection</param>
|
|
|
|
|
|
void RegisterChecksumPlugins(IServiceCollection services);
|
2021-11-13 18:02:20 +00:00
|
|
|
|
|
2023-10-05 16:39:00 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Registers all filesystem plugins in the provided service collection
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="services">Service collection</param>
|
|
|
|
|
|
void RegisterFilesystemPlugins(IServiceCollection services);
|
2018-07-20 22:53:46 +01:00
|
|
|
|
|
2023-10-05 16:00:59 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Registers all filter plugins in the provided service collection
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="services">Service collection</param>
|
|
|
|
|
|
void RegisterFilterPlugins(IServiceCollection services);
|
2018-07-20 22:53:46 +01:00
|
|
|
|
|
2021-11-13 18:02:20 +00:00
|
|
|
|
/// <summary>Gets all floppy image plugins</summary>
|
|
|
|
|
|
/// <returns>List of floppy image plugins</returns>
|
|
|
|
|
|
List<Type> GetAllFloppyImagePlugins();
|
2018-07-20 22:53:46 +01:00
|
|
|
|
|
2023-10-05 23:57:12 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Registers all media image plugins in the provided service collection
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="services">Service collection</param>
|
|
|
|
|
|
void RegisterMediaImagePlugins(IServiceCollection services);
|
2018-07-20 22:53:46 +01:00
|
|
|
|
|
2023-10-05 16:11:05 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Registers all partition plugins in the provided service collection
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="services">Service collection</param>
|
|
|
|
|
|
void RegisterPartitionPlugins(IServiceCollection services);
|
2018-07-20 22:53:46 +01:00
|
|
|
|
|
2023-10-05 16:54:55 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Registers all read-only filesystem plugins in the provided service collection
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="services">Service collection</param>
|
|
|
|
|
|
void RegisterReadOnlyFilesystemPlugins(IServiceCollection services);
|
2018-07-20 22:53:46 +01:00
|
|
|
|
|
2021-11-13 18:02:20 +00:00
|
|
|
|
/// <summary>Gets all writable floppy image plugins</summary>
|
|
|
|
|
|
/// <returns>List of writable floppy image plugins</returns>
|
|
|
|
|
|
List<Type> GetAllWritableFloppyImagePlugins();
|
2018-07-20 22:53:46 +01:00
|
|
|
|
|
2021-11-13 18:02:20 +00:00
|
|
|
|
/// <summary>Gets all writable media image plugins</summary>
|
|
|
|
|
|
/// <returns>List of writable media image plugins</returns>
|
|
|
|
|
|
List<Type> GetAllWritableImagePlugins();
|
2018-07-20 22:53:46 +01:00
|
|
|
|
|
2023-10-05 16:19:54 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Registers all archive plugins in the provided service collection
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="services">Service collection</param>
|
|
|
|
|
|
void RegisterArchivePlugins(IServiceCollection services);
|
2021-03-05 13:46:55 +01:00
|
|
|
|
|
2021-11-13 18:02:20 +00:00
|
|
|
|
/// <summary>Gets all byte addressable plugins</summary>
|
|
|
|
|
|
/// <returns>List of byte addressable plugins</returns>
|
|
|
|
|
|
List<Type> GetAllByteAddressablePlugins();
|
2021-08-17 21:23:22 +01:00
|
|
|
|
}
|