Add storage_file_expand()

This commit is contained in:
Willy-JL
2023-08-02 23:33:27 +02:00
parent 070fb17485
commit e8f11e5521
9 changed files with 80 additions and 1 deletions

View File

@@ -203,6 +203,21 @@ uint64_t storage_file_tell(File* file) {
return S_RETURN_UINT64;
}
bool storage_file_expand(File* file, uint64_t size) {
S_FILE_API_PROLOGUE;
S_API_PROLOGUE;
SAData data = {
.fexpand = {
.file = file,
.size = size,
}};
S_API_MESSAGE(StorageCommandFileExpand);
S_API_EPILOGUE;
return S_RETURN_BOOL;
}
bool storage_file_truncate(File* file) {
S_FILE_API_PROLOGUE;
S_API_PROLOGUE;