Add placeholder FileSystemClient functions

This commit is contained in:
Alex Barney 2019-09-01 17:20:50 -05:00
parent f0ce5a9946
commit 6823aa7cb8
8 changed files with 171 additions and 5 deletions

View file

@ -1,6 +1,7 @@
using System;
using LibHac.FsClient.Accessors;
namespace LibHac.FsClient.Accessors
namespace LibHac.FsClient
{
public struct DirectoryHandle : IDisposable
{

View file

@ -1,6 +1,7 @@
using System;
using LibHac.FsClient.Accessors;
namespace LibHac.FsClient.Accessors
namespace LibHac.FsClient
{
public struct FileHandle : IDisposable
{

View 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();
}
}
}

View 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();
}
}
}

View 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();
}
}
}

View file

@ -2,7 +2,7 @@
namespace LibHac.FsClient
{
public class FileSystemClient
public partial class FileSystemClient
{
private FileSystemServer FsSrv { get; }
private FileSystemProxy FsProxy { get; set; }

View file

@ -2,7 +2,6 @@
using System.Buffers;
using System.Collections.Generic;
using LibHac.Fs;
using LibHac.FsClient.Accessors;
namespace LibHac.FsClient
{

View file

@ -3,7 +3,6 @@ using System.Buffers;
using LibHac;
using LibHac.Fs;
using LibHac.FsClient;
using LibHac.FsClient.Accessors;
namespace hactoolnet
{