mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Add placeholder FileSystemClient functions
This commit is contained in:
parent
f0ce5a9946
commit
6823aa7cb8
8 changed files with 171 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using LibHac.FsClient.Accessors;
|
||||
|
||||
namespace LibHac.FsClient.Accessors
|
||||
namespace LibHac.FsClient
|
||||
{
|
||||
public struct DirectoryHandle : IDisposable
|
||||
{
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using LibHac.FsClient.Accessors;
|
||||
|
||||
namespace LibHac.FsClient.Accessors
|
||||
namespace LibHac.FsClient
|
||||
{
|
||||
public struct FileHandle : IDisposable
|
||||
{
|
25
src/LibHac/FsClient/FileSystemClient.Directory.cs
Normal file
25
src/LibHac/FsClient/FileSystemClient.Directory.cs
Normal file
|
@ -0,0 +1,25 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using LibHac.Fs;
|
||||
|
||||
namespace LibHac.FsClient
|
||||
{
|
||||
public partial class FileSystemClient
|
||||
{
|
||||
public Result GetDirectoryEntryCount(out long count, DirectoryHandle handle)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
// todo: change to not use IEnumerable
|
||||
public IEnumerable<DirectoryEntry> ReadDirectory(DirectoryHandle handle)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void CloseDirectory(DirectoryHandle handle)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
58
src/LibHac/FsClient/FileSystemClient.File.cs
Normal file
58
src/LibHac/FsClient/FileSystemClient.File.cs
Normal file
|
@ -0,0 +1,58 @@
|
|||
using System;
|
||||
using LibHac.Fs;
|
||||
|
||||
namespace LibHac.FsClient
|
||||
{
|
||||
public partial class FileSystemClient
|
||||
{
|
||||
public Result ReadFile(FileHandle handle, long offset, Span<byte> destination)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Result ReadFile(FileHandle handle, long offset, Span<byte> destination, ReadOption options)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Result ReadFile(out long bytesRead, FileHandle handle, long offset, Span<byte> destination)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Result ReadFile(out long bytesRead, FileHandle handle, long offset, Span<byte> destination, ReadOption options)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Result WriteFile(FileHandle handle, long offset, ReadOnlySpan<byte> source, WriteOption options)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Result FlushFile(FileHandle handle)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Result GetFileSize(out long size, FileHandle handle)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Result SetFileSize(FileHandle handle, long size)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public OpenMode GetFileOpenMode(FileHandle handle)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void CloseFile(FileHandle handle)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
83
src/LibHac/FsClient/FileSystemClient.FileSystem.cs
Normal file
83
src/LibHac/FsClient/FileSystemClient.FileSystem.cs
Normal file
|
@ -0,0 +1,83 @@
|
|||
using System;
|
||||
using LibHac.Fs;
|
||||
|
||||
namespace LibHac.FsClient
|
||||
{
|
||||
public partial class FileSystemClient
|
||||
{
|
||||
public Result CreateDirectory(string path)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Result CreateFile(string path, long size)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Result CreateFile(string path, long size, CreateFileOptions options)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Result DeleteDirectory(string path)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Result DeleteDirectoryRecursively(string path)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Result CleanDirectoryRecursively(string path)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Result DeleteFile(string path)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Result RenameDirectory(string oldPath, string newPath)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Result RenameFile(string oldPath, string newPath)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Result GetEntryType(out DirectoryEntryType type, string path)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public FileHandle OpenFile(out FileHandle handle, string path, OpenMode mode)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public DirectoryHandle OpenDirectory(out DirectoryHandle handle, string path, OpenDirectoryMode mode)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Result GetFreeSpaceSize(out long size, string path)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Result GetTotalSpaceSize(out long size, string path)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Result Commit(string mountName)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace LibHac.FsClient
|
||||
{
|
||||
public class FileSystemClient
|
||||
public partial class FileSystemClient
|
||||
{
|
||||
private FileSystemServer FsSrv { get; }
|
||||
private FileSystemProxy FsProxy { get; set; }
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
using System.Buffers;
|
||||
using System.Collections.Generic;
|
||||
using LibHac.Fs;
|
||||
using LibHac.FsClient.Accessors;
|
||||
|
||||
namespace LibHac.FsClient
|
||||
{
|
||||
|
|
|
@ -3,7 +3,6 @@ using System.Buffers;
|
|||
using LibHac;
|
||||
using LibHac.Fs;
|
||||
using LibHac.FsClient;
|
||||
using LibHac.FsClient.Accessors;
|
||||
|
||||
namespace hactoolnet
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue