// /*************************************************************************** // The Disc Image Chef // ---------------------------------------------------------------------------- // // Filename : IFilesystem.cs // Author(s) : Natalia Portillo // // Component : Filesystem plugins. // // --[ Description ] ---------------------------------------------------------- // // Interface for filesystem plugins. // // --[ License ] -------------------------------------------------------------- // // This library is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation; either version 2.1 of the // License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, see . // // ---------------------------------------------------------------------------- // Copyright © 2011-2018 Natalia Portillo // ****************************************************************************/ using System; using System.Text; using Schemas; namespace DiscImageChef.CommonTypes.Interfaces { /// /// Interface to implement filesystem plugins. /// public interface IFilesystem { Encoding Encoding { get; } /// Plugin name. string Name { get; } /// Plugin UUID. Guid Id { get; } /// /// Information about the filesystem as expected by CICM Metadata XML /// /// Information about the filesystem as expected by CICM Metadata XML FileSystemType XmlFsType { get; } /// /// Identifies the filesystem in the specified LBA /// /// Disk image. /// Partition. /// true, if the filesystem is recognized, false otherwise. bool Identify(IMediaImage imagePlugin, Partition partition); /// /// Gets information about the identified filesystem. /// /// Disk image. /// Partition. /// Filesystem information. /// Which encoding to use for this filesystem. void GetInformation(IMediaImage imagePlugin, Partition partition, out string information, Encoding encoding); } }