mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[AaruFormat] Implement SetTape.
This commit is contained in:
@@ -43,6 +43,17 @@ public sealed partial class AaruFormat
|
||||
return res == Status.Ok;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool IsTape { get; private set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool SetTape()
|
||||
{
|
||||
IsTape = true;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
// AARU_EXPORT int32_t AARU_CALL aaruf_set_tape_file(void *context, const uint8_t partition, const uint32_t file,
|
||||
@@ -51,7 +62,8 @@ public sealed partial class AaruFormat
|
||||
[UnmanagedCallConv(CallConvs = [typeof(CallConvStdcall)])]
|
||||
private static partial Status aaruf_set_tape_file(IntPtr context, byte partition, uint file, ulong startingBlock,
|
||||
ulong endingBlock);
|
||||
// AARU_EXPORT int32_t AARU_CALL aaruf_set_tape_partition(void *context, const uint8_t partition,
|
||||
|
||||
// AARU_EXPORT int32_t AARU_CALL aaruf_set_tape_partition(void *context, const uint8_t partition,
|
||||
// const uint64_t starting_block, const uint64_t ending_block)
|
||||
[LibraryImport("libaaruformat", EntryPoint = "aaruf_set_tape_partition", SetLastError = true)]
|
||||
[UnmanagedCallConv(CallConvs = [typeof(CallConvStdcall)])]
|
||||
|
||||
@@ -34,11 +34,6 @@ public sealed partial class AaruFormat
|
||||
public List<TapeFile> Files { get; }
|
||||
/// <inheritdoc />
|
||||
public List<TapePartition> TapePartitions { get; }
|
||||
/// <inheritdoc />
|
||||
public bool IsTape { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool SetTape() => throw new NotImplementedException();
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user