Use Aaru Metadata instead of CICM Metadata.

This commit is contained in:
2022-12-15 22:20:59 +00:00
parent d2c24f9fb1
commit 4cdf541a09
10 changed files with 454 additions and 455 deletions

View File

@@ -38,9 +38,9 @@
using System;
using System.Collections.Generic;
using Aaru.CommonTypes.AaruMetadata;
using Aaru.CommonTypes.Enums;
using Aaru.CommonTypes.Structs;
using Schemas;
namespace Aaru.CommonTypes.Interfaces;
@@ -49,10 +49,10 @@ public interface IBaseImage
{
/// <summary>Plugin author</summary>
string Author { get; }
/// <summary>Gets the CICM XML metadata for the image</summary>
CICMMetadataType CicmMetadata { get; }
/// <summary>Gets the Aaru Metadata for the image</summary>
AaruMetadata.Metadata AaruMetadata { get; }
/// <summary>List of dump hardware used to create the image from real media</summary>
List<DumpHardwareType> DumpHardware { get; }
List<DumpHardware> DumpHardware { get; }
/// <summary>Gets the image format.</summary>
/// <value>The image format.</value>
string Format { get; }

View File

@@ -38,9 +38,9 @@
using System;
using System.Collections.Generic;
using Aaru.CommonTypes.AaruMetadata;
using Aaru.CommonTypes.Enums;
using Aaru.CommonTypes.Structs;
using Schemas;
namespace Aaru.CommonTypes.Interfaces;
@@ -79,14 +79,14 @@ public interface IBaseWritableImage : IBaseImage
/// <returns>Error number</returns>
bool Close();
/// <summary>Sets the CICM XML metadata for the image</summary>
bool SetCicmMetadata(CICMMetadataType metadata);
/// <summary>Sets the Aaru Metadata for the image</summary>
bool SetMetadata(AaruMetadata.Metadata metadata);
/// <summary>Sets the list of dump hardware used to create the image from real media</summary>
bool SetDumpHardware(List<DumpHardwareType> dumpHardware);
bool SetDumpHardware(List<DumpHardware> dumpHardware);
/// <summary>Sets image metadata</summary>
/// <param name="metadata"><see cref="ImageInfo" /> containing image metadata</param>
/// <param name="imageInfo"><see cref="ImageInfo" /> containing image metadata</param>
/// <returns><c>true</c> if operating completed successfully, <c>false</c> otherwise</returns>
bool SetMetadata(ImageInfo metadata);
bool SetImageInfo(ImageInfo imageInfo);
}

View File

@@ -38,7 +38,7 @@
using System;
using System.Text;
using Schemas;
using Aaru.CommonTypes.AaruMetadata;
namespace Aaru.CommonTypes.Interfaces;
@@ -51,9 +51,8 @@ public interface IFilesystem
string Name { get; }
/// <summary>Plugin UUID.</summary>
Guid Id { get; }
/// <summary>Information about the filesystem as expected by CICM Metadata XML</summary>
/// <value>Information about the filesystem as expected by CICM Metadata XML</value>
FileSystemType XmlFsType { get; }
/// <summary>Information about the filesystem as expected by Aaru Metadata</summary>
FileSystem Metadata { get; }
/// <summary>Plugin author</summary>
string Author { get; }