[AaruFormat] Implement SetTape.

This commit is contained in:
2025-10-12 15:16:35 +01:00
parent b266a0f33d
commit e6c3278b61
2 changed files with 13 additions and 6 deletions

View File

@@ -43,6 +43,17 @@ public sealed partial class AaruFormat
return res == Status.Ok; return res == Status.Ok;
} }
/// <inheritdoc />
public bool IsTape { get; private set; }
/// <inheritdoc />
public bool SetTape()
{
IsTape = true;
return true;
}
#endregion #endregion
// AARU_EXPORT int32_t AARU_CALL aaruf_set_tape_file(void *context, const uint8_t partition, const uint32_t file, // 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)])] [UnmanagedCallConv(CallConvs = [typeof(CallConvStdcall)])]
private static partial Status aaruf_set_tape_file(IntPtr context, byte partition, uint file, ulong startingBlock, private static partial Status aaruf_set_tape_file(IntPtr context, byte partition, uint file, ulong startingBlock,
ulong endingBlock); 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) // const uint64_t starting_block, const uint64_t ending_block)
[LibraryImport("libaaruformat", EntryPoint = "aaruf_set_tape_partition", SetLastError = true)] [LibraryImport("libaaruformat", EntryPoint = "aaruf_set_tape_partition", SetLastError = true)]
[UnmanagedCallConv(CallConvs = [typeof(CallConvStdcall)])] [UnmanagedCallConv(CallConvs = [typeof(CallConvStdcall)])]

View File

@@ -34,11 +34,6 @@ public sealed partial class AaruFormat
public List<TapeFile> Files { get; } public List<TapeFile> Files { get; }
/// <inheritdoc /> /// <inheritdoc />
public List<TapePartition> TapePartitions { get; } public List<TapePartition> TapePartitions { get; }
/// <inheritdoc />
public bool IsTape { get; }
/// <inheritdoc />
public bool SetTape() => throw new NotImplementedException();
#endregion #endregion
} }