Skip to content

Commit

Permalink
fixed something i dont't know.
Browse files Browse the repository at this point in the history
  • Loading branch information
captain-n3m0 committed Jun 10, 2023
1 parent 125828d commit 8a01efb
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/filesystem/filesystem.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#ifndef FILESYSTEM_H
#define FILESYSTEM_H

#include "../headers/stdio.h"
#include "../disk_operations/disk.h"
#include "../string/string.h"
typedef void* (*FS_OPEN_FUNCTION)(struct disk* disk, char* filename, char mode);
typedef int (*FS_RESOLVE_FUNCTION)(struct disk* disk);

struct disk* disk;
typedef void*(*FS_OPEN_FUNCTION)(struct disk* disk, char* filename, char mode);
typedef int(*FS_RESOLVE_FUNCTION)(struct disk* disk);
struct filesystem
{
// Filesystem should return zero from resolve if the provided disk is using its filesystem
FS_RESOLVE_FUNCTION resolve;
FS_OPEN_FUNCTION open;
char name[20];
Expand All @@ -17,6 +15,6 @@ struct filesystem
void fs_load();
int fopen(char* filename, char mode);
void fs_insert_filesystem(struct filesystem* filesystem);
struct filesystem* fs_resolve(struct disk* disk);
struct filesystem* fs_resolve_(struct disk* disk);

#endif

0 comments on commit 8a01efb

Please sign in to comment.